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

2005-07-14 Thread paul dot woegerer at nsc dot com
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  
__ZNK1S1fElllc,
.-__ZNK1S1fElllc
.section.text
.align  4
.globl  _main
.type   _main, @function
_main:
bal ra,
__ZNK1S1fElllc
.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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


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

2005-07-14 Thread paul dot woegerer at nsc dot com
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  
__ZNK1S1fElllc,
.-__ZNK1S1fElllc
.section.text
.align  4
.globl  _main
.type   _main, @function
_main:
bal ra,
__ZNK1S1fElllc
.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=1069

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


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils