Closed Bug 470789 Opened 16 years ago Closed 15 years ago

Crashes (not only) on the print dialog (nsAutoptr)

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mcepl, Unassigned)

Details

(Keywords: crash)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9.0.5) Gecko/2008121622 Fedora/3.0.5-1.fc10 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9.0.5) Gecko/2008121622 Fedora/3.0.5-1.fc10 Firefox/3.0.5

(originally filed as https://bugzilla.redhat.com/show_bug.cgi?id=477619)

While clicking on the print (`tisknout') webpage button on http://idnes.cz
articles it often crashes.


Reproducible: Sometimes

Steps to Reproduce:
1.Open: http://zpravy.idnes.cz/tiskni.asp?r=krimi&c=A081219_131955_krimi_itu
or
1a. http://idnes.cz
2a. click on some headline
3b. click on "Tisknout" (print) button below the article
Actual Results:  
Observe the crash:

(gdb) bt
#0  0x000000340540efab in raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1  0x0000003d7082fbc5 in nsProfileLock::FatalSignalHandler (signo=11) at
nsProfileLock.cpp:212
#2  <signal handler called>
#3  0x0000003d70f5ca0e in nsRefPtr (this=<value optimized out>,
aRawPtr=0x7fc157c14610) at ../../../dist/include/xpcom/nsAutoPtr.h:980
#4  0x0000003d70f592c5 in leave_notify_event_cb (widget=0x7fc159319210,
event=0x7fc15706cd50) at nsWindow.cpp:4609
#5  0x0000003d6fb294c8 in _gtk_marshal_BOOLEAN__BOXED (closure=0x7fc1636e5c40,
return_value=0x7fff7287b040, n_param_values=<value optimized out>,
param_values=0x7fc161a5cd20, invocation_hint=<value optimized out>,
marshal_data=0x3d70f5926e) at gtkmarshalers.c:84
#6  0x000000340680b7dd in IA__g_closure_invoke (closure=0x7fc1636e5c40,
return_value=0x7fff7287b040, n_param_values=2, param_values=0x7fc161a5cd20,
invocation_hint=0x7fff7287b000) at gclosure.c:767
#7  0x00000034068214bd in signal_emit_unlocked_R (node=0x2500610, detail=0,
instance=0x7fc159319210, emission_return=0x7fff7287b180,
instance_and_params=0x7fc161a5cd20) at gsignal.c:3244
#8  0x00000034068229ea in IA__g_signal_emit_valist (instance=0x7fc159319210,
signal_id=<value optimized out>, detail=0, var_args=0x7fff7287b1e0) at
gsignal.c:2987
#9  0x0000003406823093 in IA__g_signal_emit (instance=0x7fc157c14610,
signal_id=1472284176, detail=1668176960) at gsignal.c:3034
#10 0x0000003d6fc2c1de in gtk_widget_event_internal (widget=0x7fc159319210,
event=0x7fc15706cd50) at gtkwidget.c:4745
#11 0x0000003d6fc2c3fe in synth_crossing (widget=0x7fc159319210, type=<value
optimized out>, window=0x7fc158cfeb20, mode=GDK_CROSSING_GTK_GRAB,
detail=GDK_NOTIFY_NONLINEAR) at gtkwidget.c:8142
#12 0x0000003d6fc2eb01 in _gtk_widget_synthesize_crossing (from=0x7fc159319210,
to=0x7fc157b8e000, mode=GDK_CROSSING_GTK_GRAB) at gtkwidget.c:8337
#13 0x0000003d6fb22972 in gtk_grab_notify_foreach (child=0x7fc159319210,
data=<value optimized out>) at gtkmain.c:1712
#14 0x0000003d6fb22992 in gtk_grab_notify_foreach (child=0x7fc164f7d9a0,
data=<value optimized out>) at gtkmain.c:1705
#15 0x0000003d6fb22a53 in gtk_grab_notify (group=0x7fc160456760,
old_grab_widget=<value optimized out>, new_grab_widget=<value optimized out>,
from_grab=<value optimized out>) at gtkmain.c:1764
#16 0x0000003d6fc44829 in gtk_window_show (widget=0x7fc157b8e000) at
gtkwindow.c:4345
#17 0x000000340680b7dd in IA__g_closure_invoke (closure=0x24bc280,
return_value=0x0, n_param_values=1, param_values=0x7fc15b6ddb40,
invocation_hint=0x7fff7287b620) at gclosure.c:767
#18 0x0000003406820dd8 in signal_emit_unlocked_R (node=0x24fea90, detail=0,
instance=0x7fc157b8e000, emission_return=0x0,
instance_and_params=0x7fc15b6ddb40) at gsignal.c:3174
#19 0x0000003406822b68 in IA__g_signal_emit_valist (instance=0x7fc157b8e000,
signal_id=<value optimized out>, detail=0, var_args=0x7fff7287b800) at
gsignal.c:2977
#20 0x0000003406823093 in IA__g_signal_emit (instance=0x7fc157c14610,
signal_id=1472284176, detail=1668176960) at gsignal.c:3034
#21 0x0000003d6fc355bc in IA__gtk_widget_show (widget=0x7fc157b8e000) at
gtkwidget.c:3003
#22 0x0000003d6fab10b7 in IA__gtk_dialog_run (dialog=0x7fc157b8e000) at
gtkdialog.c:1039
#23 0x0000003d70f6b1a7 in RunDialog (aDialog=0x7fc157b8e000) at
nsAccessibilityHelper.cpp:52
#24 0x0000003d70f6c789 in nsPrintDialogWidgetGTK::Run (this=0x7fff7287b9c0) at
nsPrintDialogGTK.cpp:404
#25 0x0000003d70f6d5f9 in nsPrintDialogServiceGTK::Show (this=<value optimized
out>, aParent=<value optimized out>, aSettings=0x7fc15c2df460) at
nsPrintDialogGTK.cpp:577
#26 0x0000003d70e070ee in nsPrintingPromptService::ShowPrintDialog
(this=0x7fc156d2f4b0, parent=0x7fc1597b7450, webBrowserPrint=0x7fc1574aeea8,
printSettings=0x7fc15c2df460) at nsPrintingPromptService.cpp:117
#27 0x0000003d70c85904 in nsPrintEngine::DoCommonPrint (this=0x7fc156dd18f0,
aIsPrintPreview=0, aPrintSettings=0x7fc15c2df460, aWebProgressListener=<value
optimized out>) at nsPrintEngine.cpp:589
#28 0x0000003d70c85f75 in nsPrintEngine::CommonPrint (this=0x7fc157c14610,
aIsPrintPreview=1472284176, aPrintSettings=0x7fc1636e5c40,
aWebProgressListener=0x3d711babc7) at nsPrintEngine.cpp:418
#29 0x0000003d7099c573 in DocumentViewerImpl::Print (this=0x7fc1574aee80,
aPrintSettings=0x7fc15c2df460, aWebProgressListener=0x0) at
nsDocumentViewer.cpp:3489

or (reproduced by me, Red Hat bug triager):

[?1034hCore was generated by `/usr/lib/firefox-3.0.5/firefox -UILocale cs'.
Program terminated with signal 11, Segmentation fault.
[New process 15343]
[New process 1529]
[New process 1492]
[New process 813]
[New process 15349]
[New process 15363]
[New process 15348]
[New process 15376]
[New process 15362]
#0  0x00110416 in __kernel_vsyscall ()

Thread 9 (process 15362):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x007a5105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread-2.9.so
#2  0x04dd2db7 in PR_WaitCondVar (cvar=0xac44518, timeout=4294967295)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:405
#3  0x027e0b6b in nsSSLThread::Run (this=0xac44490) at nsSSLThread.cpp:964
#4  0x027e0482 in nsPSMBackgroundThread::nsThreadRunner (arg=0xac44490)
    at nsPSMBackgroundThread.cpp:44
#5  0x04dd90d1 in _pt_root (arg=0xac44558)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#6  0x007a151f in start_thread (arg=0xb5a7eb90) at pthread_create.c:297
#7  0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 8 (process 15376):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x007a5105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread-2.9.so
#2  0x04dd2db7 in PR_WaitCondVar (cvar=0xb37ce60, timeout=4294967295)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:405
#3  0x04dd2e37 in PR_Wait (mon=0xb37cea0, timeout=4294967295)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:584
#4  0x029da9c9 in nsAutoMonitor::Wait ()
    at ../../dist/include/xpcom/nsAutoLock.h:340
#5  nsEventQueue::GetEvent (this=0xb37cdd8, mayWait=1, result=0x43f32f4)
    at nsEventQueue.cpp:85
#6  0x029db876 in nsThread::nsChainedEventQueue::GetEvent () at nsThread.h:112
#7  nsThread::ProcessNextEvent (this=0xb37cdb8, mayWait=1, result=0x43f3334)
    at nsThread.cpp:501
#8  0x029a8668 in NS_ProcessNextEvent_P (thread=0x80, mayWait=1)
    at nsThreadUtils.cpp:227
#9  0x029dc156 in nsThread::ThreadFunc (arg=0xb37cdb8) at nsThread.cpp:254
#10 0x04dd90d1 in _pt_root (arg=0xb383790)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#11 0x007a151f in start_thread (arg=0x43f3b90) at pthread_create.c:297
#12 0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 7 (process 15348):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x006cc777 in __poll (fds=0xb7d8df58, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x04dd4ca4 in _pr_poll_with_poll (pds=0x95e99f0, npds=1, 
    timeout=4294967295) at ../../../mozilla/nsprpub/pr/src/pthreads/ptio.c:3916
#3  0x021ef4cf in nsSocketTransportService::Poll (this=0x95e9510, wait=1, 
    interval=0xb7d8e1d8) at nsSocketTransportService2.cpp:349
