Re: [OPEN-ILS-DEV] segfault in JSON object re-use code

2008-07-07 Thread David J. Fiander
On 7-Jul-2008, at 19:38 , Bill Erickson wrote: I have not taken the time to heavily debug this yet, but I wanted to pass it on in case the solution is obvious to anyone else. The code I'm writing parses an opensrf message, using jsonParseString under the covers, and segfaults while trying

Re: [OPEN-ILS-DEV] segfault in JSON object re-use code

2008-07-07 Thread Bill Erickson
On Monday 07 July 2008 8:46 David J. Fiander wrote: On 7-Jul-2008, at 19:38 , Bill Erickson wrote: This is also right, although it's incomplete. The next line of code better be freeObjList = unused; Otherwise, you just keep dropping pointers. Yep, it's there. Thanks, David. -b

Re: [OPEN-ILS-DEV] segfault in JSON object re-use code

2008-07-07 Thread David J. Fiander
On 7-Jul-2008, at 19:38 , Bill Erickson wrote: --- GDB Output for the segfault I'm seeing: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb77a7700 (LWP 20128)] jsonNewObject (data=0x0) at osrf_json_object.c:86 warning: Source file is more recent