bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/1068] New: Segmentation fault in libiberty/xexit.c:51


From: paul dot woegerer at nsc dot com
Subject: [Bug gas/1068] New: Segmentation fault in libiberty/xexit.c:51
Date: 14 Jul 2005 13:39:59 -0000

The i686-pc-linux-gnu build of the assembler from binutils 2.16 crx-port
creates a segmentation fault with the assembly file below. This time the
problem is located in libiberty/xexit.c where the function pointer named
_xexit_cleanup in line 44 is NOT initialized to NULL.

The following patch for xexit.c (Revision 1.7) fixes this problem:

-------------------------------------------- patch for libiberty/xexit.c

*** xexit.c     2005-07-14 10:19:14.399002000 +0200
--- xexit_fixed.c       2005-07-14 10:37:09.358001000 +0200
***************
*** 41,47 ****

  /* This variable is set by xatexit if it is called.  This way, xmalloc
     doesn't drag xatexit into the link.  */
! void (*_xexit_cleanup) (void);

  void
  xexit (int code)
--- 41,47 ----

  /* This variable is set by xatexit if it is called.  This way, xmalloc
     doesn't drag xatexit into the link.  */
! void (*_xexit_cleanup) (void) = NULL;

  void
  xexit (int code) 

--------------------------------------------- libiberty-xexit-segfault.s 

        .size  
__ZNK1S1fElllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc,
.-__ZNK1S1fElllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
        .section        .text
        .align  4
        .globl  _main
        .type   _main, @function
_main:
        bal     ra,
__ZNK1S1fElllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
        .size   _main, .-_main

-- 
           Summary: Segmentation fault in libiberty/xexit.c:51
           Product: binutils
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: paul dot woegerer at nsc dot com
                CC: bug-binutils at gnu dot org,nickc at redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: crx-unknown-elf


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1068

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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