#4  0x021ef9e4 in nsSocketTransportService::DoPollIteration (this=0x95e9510, 
    wait=1) at nsSocketTransportService2.cpp:644
#5  0x021efca0 in nsSocketTransportService::OnProcessNextEvent (
    this=0x95e9510, thread=0x95e66c0, mayWait=1, depth=1)
    at nsSocketTransportService2.cpp:523
#6  0x029db844 in nsThread::ProcessNextEvent (this=0x95e66c0, mayWait=1, 
    result=0xb7d8e284) at nsThread.cpp:497
#7  0x029a8668 in NS_ProcessNextEvent_P (thread=0x1, mayWait=1)
    at nsThreadUtils.cpp:227
#8  0x021ef6fb in nsSocketTransportService::Run (this=0x95e9510)
    at nsSocketTransportService2.cpp:565
#9  0x029db8a0 in nsThread::ProcessNextEvent (this=0x95e66c0, mayWait=1, 
    result=0xb7d8e334) at nsThread.cpp:510
#10 0x029a8668 in NS_ProcessNextEvent_P (thread=0x1, mayWait=1)
    at nsThreadUtils.cpp:227
#11 0x029dc156 in nsThread::ThreadFunc (arg=0x95e66c0) at nsThread.cpp:254
#12 0x04dd90d1 in _pt_root (arg=0x95e9c50)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#13 0x007a151f in start_thread (arg=0xb7d8eb90) at pthread_create.c:297
#14 0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (process 15363):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x007a5105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread-2.9.so
#2  0x04dd2db7 in PR_WaitCondVar (cvar=0xac44798, timeout=4294967295)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:405
#3  0x027e1cd9 in nsCertVerificationThread::Run (this=0xac446e8)
    at nsCertVerificationThread.cpp:138
