Comment 5 for bug 943539

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 <>
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:
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/ debugging symbols found)...done.
Loaded symbols for /lib/
[Switching to Remote target]
0x40801c80 in ?? () from /lib/
(gdb) break main
Breakpoint 1 at 0x8920: file mktable.c, line 30.
(gdb) cont

Breakpoint 1, main (argc=1, argv=0x4080061c, envp=0x40800624) at mktable.c:30
30 {
(gdb) stepi
0x00008924 30 {
30 {
0x00008928 30 {
39 GC_INIT();
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 ?? ()