segfault on macOS X
yoann padioleau <[email protected]> Thu, 5 Aug 2010 00:15:39 +0200
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've downloaded http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-2.14.1.tar.gz then $ ./configure $ make but when I do $ cd examples $ ocamlc -I ../src lalbgtk.cma hello.ml $ ./a.out I get: (process:22787): GLib-GObject-WARNING **: invalid (NULL) pointer instance (process:22787): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (process:22787): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window (process:22787): Gdk-CRITICAL **: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed (process:22787): Pango-CRITICAL **: pango_context_set_font_description: assertion `context != NULL' failed (process:22787): Pango-CRITICAL **: pango_context_set_base_dir: assertion `context != NULL' failed (process:22787): Pango-CRITICAL **: pango_context_set_language: assertion `context != NULL' failed (process:22787): Pango-CRITICAL **: pango_layout_new: assertion `context != NULL' failed (process:22787): Pango-CRITICAL **: pango_layout_set_text: assertion `layout != NULL' failed (process:22787): Pango-CRITICAL **: pango_layout_set_alignment: assertion `layout != NULL' failed (process:22787): Pango-CRITICAL **: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed (process:22787): Pango-CRITICAL **: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed (process:22787): Pango-CRITICAL **: pango_layout_set_width: assertion `layout != NULL' failed (process:22787): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed (process:22787): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed (process:22787): Gdk-CRITICAL **: gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed (process:22787): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed (process:22787): Gdk-CRITICAL **: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed (process:22787): Gdk-CRITICAL **: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed (process:22787): Gdk-CRITICAL **: gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed segmentation fault Under gdb I get: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000018 0x000000010057e943 in gdk_window_enable_synchronized_configure () (gdb) bt #0 0x000000010057e943 in gdk_window_enable_synchronized_configure () #1 0x00000001002898fb in gtk_window_realize () #2 0x0000000100b470c2 in g_closure_invoke () #3 0x0000000100b5a95d in signal_emit_unlocked_R () #4 0x0000000100b5c6b4 in g_signal_emit_valist () #5 0x0000000100b5ca84 in g_signal_emit () #6 0x0000000100279127 in gtk_widget_realize () #7 0x000000010028a1c8 in gtk_window_show () #8 0x0000000100b470c2 in g_closure_invoke () #9 0x0000000100b5a95d in signal_emit_unlocked_R () #10 0x0000000100b5c6b4 in g_signal_emit_valist () #11 0x0000000100b5ca84 in g_signal_emit () #12 0x000000010027a106 in gtk_widget_show () #13 0x000000010000b1ea in ml_gtk_widget_show () #14 0x000000010001109b in caml_interprete () #15 0x000000010001306e in caml_main () #16 0x000000010002473c in main () (gdb) I am under Snow Leopard with ocaml 3.11.2 from a godi install.