Closed Bug 149624 Opened 18 years ago Closed 18 years ago

REQUIRES-built TestGtkEmbed crashes on startup

Categories

(SeaMonkey :: Build Config, defect)

x86
Linux
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcafee, Assigned: mcafee)

References

Details

Attachments

(1 file)

REQUIRES-built TestGtkEmbed crashes on startup,

#21 0x4054a5d8 in ?? ()
#22 0x0804b4e0 in set_browser_visibility (browser=0x8087778, visibility=1)
    at TestGtkEmbed.cpp:521
#23 0x08049f00 in main (argc=1, argv=0xbffff6ec) at TestGtkEmbed.cpp:189
Also get an assertion:

###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().:
'mRawPtr != 0', file ../../../../dist/include/xpcom/nsCOMPtr.h, line 650
Break: at file ../../../../dist/include/xpcom/nsCOMPtr.h, line 650

Program received signal SIGSEGV, Segmentation fault.
0x4003a17c in ?? ()
Blocks: 143524
we need a better stack than that. break in the assertion (nsDebug::Assert I
think.. steal my ~/.gdbrc or ~/.gdbinit) and do a "bt" from there...

hmm, with the prun hack, TestGtkEmbed runs ok.
Stack trace from core file.  mNavigation is null at EmbedPrivate.cpp:201
for this case.  SessionHistory creation failed?

#0  0x4003a16c in EmbedPrivate::Realize (this=0x806cdd8, 
    aAlreadyRealized=0xbfffe784) at EmbedPrivate.cpp:201
#1  0x400372d6 in gtk_moz_embed_realize (widget=0x806cd90) at gtkmozembed2.cpp:518
#2  0x404f2de1 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#3  0x405255f1 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#4  0x40523525 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#5  0x4055acd9 in gtk_widget_realize () from /usr/lib/libgtk-1.2.so.0
#6  0x4055a988 in gtk_widget_map () from /usr/lib/libgtk-1.2.so.0
#7  0x40489dd8 in gtk_box_map () from /usr/lib/libgtk-1.2.so.0
#8  0x404f2de1 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#9  0x405255f1 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#10 0x40523525 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#11 0x4055a9b8 in gtk_widget_map () from /usr/lib/libgtk-1.2.so.0
#12 0x40565947 in gtk_window_map () from /usr/lib/libgtk-1.2.so.0
#13 0x404f2de1 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#14 0x405255f1 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#15 0x40523525 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#16 0x4055a9b8 in gtk_widget_map () from /usr/lib/libgtk-1.2.so.0
#17 0x405655bc in gtk_window_show () from /usr/lib/libgtk-1.2.so.0
#18 0x404f2de1 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#19 0x405255f1 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#20 0x40523525 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#21 0x4055a088 in gtk_widget_show () from /usr/lib/libgtk-1.2.so.0
#22 0x0804b4e0 in set_browser_visibility (browser=0x8071348, visibility=1)
    at TestGtkEmbed.cpp:521
#23 0x08049f00 in main (argc=1, argv=0xbffff754) at TestGtkEmbed.cpp:189
#24 0x4033e507 in __libc_start_main (main=0x8049e20 <main>, argc=1, 
    ubp_av=0xbffff754, init=0x8049770 <_init>, fini=0x804c860 <_fini>, 
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff74c)
    at ../sysdeps/generic/libc-start.c:129
hmm, both webBrowser and mNavigation are zero here.
Have you not run regxpcom or otherwise registered the components?
I'd also suggest running a make from embedding/config and seeing what dlls are
missing from the REQUIRES build
can you list the other items which were also missing? also, can you list any
extra modules that were a part of the bootstrap-based build, but were not in
basebrowser-unix? these details are key to figuring out which requirements are
important and which are not...
the "other items" are in the patch, specifically
embedding/components/windowwatcher embedding/components/printingui
embedding/components/build were not part
of the embedcomponents module.

We should do the basebrowser-unix compare in another bug.
Comment on attachment 87650 [details] [diff] [review]
Alec's hint was the right one.  We were missing libwebbrsr.so because this got missed in module2dir.pl.  Adding this, plus a few other items in embedcomponents that were also missing.

oh! duh. I wasn't thinking this all the way through :)
sr=alecf
Attachment #87650 - Flags: superreview+
Comment on attachment 87650 [details] [diff] [review]
Alec's hint was the right one.  We were missing libwebbrsr.so because this got missed in module2dir.pl.  Adding this, plus a few other items in embedcomponents that were also missing.

r=blythe
Attachment #87650 - Flags: review+
fix checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.