Subject: SIGSEGV with x11/lablgtk (net/unison won't work)
To: None <pkgsrc-users@netbsd.org>
From: Brian de Alwis <bsd@cs.ubc.ca>
List: pkgsrc-users
Date: 11/25/2007 15:38:24
I recently recompiled the world, and net/unison now cores with a
SIGSEGV when trying to use it in graphics mode:

    (gdb) where
    #0  0xbb5516b2 in g_type_fundamental () from /usr/pkg/lib/libgobject-2.0.so.0
    #1  0x08172e85 in ml_G_TYPE_FUNDAMENTAL ()
    #2  0x080ce208 in camlGobject__objtype_from_name_256 ()
    #3  0x762cb901 in ?? ()
    #4  0x0818aad4 in camlUigtk2__187 ()
    #5  0x762cb901 in ?? ()
    #6  0x081f8fbc in camlGtkBaseProps__150 ()
    #7  0x081f2640 in camlGobject__114 ()
    #8  0x080ce405 in camlGobject__unsafe_create_290 ()
    [...]

Unison works fine in text mode.

It seems to be a problem in the x11/lablgtk package: almost all of
the example programs crash in the same way *except* for about.ml.
The crash traces generally look like:

    (gdb) run -I ../src -w s tree.ml
    Starting program: /tmp/obj/x11/lablgtk/work/lablgtk-2.10.0/src/lablgtktop -I ../src -w s tree.ml

    Program received signal SIGSEGV, Segmentation fault.
    0xbb48c6b2 in g_type_fundamental () from /usr/pkg/lib/libgobject-2.0.so.0
    (gdb) bt
    #0  0xbb48c6b2 in g_type_fundamental () from /usr/pkg/lib/libgobject-2.0.so.0
    #1  0x080a8aff in ml_G_TYPE_FUNDAMENTAL (arg1=1967197825) at ml_gobject.c:87
    #2  0x080c9a0f in caml_interprete ()
    #3  0x080baae5 in caml_main ()
    #4  0x080bace1 in main ()

Does this trigger any ideas for anybody?

My package versions installed:

    lablgtk-2.10.0 (with default options)
    ocaml-3.10.0
    gtk2+-2.12.1
    glib2-2.14.3
    X11_TYPE=modular

Brian.

-- 
  Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
      "Amusement to an observing mind is study." - Benjamin Disraeli