#4  0x027e0482 in nsPSMBackgroundThread::nsThreadRunner (arg=0xac446e8)
    at nsPSMBackgroundThread.cpp:44
#5  0x04dd90d1 in _pt_root (arg=0xac447d8)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#6  0x007a151f in start_thread (arg=0xb507db90) at pthread_create.c:297
#7  0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (process 15349):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x007a5432 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:179
#2  0x04dd1f1e in pt_TimedWait (cv=0x954f66c, ml=0x954f608, timeout=14)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:280
#3  0x04dd2d40 in PR_WaitCondVar (cvar=0x954f668, timeout=14)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:407
#4  0x029def14 in TimerThread::Run (this=0x954f550) at TimerThread.cpp:345
#5  0x029db8a0 in nsThread::ProcessNextEvent (this=0x9626f60, mayWait=1, 
    result=0xb738d334) at nsThread.cpp:510
#6  0x029a8668 in NS_ProcessNextEvent_P (thread=0x80, mayWait=1)
    at nsThreadUtils.cpp:227
#7  0x029dc156 in nsThread::ThreadFunc (arg=0x9626f60) at nsThread.cpp:254
#8  0x04dd90d1 in _pt_root (arg=0x9627168)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#9  0x007a151f in start_thread (arg=0xb738db90) at pthread_create.c:297
#10 0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (process 813):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x006cc777 in __poll (fds=0x9454f48, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x04dd4ca4 in _pr_poll_with_poll (pds=0x94552dc, npds=1, 
    timeout=4294967295) at ../../../mozilla/nsprpub/pr/src/pthreads/ptio.c:3916
