This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Reproducable SIGSEGV in ld.
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: Reproducable SIGSEGV in ld.
- From: sondheim at knxmail dot com
- Date: Tue, 26 Dec 2000 15:02:46 -0600 (CST)
- Cc: binutils at sourceware dot cygnus dot com
> Hi Loren,
>
> : I've found a reproducable SegFault in ld... I've looked at the
> : pointer where it seems to have crashed, and everything looks sane.
> : Any help would be appreciated.
>
> On what system is this occurring ?
I'm running Linux Mandrake 7.1 on a i586 (AMD K6-2 400MHz 128MB RAM)
>
>
> : Program received signal SIGSEGV, Segmentation fault.
> : 0x0807797b in elf_link_input_bfd (finfo=0xbffff4f4, input_bfd=0x8294d40)
> : at elflink.h:5544
> : 5544 isec->symbol->value = isym->st_value;
>
> What are the values of 'isec', 'isec->symbol' and 'isym' ?
They're pointers, of course... I said that I already checked
in the debugger to make sure that the values were sane...
I doubt they explain the SegFault (unless the kernel thinks
the process only has read-permission to isec->symbol->value).
Here is the output from the debugger:
(gdb) p isec
$1 = (asection *) 0x80bf640
(gdb) p isec->symbol
$2 = (struct symbol_cache_entry *) 0x80bf4b0
(gdb) p isec->symbol->value
$3 = 0
(gdb) p isym
$4 = (Elf_Internal_Sym *) 0x8202d28
(gdb) p isym->st_value
$5 = 0
>
> You might like to try downloading the 2.10.1 release of binutils from:
>
> ftp://sourceware.cygnus.com/pub/binutils/releases/
>
> and then rebuilding the linker. This may solve your problem.
I will definitely look into this... Thanks.
>
> Cheers
> Nick
>
>
Happy Holidays, and best regards,
-Loren
...................................
Great news! Get free KNXmail here!
http://www.knx1070.com