Comment 5 for bug 943539

Revision history for this message
Steve Langasek (vorlon) wrote :

Seems to be related to libgc which w3m uses. Even trying to cross-build a debug version of w3m fails because it tries to run mktables at build time which is also linked to libgc:

gdb-multiarch ./mktable
GNU gdb (Ubuntu/Linaro 7.4-0ubuntu1) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/w3m-0.5.3/mktable...done.
(gdb) set architecture armv5t
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
[New Remote target]
Reading symbols from /lib/ld-linux.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.3
[Switching to Remote target]
0x40801c80 in ?? () from /lib/ld-linux.so.3
(gdb) break main
Breakpoint 1 at 0x8920: file mktable.c, line 30.
(gdb) cont
Continuing.

Breakpoint 1, main (argc=1, argv=0x4080061c, envp=0x40800624) at mktable.c:30
30 {
(gdb) stepi
0x00008924 30 {
(gdb)
30 {
(gdb)
0x00008928 30 {
(gdb)
39 GC_INIT();
(gdb)
0x000088f8 in GC_init ()
(gdb) bt
#0 0x000088f8 in GC_init ()
#1 0x0000892e in main (argc=1, argv=0x4080061c, envp=<optimized out>)
    at mktable.c:39
(gdb) fin
Run till exit from #0 0x000088f8 in GC_init ()

Program received signal SIGSEGV, Segmentation fault.
0x40834de6 in ?? ()