#3  0x04ddba11 in WaitPidDaemonThread (unused=0x0)
    at ../../../../mozilla/nsprpub/pr/src/md/unix/uxproces.c:723
#4  0x04dd90d1 in _pt_root (arg=0x1fc29338)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#5  0x007a151f in start_thread (arg=0x9455b90) at pthread_create.c:297
#6  0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (process 1492):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x007a5432 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:179
#2  0x04dd1f1e in pt_TimedWait (cv=0xa0876d4, ml=0xa087714, timeout=60000)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:280
#3  0x04dd2d40 in PR_WaitCondVar (cvar=0xa0876d0, timeout=60000)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:407
#4  0x04dd2e37 in PR_Wait (mon=0xa087710, timeout=60000)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:584
#5  0x029dd9ff in nsAutoMonitor::Wait ()
    at ../../dist/include/xpcom/nsAutoLock.h:340
#6  nsThreadPool::Run (this=0xa087698) at nsThreadPool.cpp:200
#7  0x029db8a0 in nsThread::ProcessNextEvent (this=0x15614940, mayWait=1, 
    result=0xb01ff334) at nsThread.cpp:510
#8  0x029a8668 in NS_ProcessNextEvent_P (thread=0x80, mayWait=1)
    at nsThreadUtils.cpp:227
#9  0x029dc156 in nsThread::ThreadFunc (arg=0x15614940) at nsThread.cpp:254
#10 0x04dd90d1 in _pt_root (arg=0x1e5c37a0)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#11 0x007a151f in start_thread (arg=0xb01ffb90) at pthread_create.c:297
#12 0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (process 1529):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x007a5432 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:179
#2  0x04dd1f1e in pt_TimedWait (cv=0x95eccac, ml=0x95ecc48, timeout=60000)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:280
#3  0x04dd2d40 in PR_WaitCondVar (cvar=0x95ecca8, timeout=60000)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:407
#4  0x021f95c3 in nsHostResolver::GetHostToLookup (this=0x95ecbe8, 
    result=0x8a54368) at nsHostResolver.cpp:595
#5  0x021f9ccc in nsHostResolver::ThreadFunc (arg=0x95ecbe8)
    at nsHostResolver.cpp:690
#6  0x04dd90d1 in _pt_root (arg=0xb3ed3570)
    at ../../../mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#7  0x007a151f in start_thread (arg=0x8a54b90) at pthread_create.c:297
