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

 
 

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/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>

 

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

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by uhoreg
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2006-04-26 CaS StatusNone => Fixed
        Open/ClosedOpen => Closed
    2006-04-22 uhoreg Attached File- => Added config.align.c, #9823
    2006-04-14 uhoreg Carbon-Copy- => Added 362192@bugs.debian.org

    Back to the top


    Powered by Savane 3.6