[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/1069] New: Segmentation fault in libiberty/xexit.c:51
From: |
paul dot woegerer at nsc dot com |
Subject: |
[Bug gas/1069] New: Segmentation fault in libiberty/xexit.c:51 |
Date: |
14 Jul 2005 13:40:57 -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=1069
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/1069] New: Segmentation fault in libiberty/xexit.c:51,
paul dot woegerer at nsc dot com <=
- [Bug gas/1069] Buffer overflow in tc-crx.c, amodra at bigpond dot net dot au, 2005/07/14
- [Bug gas/1069] Segmentation fault in libiberty/xexit.c:51, amodra at bigpond dot net dot au, 2005/07/14
- [Bug gas/1069] Buffer overflow in tc-crx.c, nickc at redhat dot com, 2005/07/14
- [Bug gas/1069] Buffer overflow in tc-crx.c, nickc at redhat dot com, 2005/07/14
- [Bug gas/1069] Buffer overflow in tc-crx.c, ian at airs dot com, 2005/07/14