#8  0x006d704e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (process 15343):
#0  0x00110416 in __kernel_vsyscall ()
#1  0x007a9550 in raise (sig=11)
    at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#2  0x0218ef33 in nsProfileLock::FatalSignalHandler (signo=11)
    at nsProfileLock.cpp:212
#3  <signal handler called>
#4  0x000001a9 in ?? ()
#5  0x028f1d51 in nsRefPtr (this=0xbfbfba20, aRawPtr=0x1ecb14a0)
    at ../../../dist/include/xpcom/nsAutoPtr.h:980
#6  0x028ee496 in leave_notify_event_cb (widget=0x9c8dd48, event=0x1723db88)
    at nsWindow.cpp:4609
#7  0x002bc0e6 in _gtk_marshal_BOOLEAN__BOXED (closure=0x9928070, 
    return_value=0xbfbfbbd0, n_param_values=2, param_values=0xe367718, 
    invocation_hint=0xbfbfbbbc, marshal_data=0x28ee415) at gtkmarshalers.c:84
#8  0x00a171fb in IA__g_closure_invoke (closure=0x9928070, 
    return_value=0xbfbfbbd0, n_param_values=2, param_values=0xe367718, 
    invocation_hint=0xbfbfbbbc) at gclosure.c:767
#9  0x00a2d655 in signal_emit_unlocked_R (node=0x9519130, detail=0, 
    instance=0x9c8dd48, emission_return=0xbfbfbd08, 
    instance_and_params=0xe367718) at gsignal.c:3244
#10 0x00a2ebeb in IA__g_signal_emit_valist (instance=0x9c8dd48, signal_id=42, 
    detail=0, var_args=0xbfbfbd60 "x���\210�#\027H��\t\"\225�")
    at gsignal.c:2987
#11 0x00a2f1e6 in IA__g_signal_emit (instance=0x9c8dd48, signal_id=42, 
    detail=0) at gsignal.c:3034
#12 0x003d137e in gtk_widget_event_internal (widget=0x9c8dd48, 
    event=0x1723db88) at gtkwidget.c:4745
#13 0x003d1582 in synth_crossing (widget=0x9c8dd48, 
    type=<value optimized out>, window=0x9ffed28, mode=GDK_CROSSING_GTK_GRAB, 
    detail=GDK_NOTIFY_NONLINEAR) at gtkwidget.c:8142
#14 0x003d401d in _gtk_widget_synthesize_crossing (from=0x9c8dd48, 
    to=0x1e7ce1d8, mode=GDK_CROSSING_GTK_GRAB) at gtkwidget.c:8337
#15 0x002b59cd in gtk_grab_notify_foreach (child=0x9c8dd48, data=0xbfbfbea8)
    at gtkmain.c:1712
#16 0x001fc61d in gtk_bin_forall (container=0x9cb42e0, include_internals=1, 
    callback=0x2b5830 <gtk_grab_notify_foreach>, callback_data=0xbfbfbea8)
    at gtkbin.c:128
#17 0x00232ca6 in IA__gtk_container_forall (container=0x9cb42e0, 
    callback=0x2b5830 <gtk_grab_notify_foreach>, callback_data=0xbfbfbea8)
    at gtkcontainer.c:1455
#18 0x002b59f1 in gtk_grab_notify_foreach (child=0x9cb42e0, data=0xbfbfbea8)
    at gtkmain.c:1705
#19 0x002b5ac7 in gtk_grab_notify (group=0x9b529b0, 
    old_grab_widget=<value optimized out>, new_grab_widget=0x1e7ce1d8, 
    from_grab=1) at gtkmain.c:1764
#20 0x002b5c12 in IA__gtk_grab_add (widget=0x1e7ce1d8) at gtkmain.c:1793
#21 0x003ebde3 in gtk_window_show (widget=0x1e7ce1d8) at gtkwindow.c:4345
#22 0x00a24984 in IA__g_cclosure_marshal_VOID__VOID (closure=0x95170b0, 
    return_value=0x0, n_param_values=1, param_values=0x1467c280, 
    invocation_hint=0xbfbfc13c, marshal_data=0x3ebcd0) at gmarshal.c:77
