Bug 155404 - [Browser] embedded Mozilla crashes with SIGSEGV when opening binary files
Summary: [Browser] embedded Mozilla crashes with SIGSEGV when opening binary files
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse
Component: SWT (show other bugs)
Version: 3.2
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: 3.3 M3
Assignee: Grant Gayed CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
: 162700 191958 195513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-28 11:18 EDT by chris vigelius CLA Friend
Modified: 2008-03-13 10:15 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chris vigelius CLA Friend 2006-08-28 11:18:49 EDT
on linux platform, the embedded mozilla (1.8.0.6) crashes when pointed to a file served with any mimetype Mozilla cannot handle natively, e.g. an MP3 file.

Steps to reproduce: 
point the internal SWT browser in eclipse to any binary file on any server. normally, a popup should appear asking what to do with the file (save or open with application). Instead, the JRE crashes with SIGSEGV.

JRE's crash log is as follows (shortened by me, pls. reply to the bug if you need more information):

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x9aa885cb, pid=7643, tid=3084872544
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C  [libxpcom_core.so+0xab5cb]  _ZN18nsAString_internal6AssignERKS_+0x1b
#

---------------  T H R E A D  ---------------

Current thread (0x0805ce10):  JavaThread "main" [_thread_in_native, id=7643]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000

Registers:
EAX=0x00000000, EBX=0x9aa9a6a0, ECX=0x00000000, EDX=0x08cd4400
ESP=0xbf9da67c, EBP=0xbf9da694, ESI=0x08cd4400, EDI=0x0805ce10
EIP=0x9aa885cb, CR2=0x00000000, EFLAGS=0x00010286

Top of Stack: (sp=0xbf9da67c)
0xbf9da67c:   0805e66c 00000000 0805e660 0805ce10
0xbf9da68c:   998789bc afe135a8 bf9da6a4 99858320
0xbf9da69c:   99858309 afe135a8 bf9da6c4 9abaff00
0xbf9da6ac:   08cd43d0 00000000 00000000 afe135a8
0xbf9da6bc:   0805ce10 bf9da700 bf9da700 b2ad042b
0xbf9da6cc:   0805ced0 bf9da708 00000006 08cd43d4
0xbf9da6dc:   00000000 00000000 bf9da6e4 afe135a8
0xbf9da6ec:   bf9da71c afe159b0 00000000 afe135a8

Instructions: (pc=0x9aa885cb)
0x9aa885bb:   e8 a7 13 f9 ff 81 c3 e0 20 01 00 89 75 fc 89 d6
0x9aa885cb:   8b 10 8b 83 44 ff ff ff 3b 10 74 19 89 74 24 04

