From pykde Sun Nov 19 00:28:52 2006 From: "Patrick Stinson" Date: Sun, 19 Nov 2006 00:28:52 +0000 To: pykde Subject: Re: Re: [PyKDE] sip crash on configure.py standard MacPython 2.3.5 Message-Id: <664bf2b80611181628i6fcdf9c0i3c921fa17db9211f () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=pykde&m=116389624508802 wow, I'd find more bugs if I new we could hold you to the payback! On 11/18/06, Phil Thompson wrote: > On Saturday 18 November 2006 10:17 am, Ulrich Berning wrote: > > Phil Thompson schrieb: > > >On Friday 17 November 2006 9:09 pm, Patrick Stinson wrote: > > >>I thought I posted this once before, but I couldn't find it from > > >>searching, so... > > >> > > >>The latest sip snapshot crashed for me during configure.py from the > > >>latest PyQt4 snapshot on Tiger using the default python > > >>implementation. The C++ code was generated properly. > > >> > > >>Exception: EXC_BAD_ACCESS (0x0001) > > >>Codes: KERN_INVALID_ADDRESS (0x0001) at 0x53617465 > > >> > > >>Thread 0 Crashed: > > >>0 libSystem.B.dylib 0x9000c5f8 __vfprintf + 6311 > > >>1 libSystem.B.dylib 0x900e4530 vfprintf_l + 94 > > >>2 libSystem.B.dylib 0x900107b9 fprintf + 73 > > >>3 sip 0x000178bd apiArgument + 619 > > >>4 sip 0x000179b4 apiCtor + 135 > > >>5 sip 0x00017d75 generateAPI + 269 > > >>6 sip 0x000035e9 main + 2090 > > >>7 sip 0x000025de _start + 216 > > >>8 sip 0x00002505 start + 41 > > > > > >You did post it before - but I couldn't (and still can't) reproduce the > > >problem. > > > > > >Can you do a bit of debugging? At first I would need to know which ctor > > > and which of the ctor's arguments was causing the problem. > > > > > >Phil > > > > For me, it crashes only on HP-UX and on Solaris. It crashes when > > generating the API files. > > > > I have searched for it and just found the bug. In sipgen/transform.c in > > addDefaultCopyCtor() starting at line 1043 a structure for a default > > public copy ctor is allocated and initialized, but > > copyct->pysig.args[0].name gets never initialized. This causes the crash > > later in sipgen/export.c in apiArgument() at line 298 (The line numbers > > are based on snapshot-20061117). > > I should have found that myself - yet another beer I owe you. > > Will be fixed in tonight's snapshot. > > Phil > > _______________________________________________ > PyKDE mailing list PyKDE@mats.imk.fraunhofer.de > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde > -- Patrick Kidd Stinson http://www.patrickkidd.com/ http://pkaudio.sourceforge.net/ http://pksampler.sourceforge.net/ _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde