bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #29191] How does gdlgsdoc work?


From: Richard Frith-Macdonald
Subject: Re: [bug #29191] How does gdlgsdoc work?
Date: Sat, 13 Mar 2010 07:25:21 +0000

On 13 Mar 2010, at 07:02, Sergey Golovin wrote:

> 
> Follow-up Comment #1, bug #29191 (project gnustep):
> 
>> gdlgsdoc --verbose=1 Examples/library.eomodel 
> 
> gdlgsdoc --verbose=1 --template=Tools/eomodeltemplate.gsdoc
> Examples/library.eomodel 
> 
> creates Examples/library.gsdoc for me (make debug=yes strip=no).
> 
> I have no idea why segfault happens with the optimization is enabled by plain
> "make".
> 
> The backtrace:
> #0  0xb7b5f7ac in objc_msg_lookup (receiver=0xb7f8b5e0, op=0xb7f582f8)
>    at /build/buildd/gcc-4.4-4.4.1/src/libobjc/sendmsg.c:225
> #1  0xb7d5342e in GSPrivateFormat (s=0xbfffd730, format=0xbfffd78c, 
>    ap=0xbfffe87c "240k 23b200350 21bt  05b320` 23b300W 23b8
> 05b340265370267 60w 23b$351377277300ffbjb", locale=0x0) at GSFormat.m:1848
> #2  0xb7d702eb in -[GSPlaceholderString initWithFormat:locale:arguments:]
> (self=0x8067dd8, _cmd=0xb7fa9be8, 
>    format=0x805208c, locale=0x0, 
>    argList=0xbfffe87c "240k 23b200350 21bt  05b320` 23b300W 23b8
> 05b340265370267 60w 23b$351377277300ffbjb") at GSString.m:769
> #3  0xb7e8f76e in -[NSString initWithFormat:arguments:] (self=0x8067dd8,
> _cmd=0xb7fdbe08, format=0x805208c, 
>    argList=0xbfffe87c "240k 23b200350 21bt  05b320` 23b300W 23b8
> 05b340265370267 60w 23b$351377277300ffbjb") at NSString.m:1073
> #4  0xb7f207e6 in +[NSString(GNUstepBase) stringWithFormat:arguments:]
> (self=0xb7fa9a60, _cmd=0xb7fa9c38, format=0x805208c, 
>    argList=0xbfffe87c "240k 23b200350 21bt  05b320` 23b300W 23b8
> 05b340265370267 60w 23b$351377277300ffbjb") at NSString+GNUstepBase.m:45
> #5  0xb7e92954 in -[NSString stringByAppendingFormat:] (self=0x8136100,
> _cmd=0x8051f30, format=0x805208c) at NSString.m:1501
> #6  0x0804ab48 in -[EOModel(GSDoc) gsdocContentSplittedByEntities:idPtr:]
> (self=0x811d560, _cmd=0x8052c38, entitiesPtr=0x0, 
>    xmlIdPtr=0x0) at EOModel+GSDoc.m:77

Looking at line 77 of EOModel+GSDoc.m I see a format string with 7 '%@' items, 
but only 6 arguments, so this looks like a simple bug.
Probably just removing the last '%@' from the format string will fix it.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]