Bug#277690: snacc: FTBFS on amd64: Segmentation fault
Package: snacc
Version: 1.3bbn-6
Severity: important
snacc fails to build on amd64 with the following error:
creating snaccC
./snaccC -c -t -e -u ../../asn1specs/asn-useful.asn1 ../../asn1specs/tbl.asn1
make[4]: *** [tbl.c] Segmentation fault
Core was generated by `/usr/src/snacc-1.3bbn/compiler/core/.libs/lt-snaccC -c -t -e -u ../../asn1specs'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/src/snacc-1.3bbn/c-lib/Cebuf/.libs/libasn1cCebuf.so.0...done.
Loaded symbols for /usr/src/snacc-1.3bbn/c-lib/Cebuf/.libs/libasn1cCebuf.so.0
Reading symbols from /usr/lib/debug/libm.so.6...done.
Loaded symbols for /usr/lib/debug/libm.so.6
Reading symbols from /usr/lib/debug/libc.so.6...done.
Loaded symbols for /usr/lib/debug/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/ld-2.3.2.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0 0x0000002a9597b980 in strlen () from /usr/lib/debug/libc.so.6
(gdb) bt
#0 0x0000002a9597b980 in strlen () from /usr/lib/debug/libc.so.6
#1 0x0000002a95949c75 in _IO_vfprintf (s=0x567ca0,
format=0x7fbffff800 "\030", ap=0x7fbffff800) at vfprintf.c:1594
#2 0x0000002a9595032a in fprintf (stream=0x95b39d00, format=0x2a95a0d6e0 "G")
at fprintf.c:32
#3 0x000000000041d509 in PrintCSrcComment (src=0x567ca0, m=0x55ad70)
at gen-code.c:184
#4 0x000000000041d1a9 in PrintCCode (src=0x567ca0, hdr=0x567a60,
mods=0x554370, m=0x55ad70, r=0x54d7c0, longJmpVal=-100, printTypes=1,
printValues=0, printEncoders=1, printDecoders=0, printPrinters=0,
printFree=0) at gen-code.c:81
#5 0x0000000000417360 in GenCCode (allMods=0x554370, longJmpVal=-100,
genTypes=1, genValues=0, genEncoders=1, genDecoders=0, genPrinters=0,
genFree=0) at snacc.c:990
#6 0x0000000000416c41 in main (argc=5587824, argv=0x0) at snacc.c:834
(gdb) frame 3
#3 0x000000000041d509 in PrintCSrcComment (src=0x567ca0, m=0x55ad70)
at gen-code.c:184
184 fprintf (src, " * This file was generated by snacc on %s *\n", ctime (&t));
I have no idea where it went wrong, but this doesn't look like the
place where it went wrong.
Kurt
Reply to: