[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/10406] ld terminated with signal 11 [segmentation fault]
From: |
olof at baah dot se |
Subject: |
[Bug ld/10406] ld terminated with signal 11 [segmentation fault] |
Date: |
19 Sep 2009 05:40:15 -0000 |
------- Additional Comments From olof at baah dot se 2009-09-19 05:40 -------
Subject: Re: ld terminated with signal 11 [segmentation fault]
No great success, the latest cvs doesn't buid, at least not on my system.
if [ -r sysinfo.c ]; then \
gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g -O0 sysinfo.c -Wno-error ; \
else \
gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g -O0 ./sysinfo.c -Wno-error ; \
fi
sysinfo.c:1: warning: return type defaults to int
sysinfo.c:1: warning: function declaration isnt a prototype
if [ -r syslex.c ]; then \
gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g -O0 syslex.c -Wno-error ; \
else \
gcc -c -I. -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g -O0 ./syslex.c -Wno-error ;\
fi
syslex.c:1: warning: return type defaults to int
syslex.c:1: warning: function declaration isnt a prototype
gcc -g -O0 -o sysinfo sysinfo.o syslex.o
syslex.o: In function `main':
/usr/local/src/src/binutils/syslex.c:1: multiple definition of `main'
sysinfo.o:/usr/local/src/src/binutils/sysinfo.c:1: first defined here
Both of these files contain "main() { return 0; }"
Want me to try the .19 sources with some patch?
// Olof
2009/9/19 amodra at bigpond dot net dot au <address@hidden>:
>
> ------- Additional Comments From amodra at bigpond dot net dot au 2009-09-19
> 02:22 -------
> I've committed some patches that may stop the segfault. Please try with the
> latest sources. (At the moment that means CVS, the snapshot doesn't yet have
> my
> patch).
>
> You'll get -g by default but also get -O2 which probably will make the debug
> harder to interpret, so:
>
> CFLAGS="-g -O0" /path/to/sources/configure ...
> make
> ulimit -c unlimited
> <run new ld to generate a core dump>
> gdb
> core core
> backtrace
>
> The core file might be called core.nnnnnn
>
> --
>
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=10406
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10406
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault], amodra at bigpond dot net dot au, 2009/09/14
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault], olof at baah dot se, 2009/09/14
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault], amodra at bigpond dot net dot au, 2009/09/14
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault], cvs-commit at gcc dot gnu dot org, 2009/09/18
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault], cvs-commit at gcc dot gnu dot org, 2009/09/18
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault], olof at baah dot se, 2009/09/18
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault], amodra at bigpond dot net dot au, 2009/09/18
- [Bug ld/10406] ld terminated with signal 11 [segmentation fault],
olof at baah dot se <=