Bug 73269

Summary: 4.10-STABLE - mail/thunderbird segfaults regularly on print preview (probably cups related)
Product: Ports & Packages Reporter: Adi Pircalabu <apircalabu>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Adi Pircalabu 2004-10-29 08:50:25 UTC
Thunderbird crashes every time I try to use print preview from the popup menu on every message. I don't think this is a format issue, because I checked several message types (plain, HTML, multipart).
Fortunately, every time it dumps core.
It also crashes after selecting File -> Page Setup, apparently at the same point, this time giving "Bus error"
cupsd is not running.

Cups packages installed are:
cups-1.1.20.0:
cups-base-1.1.20.0:
cups-lpr-1.1.20.0:
cups-pstoraster-7.07_1:

Here is the backtrace:
(gdb) bt
#0  0x289d7d4c in kill () from /usr/lib/libc_r.so.4
#1  0x289cf4f8 in raise () from /usr/lib/libc_r.so.4
#2  0x806b0be in nsProfileLock::FatalSignalHandler (signo=11) at nsProfileLock.cpp:205
#3  0x289e9eeb in _thread_sig_handler () from /usr/lib/libc_r.so.4
#4  0x289e9d56 in _thread_sig_handler () from /usr/lib/libc_r.so.4
#5  0xbfbfffac in ?? ()
#6  0x2aff88c0 in X509_check_private_key () from /usr/lib/libcrypto.so.3
#7  0x2aff8c38 in EVP_DigestFinal_ex () from /usr/lib/libcrypto.so.3
#8  0x2afe948d in RAND_SSLeay () from /usr/lib/libcrypto.so.3
#9  0x2afe95bc in RAND_SSLeay () from /usr/lib/libcrypto.so.3
#10 0x2afe9092 in RAND_seed () from /usr/lib/libcrypto.so.3
#11 0x2af10ee9 in httpInitialize () from /usr/local/lib/libcups.so.2
#12 0x2af1103c in httpConnectEncrypt () from /usr/local/lib/libcups.so.2
#13 0x2af11012 in httpConnect () from /usr/local/lib/libcups.so.2
#14 0x2af0f1a0 in cups_get_sdests () from /usr/local/lib/libcups.so.2
#15 0x2af0e875 in cupsGetDests () from /usr/local/lib/libcups.so.2
#16 0x28fe455e in GlobalPrinters::InitializeGlobalPrinters (this=0x29030ee0) at nsDeviceContextSpecG.cpp:1151
#17 0x28fe4d64 in GlobalPrinters::GetDefaultPrinterName (this=0x29030ee0, aDefaultPrinterName=0xbfbfcec0) at nsDeviceContextSpecG.cpp:1231
#18 0x28fe1ea7 in nsPrinterEnumeratorGTK::GetDefaultPrinterName (this=0x88819e0, aDefaultPrinterName=0xbfbfcec0)
    at nsDeviceContextSpecG.cpp:697
#19 0x28c4552d in nsPrintOptions::GetDefaultPrinterName (this=0x8c76980, aDefaultPrinterName=0xbfbfcec0) at nsPrintOptionsImpl.cpp:943
#20 0x288a7179 in XPTC_InvokeByIndex (that=0x8c76984, methodIndex=5, paramCount=1, params=0xbfbfcec0) at xptcinvoke_unixish_x86.cpp:130
#21 0x28b8fa89 in XPCWrappedNative::CallMethod (ccx=@0xbfbfcf78, mode=CALL_GETTER) at xpcwrappednative.cpp:2028
#22 0x28b99768 in XPC_WN_GetterSetter (cx=0x81f3600, obj=0x827d288, argc=0, argv=0x84c72c8, vp=0xbfbfd0a8) at xpcprivate.h:1884
#23 0x280d3370 in js_Invoke (cx=0x81f3600, argc=0, flags=2) at jsinterp.c:941
#24 0x280d3640 in js_InternalInvoke (cx=0x81f3600, obj=0x827d288, fval=136946944, flags=0, argc=0, argv=0x0, rval=0xbfbfd380)
    at jsinterp.c:1035
#25 0x280d3807 in js_InternalGetOrSet (cx=0x81f3600, obj=0x827d288, id=140605888, fval=136946944, mode=JSACC_READ, argc=0, argv=0x0, 
    rval=0xbfbfd380) at jsinterp.c:1078
#26 0x280eb216 in js_GetProperty (cx=0x81f3600, obj=0x827d288, id=140605888, vp=0xbfbfd380) at jsobj.c:2765
#27 0x280dc02b in js_Interpret (cx=0x81f3600, result=0xbfbfd444) at jsinterp.c:2802
#28 0x280d33dc in js_Invoke (cx=0x81f3600, argc=1, flags=2) at jsinterp.c:958
#29 0x280d3640 in js_InternalInvoke (cx=0x81f3600, obj=0x89b51f8, fval=136825784, flags=0, argc=1, argv=0xbfbfd6a4, rval=0xbfbfd68c)
    at jsinterp.c:1035
#30 0x280aea91 in JS_CallFunctionValue (cx=0x81f3600, obj=0x89b51f8, fval=136825784, argc=1, argv=0xbfbfd6a4, rval=0xbfbfd68c)
    at jsapi.c:3698
#31 0x29824cfc in nsJSContext::CallEventHandler (this=0x822dfc0, aTarget=0x89b51f8, aHandler=0x827cbb8, argc=1, argv=0xbfbfd6a4, 
    rval=0xbfbfd68c) at nsJSEnvironment.cpp:1296
#32 0x2989280f in nsJSEventListener::HandleEvent (this=0x86635a0, aEvent=0x8c59808) at nsJSEventListener.cpp:175
#33 0x296043e6 in nsEventListenerManager::HandleEventSubType (this=0x8665640, aListenerStruct=0x8609bb0, aDOMEvent=0x8c59808, 
    aCurrentTarget=0x8c79d40, aSubType=8, aPhaseFlags=7) at nsEventListenerManager.cpp:1436
#34 0x296048a6 in nsEventListenerManager::HandleEvent (this=0x8665640, aPresContext=0x834d800, aEvent=0xbfbfe16c, aDOMEvent=0xbfbfdb54, 
    aCurrentTarget=0x8c79d40, aFlags=7, aEventStatus=0xbfbfe164) at nsEventListenerManager.cpp:1531
#35 0x298ded36 in nsXULElement::HandleDOMEvent (this=0x8665600, aPresContext=0x834d800, aEvent=0xbfbfe16c, aDOMEvent=0xbfbfdb54, aFlags=7, 
    aEventStatus=0xbfbfe164) at nsXULElement.cpp:2840
#36 0x29398660 in PresShell::HandleDOMEventWithTarget (this=0x8331000, aTargetContent=0x8665600, aEvent=0xbfbfe16c, aStatus=0xbfbfe164)
    at nsPresShell.cpp:6134
#37 0x294acb5d in nsMenuFrame::Execute (this=0x8866a08, aEvent=0xbfbfe6f8) at nsMenuFrame.cpp:1671
#38 0x294a5871 in nsMenuFrame::HandleEvent (this=0x8866a08, aPresContext=0x834d800, aEvent=0xbfbfe6f8, aEventStatus=0xbfbfe530)
    at nsMenuFrame.cpp:456
#39 0x293984ac in PresShell::HandleEventInternal (this=0x8331000, aEvent=0xbfbfe6f8, aView=0x8c2bc00, aFlags=513, aStatus=0xbfbfe530)
    at nsPresShell.cpp:6101
#40 0x2939792f in PresShell::HandleEvent (this=0x8331000, aView=0x8c2bc00, aEvent=0xbfbfe6f8, aEventStatus=0xbfbfe530, aForceHandle=0, 
    aHandled=@0xbfbfe534) at nsPresShell.cpp:5919
