Your message dated Sat, 6 Aug 2011 11:13:33 +0200
with message-id <[email protected]>
and subject line Re: Bug#578109: example mozembed code segfaults
has caused the Debian Bug report #578109,
regarding example mozembed code segfaults
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
578109: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578109
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xulrunner-dev
Version: 1.9.1.9-6
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I’m trying to compile this example mozembed code:
#include "gtkmozembed.h"
int main (int argc, char *argv[]) {
gtk_init(&argc, &argv);
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget *html = gtk_moz_embed_new();
gtk_container_add(GTK_CONTAINER(window), html);
gtk_moz_embed_load_url(GTK_MOZ_EMBED(html), "http://mozilla.org");
gtk_widget_show_all(window);
gtk_main();
return 0;
}
I compile it with:
$ gcc `pkg-config --cflags --libs mozilla-gtkmozembed gtk+-2.0` -lxpcom
mozembed.c -o lala -Wl,-rpath,/usr/lib/xulrunner-1.9.1/
The rpath is required, otherwise the resulting binary will not find
libxul.so in the non-standard location. I wonder if this flag should not
be provided by the pkg-config call?
Anyways, the resulting binary segfaults:
$ gdb -ex run -ex bt ./lala
Reading symbols from /tmp/lala...(no debugging symbols found)...done.
Starting program: /tmp/lala
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6e14799 in EmbedPrivate::Realize (this=0x666a00,
aAlreadyRealized=<value optimized out>) at EmbedPrivate.cpp:295
295 EmbedPrivate.cpp: Datei oder Verzeichnis nicht gefunden.
in EmbedPrivate.cpp
#0 0x00007ffff6e14799 in EmbedPrivate::Realize (this=0x666a00,
aAlreadyRealized=<value optimized out>) at EmbedPrivate.cpp:295
#1 0x00007ffff6e131ad in gtk_moz_embed_realize (widget=0x63a8a0) at
gtkmozembed2.cpp:490
#2 0x00007ffff3b0747e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#3 0x00007ffff3b1ccd1 in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0x00007ffff3b1ea86 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#5 0x00007ffff3b1efd3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#6 0x00007ffff5977217 in gtk_widget_realize () from
/usr/lib/libgtk-x11-2.0.so.0
#7 0x00007ffff5977a78 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#8 0x00007ffff5987c42 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#9 0x00007ffff3b0747e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff3b1ccd1 in ?? () from /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff3b1ea86 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#12 0x00007ffff3b1efd3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff5977a4e in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007ffff5987d84 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#15 0x00007ffff3b0747e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff3b1ccd1 in ?? () from /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff3b1ea86 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#18 0x00007ffff3b1efd3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#19 0x00007ffff59781cb in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x0000000000400b83 in main ()
What am I doing wrong? Does this code work for you?
This affects the packaging of the mozembed Haskell bindings (Bug #578043).
Thanks,
Joachim
- -- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages xulrunner-dev depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libglib2.0-0 2.24.0-1 The GLib library of C routines
ii libidl0 0.8.14-0.1 library for parsing CORBA IDL file
ii libmozjs-dev 1.9.1.9-6 Development files for the Mozilla
ii libnspr4-dev 4.8.4-1 Development files for the NetScape
ii libnss3-dev 3.12.6-2 Development files for the Network
ii xulrunner-1.9.1 1.9.1.9-6 XUL + XPCOM application runner
xulrunner-dev recommends no packages.
xulrunner-dev suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkvI6eEACgkQ9ijrk0dDIGxzzgCgs7UZVzp6pBAPSb1Pae+nr0Lt
vtIAn2OuOPRmO/tzhNiZddpEApEqH0V/
=d8eB
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Version: 5.0-1
On Sat, Apr 17, 2010 at 12:51:13AM +0200, Joachim Breitner wrote:
> Package: xulrunner-dev
> Version: 1.9.1.9-6
> Severity: normal
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I’m trying to compile this example mozembed code:
gtkmozembed is gone as of version 5.0
Mike
--- End Message ---