PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 548 - Crash with QListWidget
: Crash with QListWidget
Status: CLOSED DUPLICATE of bug 547
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 beta1
: Macintosh Mac OS
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-16 11:23 EET by hannu_p
Modified: 2011-01-06 16:25 EET (History)
8 users (show)

See Also:


Attachments
crashing python file (1.11 KB, text/x-python-script)
2010-12-16 11:23 EET, hannu_p
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hannu_p 2010-12-16 11:23:37 EET
Created attachment 187 [details]
crashing python file

Attached code crashes on pySide 1.0.0beta1 when clicking the 'read files'
button (might need few clicks before crash) 
Tested with binary package downloaded from:
http://developer.qt.nokia.com/wiki/PySideBinariesMacOSX). 
This code didn't crash with pySide 0.4.1 package.

OS X version: 10.6.5
QT 4.7.1 commercial.
I had about 25 files in directory in this crash example.

Clicking the 'read files' button gives output to terminal:
hannu$ python2.6 crashTest.py 
fillList
fillList
fillList
fillList
fillList
fillList
fillList
Segmentation fault
hannu$ python2.6 crashTest.py 
fillList
fillList
python2.6(83356,0x7fff707d0ca0) malloc: *** error for object 0x103dec5f8:
incorrect checksum for freed object - object was probably modified after being
freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap
hannu$ python2.6 crashTest.py 
fillList
fillList
python2.6(83357,0x7fff707d0ca0) malloc: *** error for object 0x115d46768:
incorrect checksum for freed object - object was probably modified after being
freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap
hannu$ python2.6 crashTest.py 
fillList
fillList
python2.6(83381,0x7fff707d0ca0) malloc: *** error for object 0x103ea4fa8:
incorrect checksum for freed object - object was probably modified after being
freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap
hannu$ python2.6 crashTest.py 
fillList
fillList
fillList
Bus error
hannu$ python2.6 crashTest.py 
fillList
fillList
fillList
fillList
fillList
fillList
fillList
Segmentation fault



Part of OS X problem report (Bus error):

Process:         Python [83456]
Path:           
/System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
Identifier:      org.python.python.app
Version:         2.6 (2.6)
Build Info:      python-440200~2
Code Type:       X86-64 (Native)
Parent Process:  bash [81706]

PlugIn Path:       /Library/Python/2.6/site-packages/PySide/QtGui.so
PlugIn Identifier: QtGui.so
PlugIn Version:    ??? (???)

Date/Time:       2010-12-16 16:21:48.971 +0200
OS Version:      Mac OS X 10.6.5 (10H574)
Report Version:  6

Interval Since Last Report:          158757 sec
Crashes Since Last Report:           63
Per-App Interval Since Last Report:  9615 sec
Per-App Crashes Since Last Report:   54
Anonymous UUID:                      4539B42B-7E81-41DB-8A42-CBBFFFDA9139

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000103ff9c8e
Crashed Thread:  0  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib                 0x00007fff83b5ea74 tiny_free_list_add_ptr
+ 124
1   libSystem.B.dylib                 0x00007fff83b5c187
tiny_malloc_from_free_list + 1196
2   libSystem.B.dylib                 0x00007fff83b5b01d
szone_malloc_should_clear + 242
3   libSystem.B.dylib                 0x00007fff83b5aeea malloc_zone_malloc +
82
4   libSystem.B.dylib                 0x00007fff83b591e8 malloc + 44
5   libstdc++.6.dylib                 0x00007fff87603f05 operator new(unsigned
long) + 97
6   libshiboken.1.0.dylib             0x00000001005b362c
Shiboken::Object::setParent(_object*, _object*) + 760
7   QtGui.so                          0x0000000102507169
Sbk_QListWidgetFunc_addItem + 617
8   org.python.python                 0x000000010008901f PyEval_EvalFrameEx +
14957
9   org.python.python                 0x00000001000892e1 PyEval_EvalFrameEx +
15663
10  org.python.python                 0x000000010008acce PyEval_EvalCodeEx +
1803
11  org.python.python                 0x000000010002c8e1 PyClassMethod_New +
1748
12  org.python.python                 0x000000010000aff3 PyObject_Call + 112
13  org.python.python                 0x000000010001a9df PyClass_New + 1575
14  org.python.python                 0x000000010000aff3 PyObject_Call + 112
15  org.python.python                 0x00000001000849db
PyEval_CallObjectWithKeywords + 175
16  libpyside.1.0.dylib               0x00000001001e1b37
PySide::callMethod(QObject*, int, void**) + 919
17  libpyside.1.0.dylib               0x00000001001e2456
PySide::SignalManager::qt_metacall(QObject*, QMetaObject::Call, int, void**) +
86
18  QtCore                            0x00000001013e72c6
QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 710
19  QtGui                             0x0000000103760061
QAbstractButton::clicked(bool) + 49
20  QtGui                             0x000000010348cf90
QAbstractButtonPrivate::emitClicked() + 64
21  QtGui                             0x000000010348e1ca
QAbstractButtonPrivate::click() + 154
22  QtGui                             0x000000010348e421
QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 113
Comment 1 hannu_p 2010-12-16 11:27:17 EET
Cannot reproduce this with Windows 7 32bit pySide 1.0.0beta1.
Comment 2 Matti Airas 2010-12-16 14:03:07 EET
Thanks for the bug report and the testcase!

Since this is a crasher bug, I'm prioritizing this P2. As I already mentioned
offline, this just missed the beta2 release but will be most likely fixed
during the next sprint (before New Year).
Comment 3 renato filho 2011-01-03 14:58:45 EET

*** This bug has been marked as a duplicate of bug 547 ***
Comment 4 renato filho 2011-01-03 14:59:06 EET
this problem was related with bug 547. fixed now
Comment 5 renato filho 2011-01-06 16:25:23 EET
released on beta3