bugGNUstep - Bugs: bug #29191, How does gdlgsdoc work?

Group
 
 

bug #29191: How does gdlgsdoc work?

Submitter:  Federico Gimenez Nieto <fgimenez>
Submitted:  Thu 11 Mar 2010 05:11:09 PM UTC
   
 
Category:  gdl2 Severity:  3 - Normal
Item Group:  Documentation Status:  Fixed
Privacy:  Public Assigned to:  ayers
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 24 Apr 2010 02:10:30 PM UTC, comment #4: 

Fix committed.

David Ayers <ayers>
Group Member
Mon 19 Apr 2010 11:34:25 AM UTC, comment #3: 

Change state to in test.

Fred Kiefer <FredKiefer>
Group Member
Sat 13 Mar 2010 07:20:53 AM UTC, comment #2: 

ubuntu 9.10
base r29694 2010-02-21 10:33:24
gdl2 r29566 2010-02-12 02:44:52


Sergei Golovin <svg>
Sat 13 Mar 2010 07:02:14 AM UTC, comment #1: 


> 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\023\b\200\350\021\bt \005\b\320`\023\b\300W\023\b8 \005\b\340\265\370\267\060w\023\b$\351\377\277\300\f\f\bjb", locale=0x0) at GSFormat.m:1848
#2  0xb7d702eb in -[GSPlaceholderString initWithFormat:locale:arguments:] (self=0x8067dd8, _cmd=0xb7fa9be8,
    format=0x805208c, locale=0x0,
    argList=0xbfffe87c "\240k\023\b\200\350\021\bt \005\b\320`\023\b\300W\023\b8 \005\b\340\265\370\267\060w\023\b$\351\377\277\300\f\f\bjb") at GSString.m:769
#3  0xb7e8f76e in -[NSString initWithFormat:arguments:] (self=0x8067dd8, _cmd=0xb7fdbe08, format=0x805208c,
    argList=0xbfffe87c "\240k\023\b\200\350\021\bt \005\b\320`\023\b\300W\023\b8 \005\b\340\265\370\267\060w\023\b$\351\377\277\300\f\f\bjb") at NSString.m:1073
#4  0xb7f207e6 in +[NSString(GNUstepBase) stringWithFormat:arguments:] (self=0xb7fa9a60, _cmd=0xb7fa9c38, format=0x805208c,
    argList=0xbfffe87c "\240k\023\b\200\350\021\bt \005\b\320`\023\b\300W\023\b8 \005\b\340\265\370\267\060w\023\b$\351\377\277\300\f\f\bjb") 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
#7  0x0804ccad in main (argc=3, argv=0xbfffeb64, env=0xbfffeb74) at gsdoc-model.m:411

Sergei Golovin <svg>
Thu 11 Mar 2010 05:11:09 PM UTC, original submission:  

Hi

After installing gdl2 0.12.0, i'm trying to test gdlgsdoc. When doing:

 gdlgsdoc --verbose=1 Examples/library.eomodel

i get the following:

2010-03-10 09:53:12.553 gdlgsdoc[12079] File NSData.m: 161. In
readContentsOfFile Open ((nil)) attempt failed - bad path
2010-03-10 09:53:12.565 gdlgsdoc[12079] File 1/1 - Processing
./Examples/library.eomodel
2010-03-10 09:53:12.579 gdlgsdoc[12079] Model ./Examples/library.eomodel loaded
2010-03-10 09:53:12.580 gdlgsdoc[12079] Start: EOModel
Segmentation fault

If the build is done with DEB_BUILD_OPTIONS="noopt nostrip", the same command exits with success but produces no gsdoc file.

Am i missing something? How does gdlgsdoc work?

Thanks,
Federico

Federico Gimenez Nieto <fgimenez>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #19928:  gdl2_Tools_EOModel_GSDoc.patch added by svg (531B - text/x-patch - The patch to fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by ayers (Updated the item)
  • -email is unavailable- added by svg (Posted a comment)
  • -email is unavailable- added by fgimenez (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-24 ayers StatusReady For Test Fixed
        Open/ClosedIn Test Closed
    2010-04-19 FredKiefer Open/ClosedOpen In Test
    2010-03-30 ayers StatusNone Ready For Test
        Assigned toNone ayers
    2010-03-13 svg Attached File- Added gdl2_Tools_EOModel_GSDoc.patch, #19928

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code