#41 0x29818e39 in nsViewManager::HandleEvent (this=0x8520e00, aView=0x8c2b400, aEvent=0xbfbfe6f8, aCaptured=0) at nsViewManager.cpp:2288
#42 0x298180d5 in nsViewManager::DispatchEvent (this=0x8520e00, aEvent=0xbfbfe6f8, aStatus=0xbfbfe67c) at nsViewManager.cpp:2030
#43 0x2980ca55 in HandleEvent (aEvent=0xbfbfe6f8) at nsView.cpp:76
#44 0x28ce7f48 in nsCommonWidget::DispatchEvent (this=0x8c89900, aEvent=0xbfbfe6f8, aStatus=@0xbfbfe6f4) at nsCommonWidget.cpp:215
#45 0x28cdd0ac in nsWindow::OnButtonReleaseEvent (this=0x8c89900, aWidget=0x8c24a80, aEvent=0x832b018) at nsWindow.cpp:1449
#46 0x28ce1e7a in button_release_event_cb (widget=0x8c24a80, event=0x832b018) at nsWindow.cpp:3274
#47 0x2821d722 in gtk_marshal_VOID__UINT_STRING () from /usr/X11R6/lib/libgtk-x11-2.0.so.400
#48 0x286250f5 in g_closure_invoke () from /usr/local/lib/libgobject-2.0.so.400
#49 0x2863abee in signal_emit_unlocked_R () from /usr/local/lib/libgobject-2.0.so.400
#50 0x286393a0 in g_signal_emit_valist () from /usr/local/lib/libgobject-2.0.so.400
#51 0x286395c5 in g_signal_emit () from /usr/local/lib/libgobject-2.0.so.400
---Type <return> to continue, or q <return> to quit---
#52 0x282f468b in gtk_widget_send_expose () from /usr/X11R6/lib/libgtk-x11-2.0.so.400
#53 0x282f41e2 in gtk_widget_event () from /usr/X11R6/lib/libgtk-x11-2.0.so.400
#54 0x2821c305 in gtk_propagate_event () from /usr/X11R6/lib/libgtk-x11-2.0.so.400
#55 0x2821b2a2 in gtk_main_do_event () from /usr/X11R6/lib/libgtk-x11-2.0.so.400
#56 0x283ec83b in gdk_x11_register_standard_event_type () from /usr/X11R6/lib/libgdk-x11-2.0.so.400
#57 0x2867ba57 in g_main_dispatch () from /usr/local/lib/libglib-2.0.so.400
#58 0x2867c84d in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.400
#59 0x2867cc3e in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.400
#60 0x2867d24b in g_main_loop_run () from /usr/local/lib/libglib-2.0.so.400
#61 0x2821aa2d in gtk_main () from /usr/X11R6/lib/libgtk-x11-2.0.so.400
#62 0x28ce5c28 in nsAppShell::Run (this=0x80e34a0) at nsAppShell.cpp:142
#63 0x28bfed0d in nsAppShellService::Run (this=0x80e4f00) at nsAppShellService.cpp:494
#64 0x805b589 in xre_main (argc=1, argv=0xbfbff4a0, aAppData=0x8071c0c) at nsAppRunner.cpp:1907
#65 0x805026c in main (argc=1, argv=0xbfbff4a0) at nsMailApp.cpp:58

Fix: 

None yet, maybe I'll dig into it later
How-To-Repeat: Start Thunderbird, select a message from the message window, right click on it and select 'Print Preview' (also, File -> Print Preview brings to the same result)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-10-30 06:30:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer(s).
Comment 2 Adi Pircalabu 2004-11-09 15:42:57 UTC
Hi,

After upgrading to 0.9 it also crashed on print preview. Deleting
compreg.dat file from the current profile did the magic for me. Right
now, it works as expected.
Regards,

-- 
Adrian Pircalabu

Public KeyID = 0xF902393A


-- 
This message was scanned for spam and viruses by BitDefender
For more information please visit http://www.bitdefender.com/
Comment 3 Adi Pircalabu 2004-11-15 10:04:31 UTC
It still crashes:

(gdb) bt
#0  0x2b0ed84b in SHA1_Final () from /usr/lib/libcrypto.so.3
#1  0x2b0e98c0 in X509_check_private_key () from /usr/lib/libcrypto.so.3
#2  0x2b0e9c38 in EVP_DigestFinal_ex () from /usr/lib/libcrypto.so.3
#3  0x2b0da48d in RAND_SSLeay () from /usr/lib/libcrypto.so.3
#4  0x2b0da5bc in RAND_SSLeay () from /usr/lib/libcrypto.so.3
#5  0x2b0da092 in RAND_seed () from /usr/lib/libcrypto.so.3
#6  0x2b001ee9 in httpInitialize () from /usr/local/lib/libcups.so.2
#7  0x2b00203c in httpConnectEncrypt () from /usr/local/lib/libcups.so.2
#8  0x2b002012 in httpConnect () from /usr/local/lib/libcups.so.2
#9  0x2b0001a0 in cups_get_sdests () from /usr/local/lib/libcups.so.2
#10 0x2afff875 in cupsGetDests () from /usr/local/lib/libcups.so.2
#11 0x290706c6 in GlobalPrinters::InitializeGlobalPrinters
(this=0x290bd160) at nsDeviceContextSpecG.cpp:1151
#12 0x29070ecc in GlobalPrinters::GetDefaultPrinterName
(this=0x290bd160, aDefaultPrinterName=0xbfbfc49c) at
nsDeviceContextSpecG.cpp:1231
#13 0x2906e00f in
nsPrinterEnumeratorGTK::GetDefaultPrinterName(this=0x8d74420,
aDefaultPrinterName=0xbfbfc49c)    at nsDeviceContextSpecG.cpp:697
#14 0x28cc852d in nsPrintOptions::GetDefaultPrinterName (this=0x8b7a780,
aDefaultPrinterName=0xbfbfc49c) at nsPrintOptionsImpl.cpp:943
#15 0x288aaf65 in XPTC_InvokeByIndex (that=0x8b7a784, methodIndex=5,
paramCount=1, params=0xbfbfc49c) at xptcinvoke_unixish_x86.cpp:130
#16 0x28c1334d in XPCWrappedNative::CallMethod (ccx=@0xbfbfc554,
mode=CALL_GETTER) at xpcwrappednative.cpp:2034
#17 0x28c1d02c in XPC_WN_GetterSetter (cx=0x8224200, obj=0x869e990,
argc=0, argv=0x8cbe504, vp=0xbfbfc684) at xpcprivate.h:1884
#18 0x280d3434 in js_Invoke (cx=0x8224200, argc=0, flags=2) at
jsinterp.c:941
#19 0x280d3704 in js_InternalInvoke (cx=0x8224200, obj=0x869e990,
fval=141161136, flags=0, argc=0, argv=0x0, rval=0xbfbfc95c)    at
jsinterp.c:1035
#20 0x280d38cb in js_InternalGetOrSet (cx=0x8224200, obj=0x869e990,
id=140894240, fval=141161136, mode=JSACC_READ, argc=0, argv=0x0,    
rval=0xbfbfc95c) at jsinterp.c:1078
#21 0x280eb2d6 in js_GetProperty (cx=0x8224200, obj=0x869e990,
id=140894240, vp=0xbfbfc95c) at jsobj.c:2765
#22 0x280dc0cb in js_Interpret(cx=0x8224200, result=0xbfbfca20) at
jsinterp.c:2801
#23 0x280d34a0 in js_Invoke(cx=0x8224200, argc=1, flags=2) at
jsinterp.c:958
#24 0x28c0cab9 in nsXPCWrappedJSClass::CallMethod(this=0x858de40,
wrapper=0x8ae9300, methodIndex=5, info=0x81dd110,  
nativeParams=0xbfbfcd5c) at xpcwrappedjsclass.cpp:1339
#25 0x28c05d61 in nsXPCWrappedJS::CallMethod(this=0x8ae9300,
methodIndex=5, info=0x81dd110, params=0xbfbfcd5c) at
xpcwrappedjs.cpp:449
#26 0x288ab1ce in PrepareAndDispatch(self=0x8ae9300, methodIndex=5,
args=0xbfbfce00) at xptcstubs_unixish_x86.cpp:95
#27 0x288ab2a2 in nsXPTCStubBase::Stub5(this=0x8ae9300)
at../../../../../../dist/include/xpcom/xptcstubsdef.inc:7
#28 0x288aaf65 in XPTC_InvokeByIndex (that=0x8ae9300, methodIndex=5,
paramCount=1, params=0xbfbfcfc0) at xptcinvoke_unixish_x86.cpp:130
#29 0x28c1334d in XPCWrappedNative::CallMethod (ccx=@0xbfbfd088,
mode=CALL_METHOD) at xpcwrappednative.cpp:2034
#30 0x28c1ce61 in XPC_WN_CallMethod(cx=0x8224200, obj=0x82d52a0, argc=1,
argv=0x8cbe230, vp=0xbfbfd1b8) at xpcwrappednativejsops.cpp:1287
#31 0x280d3434 in js_Invoke (cx=0x8224200, argc=1, flags=0) at
jsinterp.c:941
#32 0x280dd579 in js_Interpret(cx=0x8224200, result=0xbfbfd414) at
jsinterp.c:2971
#33 0x280d34a0 in js_Invoke(cx=0x8224200, argc=1, flags=2) at
jsinterp.c:958
#34 0x280d3704 in js_InternalInvoke(cx=0x8224200, obj=0x874b5b8,
fval=140247776, flags=0, argc=1, argv=0xbfbfd674, rval=0xbfbfd65c)    at
jsinterp.c:1035
#35 0x280aea91 in JS_CallFunctionValue (cx=0x8224200, obj=0x874b5b8,
fval=140247776, argc=1, argv=0xbfbfd674, rval=0xbfbfd65c)  at
jsapi.c:3698
#36 0x298b70f0 in nsJSContext::CallEventHandler(this=0x8260fc0,
aTarget=0x874b5b8, aHandler=0x85c02e0, argc=1, argv=0xbfbfd674,  
rval=0xbfbfd65c) at nsJSEnvironment.cpp:1296
#37 0x2992792b in nsJSEventListener::HandleEvent(this=0x86a3f20,
aEvent=0x8a17388) at nsJSEventListener.cpp:175
#38 0x296952fe in
nsEventListenerManager::HandleEventSubType(this=0x86a8880,
aListenerStruct=0x85c7aa0, aDOMEvent=0x8a17388,
aCurrentTarget=0x8b03120, aSubType=8, aPhaseFlags=7) at
nsEventListenerManager.cpp:1436
#39 0x296957c2 in nsEventListenerManager::HandleEvent (this=0x86a8880,
aPresContext=0x83c8c00, aEvent=0xbfbfe13c, aDOMEvent=0xbfbfdb24,
aCurrentTarget=0x8b03120, aFlags=7, aEventStatus=0xbfbfe134) at
nsEventListenerManager.cpp:1531
#40 0x29973f76 in nsXULElement::HandleDOMEvent (this=0x86a8840,
aPresContext=0x83c8c00, aEvent=0xbfbfe13c, aDOMEvent=0xbfbfdb24,
aFlags=7, aEventStatus=0xbfbfe134) at nsXULElement.cpp:2840
#41 0x294276e8 in PresShell::HandleDOMEventWithTarget (this=0x8562400,
aTargetContent=0x86a8840, aEvent=0xbfbfe13c, aStatus=0xbfbfe134)    at
nsPresShell.cpp:6136
#42 0x2953d189 in nsMenuFrame::Execute(this=0x8cd6568,
aEvent=0xbfbfe6e8) at nsMenuFrame.cpp:1671
#43 0x29535e9d in nsMenuFrame::HandleEvent(this=0x8cd6568,
aPresContext=0x83c8c00, aEvent=0xbfbfe6e8, aEventStatus=0xbfbfe510)   at
nsMenuFrame.cpp:456
#44 0x29427534 in PresShell::HandleEventInternal(this=0x8562400,
aEvent=0xbfbfe6e8, aView=0x8af6300, aFlags=513, aStatus=0xbfbfe510)   at
nsPresShell.cpp:6103
#45 0x294269b4 in PresShell::HandleEvent(this=0x8562400,
aView=0x8af6300, aEvent=0xbfbfe6e8, aEventStatus=0xbfbfe510,
aForceHandle=0, aHandled=@0xbfbfe514) at nsPresShell.cpp:5921
#46 0x298aa839 in nsViewManager::HandleEvent(this=0x81a1200,
aView=0x8967100, aEvent=0xbfbfe6e8, aCaptured=0) at
nsViewManager.cpp:2324
#47 0x298a9ad1 in nsViewManager::DispatchEvent(this=0x81a1200,
aEvent=0xbfbfe6e8, aStatus=0xbfbfe66c) at nsViewManager.cpp:2066
#48 0x2989dfa9 in HandleEvent (aEvent=0xbfbfe6e8) at nsView.cpp:74
#49 0x28d6ca88 in nsCommonWidget::DispatchEvent(this=0x8d6c300,
aEvent=0xbfbfe6e8, aStatus=@0xbfbfe6e4) at nsCommonWidget.cpp:215
#50 0x28d618e8 in nsWindow::OnButtonReleaseEvent(this=0x8d6c300,
aWidget=0x8855380, aEvent=0x83bb018) at nsWindow.cpp:1449
#51 0x28d666b6 in button_release_event_cb (widget=0x8855380,
event=0x83bb018) at nsWindow.cpp:3274
#52 0x2821d722 in gtk_marshal_VOID__UINT_STRING ()
from/usr/X11R6/lib/libgtk-x11-2.0.so.400
#53 0x286280f5 in g_closure_invoke() from
/usr/local/lib/libgobject-2.0.so.400
#54 0x2863dbee in signal_emit_unlocked_R ()
from/usr/local/lib/libgobject-2.0.so.400
#55 0x2863c3a0 in g_signal_emit_valist ()
from/usr/local/lib/libgobject-2.0.so.400
#56 0x2863c5c5 in g_signal_emit()
from/usr/local/lib/libgobject-2.0.so.400
#57 0x282f468b in gtk_widget_send_expose ()
from/usr/X11R6/lib/libgtk-x11-2.0.so.400
#58 0x282f41e2 in gtk_widget_event()
from/usr/X11R6/lib/libgtk-x11-2.0.so.400
#59 0x2821c305 in gtk_propagate_event ()
from/usr/X11R6/lib/libgtk-x11-2.0.so.400
#60 0x2821b2a2 in gtk_main_do_event()
from/usr/X11R6/lib/libgtk-x11-2.0.so.400
#61 0x283ec83b in gdk_x11_register_standard_event_type ()
from/usr/X11R6/lib/libgdk-x11-2.0.so.400
#62 0x2867ea57 in g_main_dispatch () from
/usr/local/lib/libglib-2.0.so.400
#63 0x2867f84d in g_main_context_dispatch () from
/usr/local/lib/libglib-2.0.so.400
#64 0x2867fc3e in g_main_context_iterate ()
from/usr/local/lib/libglib-2.0.so.400
#65 0x2868024b in g_main_loop_run()
from/usr/local/lib/libglib-2.0.so.400
#66 0x2821aa2d in gtk_main ()
from/usr/X11R6/lib/libgtk-x11-2.0.so.400
#67 0x28d6a464 in nsAppShell::Run(this=0x80e44c0) at
nsAppShell.cpp:142
#68 0x28c81fa1 in nsAppShellService::Run (this=0x80e5e80) at
nsAppShellService.cpp:494
#69 0x805b355 in xre_main(argc=1, argv=0xbfbff4a4, aAppData=0x80719cc)
at nsAppRunner.cpp:1907
#70 0x805026c in main (argc=1, argv=0xbfbff4a4) at nsMailApp.cpp:58


-- 
Adrian Pircalabu

Public KeyID = 0xF902393A


-- 
This message was scanned for spam and viruses by BitDefender
For more information please visit http://www.bitdefender.com/
Comment 4 Joe Marcus Clarke freebsd_committer freebsd_triage 2004-11-22 04:24:24 UTC
State Changed
From-To: open->closed

I've done what I can to fix this from the Thunderbird side.  If you still have 
problems, rebuilt CUPS and OpenSSL with debugging symbols, and report 
the problem to the CUPS maintainer.