#23 0x00a15959 in g_type_class_meta_marshal (closure=0x95170b0, 
    return_value=0x0, n_param_values=1, param_values=0x1467c280, 
    invocation_hint=0xbfbfc13c, marshal_data=0x5c) at gclosure.c:878
#24 0x00a171fb in IA__g_closure_invoke (closure=0x95170b0, return_value=0x0, 
    n_param_values=1, param_values=0x1467c280, invocation_hint=0xbfbfc13c)
    at gclosure.c:767
#25 0x00a2ceae in signal_emit_unlocked_R (node=0x95170f8, detail=0, 
    instance=0x1e7ce1d8, emission_return=0x0, instance_and_params=0x1467c280)
    at gsignal.c:3174
#26 0x00a2ed6c in IA__g_signal_emit_valist (instance=0x1e7ce1d8, signal_id=9, 
    detail=0, var_args=0xbfbfc2dc "\212�=") at gsignal.c:2977
#27 0x00a2f1e6 in IA__g_signal_emit (instance=0x1e7ce1d8, signal_id=9, 
    detail=0) at gsignal.c:3034
#28 0x003db31c in IA__gtk_widget_show (widget=0x1e7ce1d8) at gtkwidget.c:3003
#29 0x00239222 in IA__gtk_dialog_run (dialog=0x1e7ce1d8) at gtkdialog.c:1039
#30 0x02901273 in RunDialog (aDialog=0x1e7ce1d8)
    at nsAccessibilityHelper.cpp:52
#31 0x0290296e in nsPrintDialogWidgetGTK::Run (this=0xbfbfc3d0)
    at nsPrintDialogGTK.cpp:404
#32 0x029038a4 in nsPrintDialogServiceGTK::Show (this=0x17994ac0, 
    aParent=0x23248110, aSettings=0x1bdcd750) at nsPrintDialogGTK.cpp:577
#33 0x02793079 in nsPrintingPromptService::ShowPrintDialog (this=0x187a5ca0, 
    parent=0x23248110, webBrowserPrint=0xe89b454, printSettings=0x1bdcd750)
    at nsPrintingPromptService.cpp:117
#34 0x026129e6 in nsPrintEngine::DoCommonPrint (this=0x21bb0ff0, 
    aIsPrintPreview=0, aPrintSettings=0x1bdcd750, aWebProgressListener=0x0)
    at nsPrintEngine.cpp:589
#35 0x02612f9c in nsPrintEngine::CommonPrint (this=0x21bb0ff0, 
    aIsPrintPreview=0, aPrintSettings=0x1bdcd750, aWebProgressListener=0x0)
    at nsPrintEngine.cpp:418
#36 0x026130f6 in nsPrintEngine::Print (this=0x21bb0ff0, 
    aPrintSettings=0x1bdcd750, aWebProgressListener=0x0)
    at nsPrintEngine.cpp:724
#37 0x0230b517 in DocumentViewerImpl::Print (this=0xe89b440, 
    aPrintSettings=0x1bdcd750, aWebProgressListener=0x0)
    at nsDocumentViewer.cpp:3489
#38 0x0230e91f in DocumentViewerImpl::LoadComplete (this=0xe89b440, aStatus=0)
    at nsDocumentViewer.cpp:1027
#39 0x0274113d in nsDocShell::EndPageLoad (this=0x181223c0, 
    aProgress=0x181223d4, aChannel=0x20e5de54, aStatus=0)
    at nsDocShell.cpp:5096
#40 0x0274ee8d in nsWebShell::EndPageLoad (this=0x181223c0, 
    aProgress=0x181223d4, channel=0x20e5de54, aStatus=0) at nsWebShell.cpp:1013
