Friday, 17 August 2012

[gccsdk] [Bug 242] New: Segfault from asasm

http://www.riscos.info/bugzilla3/show_bug.cgi?id=242

Summary: Segfault from asasm
Product: GCC/GCCSDK
Version: other
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P1
Component: RISC OS-specific tools
AssignedTo: John.Tytgat@aaug.net
ReportedBy: gccsdk-bugzilla@markettos.org.uk
Estimated Hours: 0.0


I have a checkout of GCCSDK rev 5827 which is giving a segfault when I try to
assemble something. To reproduce this:

git clone git://github.com/caliston/ro-bootlinux.git
cd ro-bootlinux
git checkout 4e3b87b8f6
cd HAL
../../../gccsdk/cross/bin/asasm -o Messaging.o s/Messaging
Segmentation fault

I can't update to HEAD (5890) because that won't build either (build error
below).

gdb backtrace (I'm not entirely sure what's going on here):

[New Thread 12636]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `../../../gccsdk/gcc4/builddir/cross/asasm/asasm -o
Messaging.o s/Messaging'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f48513e7ad5 in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007f48513e7ad5 in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f485140aa02 in vsnprintf () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00000000004078de in errorCore (e=ErrorError,
format=0x433ef3 "'%.*s' is undefined", ap=0x7fff848319f0)
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/error.c:179
#3 0x0000000000407b9a in error (e=ErrorError, format=0x433ef3 "'%.*s' is
undefined")
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/error.c:264
#4 0x00000000004275ad in c_set (label=0x7fff84831c60)
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/variables.c:295
#5 0x0000000000404d64 in decode (label=0x7fff84831c60)
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/decode.c:607
#6 0x0000000000402e95 in ASM_DoPass (asmFile=0x7fff84832a38 "s/Messaging")
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/asm.c:114
#7 0x0000000000402ef0 in ASM_Assemble (asmFile=0x7fff84832a38 "s/Messaging")
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/asm.c:134
#8 0x000000000041726c in main (argc=0, argv=0x7fff84831e38)
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/main.c:536
(gdb) frame 1
#1 0x00007f485140aa02 in vsnprintf () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) info args
No symbol table info available.
(gdb) frame 2
#2 0x00000000004078de in errorCore (e=ErrorError,
format=0x433ef3 "'%.*s' is undefined", ap=0x7fff848319f0)
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/error.c:179
179 vsnprintf (errbuf, sizeof (errbuf), format, ap);
(gdb) info args
e = ErrorError
format = 0x433ef3 "'%.*s' is undefined"
ap = 0x7fff848319f0
(gdb) frame 3
#3 0x0000000000407b9a in error (e=ErrorError, format=0x433ef3 "'%.*s' is
undefined")
at /local/scratch/atm26/riscos/gccsdk/gcc4/riscos/asasm/error.c:264
264 errorCore (e, format, ap);
(gdb) info args
e = ErrorError
format = 0x433ef3 "'%.*s' is undefined"




Meanwhile I can't build svn HEAD (5890):

all ===> ar
lex
/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar/acplex.l
mv lex.yy.c acplex.c
cc -g -O2 -I.
-I/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar
-I.
-I/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar
-I/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar/../common
-I/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar/../libelf
-I/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar/../libelftc
-Werror -c
/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar/ar.c
/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar/ar.c:65:21:
fatal error: archive.h: No such file or directory
compilation terminated.
*** Error code 1

Stop.
pmake: stopped in
/local/scratch/atm26/riscos/gccsdk-new/gcc4/riscos/asasm/elftoolchain/current-trunk/ar
*** Error code 1

--
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment