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 979 - Multiple inheritence (& import) Seg fault on OSX 10.5.8
: Multiple inheritence (& import) Seg fault on OSX 10.5.8
Status: CLOSED ALREADYFIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.5
: Macintosh Mac OS
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-08-18 05:50 EEST by Joel
Modified: 2011-09-21 21:19 EEST (History)
8 users (show)

See Also:


Attachments
Test file number 1! (39 bytes, text/x-python-script)
2011-08-18 05:50 EEST, Joel
Details
Test file number 1 that makes the segfault happen (159 bytes, text/plain)
2011-08-18 05:52 EEST, Joel
Details
Test file 2 that helps to make the segfault happen (39 bytes, text/plain)
2011-08-18 05:54 EEST, Joel
Details
A crash log (17.79 KB, text/plain)
2011-08-18 06:03 EEST, Joel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel 2011-08-18 05:50:45 EEST
Created attachment 407 [details]
Test file number 1!

Hi there! 

I have pyside 1.0.5 installed on my mac running OSX Leopard 10.5.8 and python
2.7.2 all installed using Macports. 

I am able to get a segmentation fault to happen reliably (every time I've
tried) with the following two files:

PysideImportTest2.py:
---------------------------------------------------------------
class PysideImportTest2(object):
   pass
---------------------------------------------------------------

PysideImportTest1.py:
---------------------------------------------------------------
from PySide import QtGui
from PysideImportTest2 import *

class PysideImportTest1(QtGui.QDialog, PysideImportTest2):
   pass

if __name__ == '__main__':
   quit()
---------------------------------------------------------------

and running: python -B PysideImportTest1.py

Other info:
- if the PysideImportTest2 class is defined in PysideImportTest1.py (ie is not
imported) it compiles and runs fine
- without -B flag only PysideImportTest2.pyc is created
Comment 1 Joel 2011-08-18 05:52:39 EEST
Created attachment 408 [details]
Test file number 1 that makes the segfault happen
Comment 2 Joel 2011-08-18 05:54:08 EEST
Created attachment 409 [details]
Test file 2 that helps to make the segfault happen
Comment 3 Joel 2011-08-18 06:03:20 EEST
Created attachment 410 [details]
A crash log
Comment 4 Hugo Parente Lima 2011-08-18 16:58:03 EEST
Works for me, running on:

- Linux 64bits
- PySide from git (c495e61e03e2b9842d6fa1495ce2f07fd55f0a26)
- Qt 4.7.3
Comment 5 Joel 2011-08-20 09:21:06 EEST
Yep I think it is specific to OSX 10.5.8, possibly even to the macports install
(though I haven't had a chance to try compiling Qt/PySide any other way), I
believe that the code in question works on windows xp/7 and various ubuntus and
even an OSX 10.6 install a colleague has.
Comment 6 Hugo Parente Lima 2011-08-23 20:27:05 EEST
(In reply to comment #5)
> Yep I think it is specific to OSX 10.5.8, possibly even to the macports install
> (though I haven't had a chance to try compiling Qt/PySide any other way), I
> believe that the code in question works on windows xp/7 and various ubuntus and
> even an OSX 10.6 install a colleague has.

We will test it on Mac, but I believe that it works and we have tests for it
passing on our Mac build bot client.
Comment 7 renato filho 2011-08-31 15:53:20 EEST
A new unit test was created on pyside, and this works fine on any platform,
then I believe the bug was fixed, I will mark this bug as ALREADYFIXED but fell
free to reopen if you still getting the problem.


Tested with pyside commit:

commit 20d74f8407292fdbc7313eb9925403b9afd17a76
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Aug 30 18:14:42 2011 -0300
Comment 8 Joel 2011-08-31 16:01:09 EEST
Ok. Thanks for having a look guys.

So you're saying a test with this code passes for you guys on OSX 10.5.8 ?

I do still personally have this problem. Guess I'll try compile it without
macports and see if I can get it to work on my system when I have some spare
time...

Cheers
Comment 9 renato filho 2011-08-31 16:09:59 EEST
yes I have just tested with MAC OS 10.6.8 and PySide git mainline.

if you will compile pyside from source code, this should help you :
http://developer.qt.nokia.com/wiki/Building_PySide_on_Mac_OS_X
Comment 10 Joel 2011-08-31 16:15:30 EEST
10.5.8 (leopard) or 10.6.8 (snow leopard)?

This problem is 10.5.8 only it seems, just trying to work out whether it's only
my 10.5.8 :)
Comment 11 renato filho 2011-08-31 16:20:57 EEST
I only have the 1.6.8 to test, this. But I do not believe this is a problem on
MAC OS libraries.

Could you try compile the code from the git. This will help us to check that
problem.
Comment 12 Joel 2011-08-31 16:24:35 EEST
Yep cool, will try.
Comment 13 renato filho 2011-09-21 21:19:50 EEST
Release 1.0.7