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 396 - Crash when using multiple layouts.
: Crash when using multiple layouts.
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P3 critical
Assigned To: renato filho
:
:
: 172
  Show dependency treegraph
 
Reported: 2010-10-01 17:43 EEST by Hugo Parente Lima
Modified: 2010-10-13 13:49 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Parente Lima 2010-10-01 17:43:40 EEST
Crash when running the following example:

from PySide.QtGui import *

app = QApplication([])       
wdg = QWidget()
hbox = QHBoxLayout()
vbox = QVBoxLayout()
vbox.addLayout(hbox)
wdg.setLayout(vbox)


*** glibc detected *** /usr/bin/python: free(): invalid pointer:
0x0000000000cbcb50 ***                                                          

Program received signal SIGINT, Interrupt.                                      
0x00007ffff75a26ce in ?? () from /lib/libc.so.6                                 
(gdb) bt                                                                        
#0  0x00007ffff75a26ce in ?? () from /lib/libc.so.6                             
#1  0x00007ffff753efd2 in ?? () from /lib/libc.so.6                             
#2  0x00007ffff753d3a1 in free () from /lib/libc.so.6                           
#3  0x00007ffff7def082 in _dl_scope_free () from /lib/ld-linux-x86-64.so.2      
#4  0x00007ffff7dea1f4 in _dl_map_object_deps () from /lib/ld-linux-x86-64.so.2 
#5  0x00007ffff7defb44 in dl_open_worker () from /lib/ld-linux-x86-64.so.2      
#6  0x00007ffff7deb746 in _dl_catch_error () from /lib/ld-linux-x86-64.so.2     
#7  0x00007ffff7def66a in _dl_open () from /lib/ld-linux-x86-64.so.2            
#8  0x00007ffff75cbfc0 in ?? () from /lib/libc.so.6                             
#9  0x00007ffff7deb746 in _dl_catch_error () from /lib/ld-linux-x86-64.so.2     
#10 0x00007ffff75cc05f in ?? () from /lib/libc.so.6                             
#11 0x00007ffff75cc0c7 in __libc_dlopen_mode () from /lib/libc.so.6             
#12 0x00007ffff75a7ad5 in ?? () from /lib/libc.so.6                             
#13 0x00007ffff782f9c3 in pthread_once () from /lib/libpthread.so.0             
#14 0x00007ffff75a7bcc in backtrace () from /lib/libc.so.6                      
#15 0x00007ffff753321f in ?? () from /lib/libc.so.6                             
#16 0x00007ffff75386b6 in ?? () from /lib/libc.so.6                             
#17 0x00007ffff753d3ac in free () from /lib/libc.so.6                           
#18 0x00007ffff340c317 in QBoxLayout::~QBoxLayout() () from
/usr/lib/libQtGui.so.4                                                          
#19 0x00007ffff46c60ee in QVBoxLayoutWrapper::~QVBoxLayoutWrapper
(this=0xcbd030, __in_chrg=<value optimized out>)                                
    at
/home/hugo/src/pyside/build/PySide/QtGui/PySide/QtGui/qvboxlayout_wrapper.cpp:714 
#20 0x00007ffff46c614a in QVBoxLayoutWrapper::~QVBoxLayoutWrapper
(this=0xcbd030, __in_chrg=<value optimized out>)                                
    at
/home/hugo/src/pyside/build/PySide/QtGui/PySide/QtGui/qvboxlayout_wrapper.cpp:717 
#21 0x00007ffff46c688c in Shiboken::callCppDestructor<QVBoxLayout>
(cptr=0xcbd030) at /usr/include/shiboken/basewrapper.h:233                      
#22 0x00007ffff6337587 in Shiboken::deallocWrapper (pyObj=0xb11eb0) at
/home/hugo/src/shiboken/libshiboken/basewrapper.cpp:504                         
#23 0x00007ffff7ab8227 in insertdict () from /usr/lib/libpython2.6.so.1.0       
#24 0x00007ffff7aba5e7 in PyDict_SetItem () from /usr/lib/libpython2.6.so.1.0   
#25 0x00007ffff7abc62d in _PyModule_Clear () from /usr/lib/libpython2.6.so.1.0  
#26 0x00007ffff7b2953f in PyImport_Cleanup () from /usr/lib/libpython2.6.so.1.0 
#27 0x00007ffff7b3255b in Py_Finalize () from /usr/lib/libpython2.6.so.1.0      
#28 0x00007ffff7b3ec72 in Py_Main () from /usr/lib/libpython2.6.so.1.0          
#29 0x00007ffff74e5c4d in __libc_start_main () from /lib/libc.so.6              
#30 0x0000000000400609 in _start ()
Comment 1 renato filho 2010-10-04 17:11:17 EEST
fixed on pyside commit:

commit 73fea931819ee1f6a32c50c9d67a9c292e69d45a
Author: renatofilho <renato.filho@openbossa.org>
Date:   Mon Oct 4 16:15:25 2010 -0300
Comment 2 renato filho 2010-10-13 13:49:09 EEST
released on PySide 0.4.2