#41 0x0274607d in nsDocShell::OnStateChange (this=0x181223c0, 
    aProgress=0x181223d4, aRequest=0x20e5de54, aStateFlags=131088, aStatus=0)
    at nsDocShell.cpp:5001
#42 0x0275a89f in nsDocLoader::FireOnStateChange (this=0x181223c0, 
    aProgress=0x181223d4, aRequest=0x20e5de54, aStateFlags=131088, aStatus=0)
    at nsDocLoader.cpp:1235
#43 0x0275a95a in nsDocLoader::doStopDocumentLoad (this=0x181223c0, 
    request=0x20e5de54, aStatus=0) at nsDocLoader.cpp:858
#44 0x0275b7b7 in nsDocLoader::DocLoaderIsEmpty (this=0x181223c0)
    at nsDocLoader.cpp:763
#45 0x0275b978 in nsDocLoader::OnStopRequest (this=0x181223c0, 
    aRequest=0x1993a808, aCtxt=0x0, aStatus=0) at nsDocLoader.cpp:679
#46 0x021dcd90 in nsLoadGroup::RemoveRequest (this=0x18aacde8, 
    request=0x1993a808, ctxt=0x0, aStatus=0) at nsLoadGroup.cpp:688
#47 0x0245874f in nsDocument::DoUnblockOnload (this=0x1c724bf0)
    at nsDocument.cpp:5748
#48 0x0245e6cd in nsDocument::DispatchContentLoadedEvents (this=0x1c724bf0)
    at nsDocument.cpp:2857
#49 0x0246581b in nsRunnableMethod<nsDocument>::Run (this=0x201741c8)
    at ../../../dist/include/xpcom/nsThreadUtils.h:261
#50 0x029db8a0 in nsThread::ProcessNextEvent (this=0x954f200, mayWait=1, 
    result=0xbfbfcbb4) at nsThread.cpp:510
#51 0x029a8668 in NS_ProcessNextEvent_P (thread=0x3bef, mayWait=1)
    at nsThreadUtils.cpp:227
#52 0x02908f30 in nsBaseAppShell::Run (this=0x954a720)
    at nsBaseAppShell.cpp:170
#53 0x027bc8e0 in nsAppStartup::Run (this=0x9c7c3e8) at nsAppStartup.cpp:181
#54 0x02187d10 in XRE_main (argc=3, argv=0xbfc002c4, aAppData=0x94dc258)
    at nsAppRunner.cpp:3193
#55 0x08049169 in main (argc=3, argv=0xbfc002c4) at nsXULStub.cpp:364


Expected Results:  
nice printout

Yesterday, when working on some other bugs, I was editing a Greasemonkey script for fixing some issues in our bugzilla attachments, I made a mistake in Javascript of the function which is run inside of
array.filter method.

function isOctetStream(element, index, array) {
 var inArray = ["application/octet-stream","text/x-log"];
 return(inArray.indexOf(element) != -1);
// the previous line should read -- see missing indexing of the array
// return(inArray.indexOf(element[2]) != -1);
}

...
var badAttachments = getAttachments(aTable).filter(isOctetStream);

When running this script on bugzilla, firefox constantly crashed with the
attached backtrace. When I fixed the script, the bug is gone.

So, it looks to me like firefox (yes, I have firefox-3.0.5-1.fc10.i386 as well)
doesn't recover well from Javascript bugs and crashes.

The problem is that now, when trying to reproduce it, I cannot either with the mozilla.com binary nor with the Fedora one.
More backtraces and other info is in the Red Hat bug.
Unable to reproduce with 3.1 beta 2...
Unable to reproduce (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b2) Gecko/20090327 Fedora/3.1-0.10.beta3.fc11 Firefox/3.1b3).
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Keywords: crash
Resolution: --- → WORKSFORME
Sorry, correct downstream bug is https://bugzilla.redhat.com/show_bug.cgi?id=477232
You need to log in before you can comment on or make changes to this bug.