bugGNUstep - Bugs: bug #16342, bus error in autogsdoc on some...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #16342: bus error in autogsdoc on some architectures

Submitted by:  Hubert Chathi <uhoreg>
Submitted on:  Fri 14 Apr 2006 04:46:19 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 26 Apr 2006 12:34:59 PM UTC, comment #2:

Patch applied to SVN ... thanks.

Richard Frith-Macdonald <CaS>
Project Member
Sat 22 Apr 2006 09:53:23 PM UTC, comment #1:

Jurij Smakov found the cause of the bug, as recorded in the Debian bug log. Apparently, the test in config/config.align.c for testing whether the architecture needs shorts/ints to be word-aligned does not work properly, as gcc optimizes away the assignments that are used to test it if "-O2" is part of CFLAGS (which it is by default).

A fix is to force the compiler to make the assignments by, for example, passing buf to an external function. For example, the attached file (just a 3-line change from the original config/config.align.c) does this by passing buf to puts.

Hubert Chathi <uhoreg>
Fri 14 Apr 2006 04:46:19 AM UTC, original submission:

(This is Debian bug #362192 -- http://bugs.debian.org/362192)

When building gorm.app on the Debian autobuilders, autogsdoc exits with a Bus error on the sparc and hppa architectures:

echo '@set GNUSTEP-VERSION' 0.10.0 \
> version.texi
echo '@set GNUSTEP-GCC 2.95.0' \
>> version.texi
echo '@set GORM-VERSION 1.0.6' \
>> version.texi
autogsdoc -MakeFrames YES \
-DocumentationDirectory InterfaceBuilder \
-Declared InterfaceBuilder \
../GormLib/*.h 2> /dev/null
/bin/sh: line 3: 13066 Bus error autogsdoc -MakeFrames YES -DocumentationDirectory InterfaceBuilder -Declared InterfaceBuilder ../GormLib/*.h 2>/dev/null
make[1]: *** [before-all] Error 138
make[1]: Leaving directory `/build/buildd/gorm.app-1.0.6/Documentation'

The other architectures seem to be fine. (The version of GNUstep Base currently in Debian is 1.11.2.)

Hubert Chathi <uhoreg>

 

Attached Files
file #9823:  config.align.c added by uhoreg (575B - text/x-csrc - patched config/config.align.c that forces the compiler to not optimize away assignments)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by uhoreg
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 26 Apr 2006 12:34:59 PM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sat 22 Apr 2006 09:53:23 PM UTCuhoregAttached File-=>Added config.align.c, #9823
    Fri 14 Apr 2006 04:46:19 AM UTCuhoregCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1