Stack: [0xbf7e2000,0xbf9e2000),  sp=0xbf9da67c,  free space=2017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libxpcom_core.so+0xab5cb]  _ZN18nsAString_internal6AssignERKS_+0x1b
C  [libdocshell.so+0x2f320]
C  [libswt-mozilla-gtk-3139.so+0x4f00]  Java_org_eclipse_swt_internal_mozilla_XPCOM_VtblCall__IIIZ+0x1a
j  org.eclipse.swt.internal.mozilla.XPCOM.VtblCall(IIIZ)I+0
j  org.eclipse.swt.internal.mozilla.nsIHelperAppLauncher.SaveToDisk(IZ)I+8
j  org.eclipse.swt.browser.HelperAppLauncherDialog.Show(III)I+14
j  org.eclipse.swt.browser.HelperAppLauncherDialog$2.method3([I)I+13
j  org.eclipse.swt.internal.mozilla.XPCOMObject.callback3([I)I+47
v  ~StubRoutines::call_stub
V  [libjvm.so+0x174fec]
V  [libjvm.so+0x2821f8]
V  [libjvm.so+0x174e1f]
V  [libjvm.so+0x19f5c2]
V  [libjvm.so+0x18e482]
C  [libswt-gtk-3139.so+0x24f4d]  callback+0x185
C  [libswt-gtk-3139.so+0x15ded]  fn65_4+0x26
C  [libdocshell.so+0x38632]
C  [libdocshell.so+0x2bb10]
C  [libnecko.so+0x9e33a]
C  [libnecko.so+0x9f17d]
C  [libnecko.so+0xa61d8]
C  [libnecko.so+0xa6390]
C  [libnecko.so+0x1f61d]
C  [libnecko.so+0x1fc78]
C  [libxpcom_core.so+0x70762]  _ZN23nsInputStreamReadyEvent12EventHandlerEP7PLEvent+0x42
C  [libxpcom_core.so+0x86627]  PL_HandleEvent+0x27
C  [libxpcom_core.so+0x8693a]  PL_ProcessPendingEvents+0x5a
C  [libxpcom_core.so+0x8896e]
C  [libwidget_gtk2.so+0x14365]
C  [libglib-2.0.so.0+0x5092d]
C  [libglib-2.0.so.0+0x27abd]  g_main_context_dispatch+0x16d
C  [libglib-2.0.so.0+0x2acbf]
C  [libglib-2.0.so.0+0x2b225]  g_main_context_iteration+0x65
C  [libswt-pi-gtk-3139.so+0x28746]  Java_org_eclipse_swt_internal_gtk_OS__1g_1main_1context_1iteration+0x20
J  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z
J  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z
J  org.eclipse.swt.widgets.Display.readAndDispatch()Z
j  org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Di
splay;)V+9
j  org.eclipse.ui.internal.Workbench.runUI()I+108
j  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/Workbenc
hAdvisor;)I+11
j  org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor
;)I+2
j  org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+98
j  org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+257
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+170
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+57
v  ~StubRoutines::call_stub
V  [libjvm.so+0x174fec]
V  [libjvm.so+0x2821f8]
V  [libjvm.so+0x174e1f]
V  [libjvm.so+0x2abe2c]
V  [libjvm.so+0x2aeb2a]
V  [libjvm.so+0x1e8d22]
C  [libjava.so+0x13764]  Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x34
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Objec
t;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
j  org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
j  org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
j  org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
j  org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub
V  [libjvm.so+0x174fec]
V  [libjvm.so+0x2821f8]
V  [libjvm.so+0x174e1f]
V  [libjvm.so+0x19f5c2]
V  [libjvm.so+0x1907d2]
C  [java+0x1803]
C  [libc.so.6+0x1587c]  __libc_start_main+0xdc
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.mozilla.XPCOM.VtblCall(IIIZ)I+0
j  org.eclipse.swt.internal.mozilla.nsIHelperAppLauncher.SaveToDisk(IZ)I+8
j  org.eclipse.swt.browser.HelperAppLauncherDialog.Show(III)I+14
j  org.eclipse.swt.browser.HelperAppLauncherDialog$2.method3([I)I+13
j  org.eclipse.swt.internal.mozilla.XPCOMObject.callback3([I)I+47
v  ~StubRoutines::call_stub
J  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z
J  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z
J  org.eclipse.swt.widgets.Display.readAndDispatch()Z
j  org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Di
splay;)V+9
j  org.eclipse.ui.internal.Workbench.runUI()I+108
j  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/Workbenc
hAdvisor;)I+11
j  org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor
;)I+2
j  org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+98
j  org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+257
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+170
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+57
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Objec
t;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
j  org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
j  org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
j  org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
j  org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub
Comment 1 chris vigelius CLA Friend 2006-09-07 04:12:03 EDT
This bug also applies to Eclipse 3.2 (as used in radrails 0.7): 

"About"->"Configuration Details":
org.eclipse.swt (3.2.0.v3232o) "Standard Widget Toolkit" [Resolved]
Comment 2 Steve Northover CLA Friend 2006-09-07 17:06:05 EDT
Grant, can you confirm this crash?
Comment 3 Leos Literak CLA Friend 2006-10-11 08:51:27 EDT
I can confirm it too, it happened to me in BIRT. When I clicked on Preview as PDF menu item, the JVM crashed with same symptoms.
Comment 4 Grant Gayed CLA Friend 2006-10-11 09:37:16 EDT
This seems to happen iff using XULRunner as the GRE.
Comment 5 Grant Gayed CLA Friend 2006-10-26 16:51:45 EDT
fixed > 1026 on gtk and motif

As a side effect various other fixes were also released to handle changes in mozilla 1.8 api.
Comment 6 Grant Gayed CLA Friend 2006-10-30 12:43:25 EST
*** Bug 162700 has been marked as a duplicate of this bug. ***
Comment 7 Grant Gayed CLA Friend 2007-06-11 13:48:11 EDT
*** Bug 191958 has been marked as a duplicate of this bug. ***
Comment 8 Igor Rulyov CLA Friend 2007-06-11 15:02:58 EDT
(In reply to comment #7)
> *** Bug 191958 has been marked as a duplicate of this bug. ***

Have You any tipp how to fix this problem?
Thank You!



Comment 9 Igor Rulyov CLA Friend 2007-06-12 02:17:43 EDT
I want to add following:
at me crash arose in 90% of cases in moment of scrolling or copy-paste actions.
Yesterday was first time, when i couldn't open php file: immediate crash!
Now I have switched off builded in Browser... Let's see what brings this.
Comment 10 Aakash Agrawal CLA Friend 2007-07-12 04:03:09 EDT
*** Bug 195513 has been marked as a duplicate of this bug. ***
Comment 11 Mik CLA Friend 2008-03-13 04:09:00 EDT
Ubuntu 7.10 - crasched, doesn't matter if that was installed from ubuntu package org uncompressed from archlinux package. Always on saving php file it crashes.
Archlinux works fine (Version: 3.3.1, Build id: 20071023-1652).

Comment 12 Grant Gayed CLA Friend 2008-03-13 10:15:27 EDT
re: comment 11
A crash on Ubuntu 7.10 was recently fixed.  Please try a very recent build such as http://download.eclipse.org/eclipse/downloads/drops/I20080312-1200/index.php (don't worry about the red 'X' beside the download link), and if it still happens for you then log a new report with SWT.