[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#327736: lablgl: FTBFS on m68k, ocamlmktop crashes at exit



Package: lablgl
Severity: serious
Tags: help
Justification: no longer builds from source

Hi,

The last buildd failed on m68k ending on:

ocamlmktop  -I . -I +labltk -I ../../src -o lablgltop \
  labltk.cma lablgl.cma togl.cma
make[2]: *** [lablgltop] Segmentation fault
make[2]: *** Deleting file `lablgltop'
make[2]: Leaving directory `/build/buildd/lablgl-1.01/Togl/src'

Thanks to Ingo Juergensmann I've been able to get an account on an m68k
box. I first ran gdb to know were was the problem:

arrakis:~/lablgl/lablgl-1.01/Togl/src% gdb ocamlrun
(gdb) r /usr/bin/ocamlc -linkall toplevellib.cma -o test  -I . -I
+labltk -I ../../src labltk.cma topstart.cmo
[...]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1801)]
0x1d3c0000 in ?? ()
(gdb) where
#0  0x1d3c0000 in ?? ()
#1  0xc04d9002 in ?? () from /usr/lib/libtk8.4.so.0
#2  0xc057c5e8 in ?? () from /usr/lib/libtk8.4.so.0
#3  0x0000000b in ?? ()
#4  0x8004b7b0 in ?? ()
#5  0xc001271c in ?? () from /lib/ld.so.1
#6  0xeffff73e in ?? ()
#7  0xc056ca72 in _fini () from /usr/lib/libtk8.4.so.0
#8  0xc056ca72 in _fini () from /usr/lib/libtk8.4.so.0
#9  0xc0009686 in _dl_rtld_di_serinfo () from /lib/ld.so.1
#10 0xc00ffc04 in exit () from /lib/libc.so.6
#11 0x8000fc10 in caml_sys_exit ()
#12 0x8001653e in caml_interprete ()
#13 0x80017872 in caml_main ()
#14 0x80007d7e in main ()

I then recompiled tk8.4 with debugging symbols and the segmentation
fault became a bus error:

Program received signal SIGBUS, Bus error.
[Switching to Thread 16384 (LWP 10586)]
0xc04d8224 in ?? () from /usr/lib/libtk8.4.so.0
(gdb) where
#0  0xc04d8224 in ?? () from /usr/lib/libtk8.4.so.0
#1  0xc04d9002 in __do_global_dtors_aux () from /usr/lib/libtk8.4.so.0
#2  0xc056ca4a in _fini () from /usr/lib/libtk8.4.so.0
#3  0xc0009686 in _dl_rtld_di_serinfo () from /lib/ld.so.1
#4  0xc00ffc04 in exit () from /lib/libc.so.6
#5  0x8000fc10 in caml_sys_exit ()
#6  0x8001653e in caml_interprete ()
#7  0x80017872 in caml_main ()
#8  0x80007d7e in main ()

The symbols _dl_rtld_di_serinfo, _fini, __do_global_dtors_aux do not
seem to be present in tk8.4 sources (grep did not find the at least),
so I guess it must be some gcc stuff.

I'm a bit lost now and I have no idea of what to look for. If someone
has an idea of something to try, I can use my account on the m68k.

Sam.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)



Reply to: