← Back to team overview

openjdk team mailing list archive

[Bug 323110] Re: firefox segfault while using java

 

$ ICEDTEAPLUGIN_DEBUG=1 firefox
ICEDTEA PLUGIN: Factory::IcedTeaPluginFactory
CONSTRUCTING FACTORY
ICEDTEAPLUGIN_DEBUG = 1
ICEDTEA PLUGIN: Factory::IcedTeaPluginFactory return
ICEDTEA PLUGIN: Factory::GetMIMEDescription
ICEDTEA PLUGIN: Factory::GetMIMEDescription return
ICEDTEA PLUGIN: Factory::GetValue
ICEDTEA PLUGIN: Factory::GetValue return
ICEDTEA PLUGIN: Factory::GetValue
ICEDTEA PLUGIN: Factory::GetValue return
ICEDTEA PLUGIN: Factory::~IcedTeaPluginFactory
DECONSTRUCTING FACTORY
ICEDTEA PLUGIN: Factory::~IcedTeaPluginFactory return
sh: acroread: not found
NSGetFactory called
ICEDTEA PLUGIN: NSGetFactory: Creating factory
ICEDTEA PLUGIN: Factory::IcedTeaPluginFactory
CONSTRUCTING FACTORY
ICEDTEAPLUGIN_DEBUG = 1
ICEDTEA PLUGIN: Factory::IcedTeaPluginFactory return
ICEDTEA PLUGIN: Factory::Initialize
ICEDTEA PLUGIN: Factory::Initialize: using /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/../../bin/java
ICEDTEA PLUGIN: thread manager
ICEDTEA PLUGIN: current thread
Initializing JVM...
ICEDTEA PLUGIN: get component manager
ICEDTEA PLUGIN: liveconnect
ICEDTEA PLUGIN: thread manager
ICEDTEA PLUGIN: Instance::StartAppletviewer
ICEDTEA PLUGIN: get component manager
ICEDTEA PLUGIN: create local file
ICEDTEA PLUGIN: init with path
ICEDTEA PLUGIN: create process
ICEDTEA PLUGIN: init process
ICEDTEA PLUGIN: clearing old input fifo (if any): /home/bugabundo/.icedteaplugin/icedtea-appletviewer-to-plugin
ICEDTEA PLUGIN: creating input fifo: /home/bugabundo/.icedteaplugin/icedtea-appletviewer-to-plugin
ICEDTEA PLUGIN: created input fifo: /home/bugabundo/.icedteaplugin/icedtea-appletviewer-to-plugin
ICEDTEA PLUGIN: got confirmation that appletviewer is running
ICEDTEA PLUGIN: clearing old output fifo (if any): /home/bugabundo/.icedteaplugin/icedtea-plugin-to-appletviewer
ICEDTEA PLUGIN: creating output fifo: /home/bugabundo/.icedteaplugin/icedtea-plugin-to-appletviewer
ICEDTEA PLUGIN: created output fifo: /home/bugabundo/.icedteaplugin/icedtea-plugin-to-appletviewer
ICEDTEA PLUGIN: run process
Listening for transport dt_socket at address: 8787
ICEDTEA PLUGIN: Instance::StartAppletviewer return
ICEDTEA PLUGIN: started appletviewer
ICEDTEA PLUGIN: Factory::Initialize return
ICEDTEA PLUGIN: Factory::CreateSecureEnv
ICEDTEA PLUGIN: JNIEnv::IcedTeaJNIEnv
ICEDTEA PLUGIN: JNIEnv::IcedTeaJNIEnv return
CREATESECUREENV
ICEDTEA PLUGIN: Factory::CreateSecureEnv return
ICEDTEA PLUGIN: Factory::CreateInstance
ICEDTEA PLUGIN: Instance::IcedTeaPluginInstance
ICEDTEA PLUGIN: Instance::IcedTeaPluginInstance return
ICEDTEA PLUGIN: Factory::CreateInstance return
ICEDTEA PLUGIN: Instance::Initialize
TAG FROM BROWSER = instance 1 tag http://loki10.mpi-sws.mpg.de/bb/bittorrent-blocking.php?measure=yes&down=yes&up=yes&port=-1&port2=-2&tcp=yes&duration=10 <applet archive="http://64.9.225.168:19981/BlockingDetector.jar"; code="BlockingDetector" alt="Your Java plugin is not working!" height="40" width="200">
       <param name="ID" value="1233319608">
       <param name="server" value="64.9.225.168">
       <param name="port" value="-1">
       <param name="up" value="true">
       <param name="down" value="true">
       <param name="tcp" value="true">
       <param name="port2" value="-2">
       <param name="duration" value="10">
       <param name="repeat" value="2">
       <param name="cache_option" value="no">
       <param name="cache_version" value="1.0">
       <param name="nextPage" value="loki10.mpi-sws.mpg.de//bb/bittorrent-blocking.php">
       <b style="color: red;">Your Java plugin is not working!</b>
       </applet></embed>
ICEDTEA PLUGIN: Instance::SendMessageToAppletViewer
Writing to JVM: instance 1 tag http://loki10.mpi-sws.mpg.de/bb/bittorrent-blocking.php?measure=yes&down=yes&up=yes&port=-1&port2=-2&tcp=yes&duration=10 <applet archive="http://64.9.225.168:19981/BlockingDetector.jar"; code="BlockingDetector" alt="Your Java plugin is not working!" height="40" width="200">&#10;       <param name="ID" value="1233319608">&#10;       <param name="server" value="64.9.225.168">&#10;       <param name="port" value="-1">&#10;       <param name="up" value="true">&#10;       <param name="down" value="true">&#10;       <param name="tcp" value="true">&#10;       <param name="port2" value="-2">&#10;       <param name="duration" value="10">&#10;       <param name="repeat" value="2">&#10;       <param name="cache_option" value="no">&#10;       <param name="cache_version" value="1.0">&#10;       <param name="nextPage" value="loki10.mpi-sws.mpg.de//bb/bittorrent-blocking.php">&#10;       <b style="color: red;">Your Java plugin is not working!</b>&#10;       </applet></embed>
Wrote 989 bytes to pipe
ICEDTEA PLUGIN: Instance::SendMessageToAppletViewer return
SETTING PEER!!!: 0x3b3c7b0
DONE SETTING PEER!!!: 0x3b3c7b0
ICEDTEA PLUGIN: Instance::Initialize return
NOT IMPLEMENTED: virtual nsresult IcedTeaPluginInstance::Start()
ICEDTEA PLUGIN: Instance::GetValue
ICEDTEA PLUGIN: Instance::GetValue return
GETTING PEER!!!: 0x3b3c7b0
DONE GETTING PEER!!!: 0x3b3c7b0, 0x3b3c7b0
ICEDTEA PLUGIN: Factory::GetValue
ICEDTEA PLUGIN: Factory::GetValue return
ICEDTEA PLUGIN: Instance::GetValue
ICEDTEA PLUGIN: Instance::GetValue return
ICEDTEA PLUGIN: Instance::SetWindow
ICEDTEA PLUGIN: Instance::SetWindow: setting window.
ICEDTEA PLUGIN: Instance::SendMessageToAppletViewer
Writing to JVM: instance 1 handle 73402143
Wrote 27 bytes to pipe
ICEDTEA PLUGIN: Instance::SendMessageToAppletViewer return
ICEDTEA PLUGIN: Instance::SetWindow return
ICEDTEA PLUGIN: Instance::GetJavaObject
IcedTeaPluginInstance::GetJavaObject: Instance 0x42f2680 waiting for initialization...
ICEDTEA PLUGIN: plugin_in_pipe_callback
Received message: instance 1 status starting applet...
  PIPE: plugin read: instance 1 status starting applet...
ICEDTEA PLUGIN: plugin_in_pipe_callback return
ICEDTEA PLUGIN: Instance::ConsumeMsgFromJVM
received message: instance 1 status starting applet...
Segmentation fault


** Changed in: openjdk-6 (Ubuntu)
       Status: Incomplete => New

-- 
firefox segfault while using java
https://bugs.launchpad.net/bugs/323110
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “firefox” source package in Ubuntu: New
Status in “openjdk-6” source package in Ubuntu: New

Bug description:
While running this test http://broadband.mpi-sws.org/transparency/bttest-mlab.php
the icedted java plugin (64bits) will segfault firefox 3.0 and 3.1

$ gdb /usr/lib/firefox-3*/firefox
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(no debugging symbols found)
(no debugging symbols found)
(gdb) r
Starting program: /usr/lib/firefox-3.0.5/firefox 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x7fbed2b66700 (LWP 15602)]
[New Thread 0x7fbec249c950 (LWP 15702)]
[New Thread 0x7fbec1a91950 (LWP 15703)]
[New Thread 0x7fbec017e950 (LWP 15704)]
[Thread 0x7fbec017e950 (LWP 15704) exited]
[New Thread 0x7fbec017e950 (LWP 15705)]
[New Thread 0x7fbebf696950 (LWP 15706)]
[New Thread 0x7fbebee95950 (LWP 15707)]
[New Thread 0x7fbebd8de950 (LWP 15723)]
[Thread 0x7fbec017e950 (LWP 15705) exited]
[New Thread 0x7fbec017e950 (LWP 15724)]
[Thread 0x7fbec017e950 (LWP 15724) exited]
[New Thread 0x7fbec017e950 (LWP 15725)]
[New Thread 0x7fbeb7df9950 (LWP 15726)]
[Thread 0x7fbeb7df9950 (LWP 15726) exited]
[New Thread 0x7fbeb7df9950 (LWP 15792)]
sh: acroread: not found
[New Thread 0x7fbeb47ed950 (LWP 15847)]
[New Thread 0x7fbeb3fec950 (LWP 15848)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fbeb47ed950 (LWP 15847)]
XPCJSContextStack::Pop (this=0x5230010, _retval=<value optimized out>) at xpcthreadcontext.cpp:111
111	xpcthreadcontext.cpp: No such file or directory.
	in xpcthreadcontext.cpp
Current language:  auto; currently c++
(gdb) bt full
#0  XPCJSContextStack::Pop (this=0x5230010, _retval=<value optimized out>) at xpcthreadcontext.cpp:111
	e = (XPCJSContextInfo &) @0x180522fff8: <error reading variable>
	idx = <value optimized out>
#1  0x00007fbed0212207 in ~XPCCallContext (this=0x7fbeb47ec6b0) at xpccallcontext.cpp:333
	stack = (class XPCJSContextStack *) 0x5230018
#2  0x00007fbed0229d8b in nsXPCWrappedJSClass::CallMethod (this=0x2d7c020, wrapper=<value optimized out>, methodIndex=3, 
    info=0xe64850, nativeParams=0x7fbeb47ec820) at xpcwrappedjsclass.cpp:1775
	stackbase = (jsval *) 0x526f088
	sp = (jsval *) 0x526f0a0
	i = 1 '\001'
	argc = 1 '\001'
	stack_size = <value optimized out>
	result = -2147483647
	paramCount = 1 '\001'
	retval = 0
	success = <value optimized out>
	readyToDoTheCall = 1
	param_iid = {m0 = 0, m1 = 0, m2 = 0, m3 = "\000\000\000\000\000\000\000"}
	outConversionFailedIndex = <value optimized out>
	name = 0xe648b0 "setJSStatus"
	fval = 22929984
	mark = (void *) 0x526f078
	foundDependentParam = 0
	xpcc = (XPCContext *) 0x5278ab0
	cx = (JSContext *) 0x525f640
	thisObj = (JSObject *) 0x301d7c0
	context = <value optimized out>
	ccx = {<nsAXPCNativeCallContext> = {_vptr.nsAXPCNativeCallContext = 0x7fbed0f9dff0}, 
  mState = XPCCallContext::HAVE_CONTEXT, mXPC = 0x8c1aa0, mThreadData = 0x52742d0, mXPCContext = 0x5278ab0, 
---Type <return> to continue, or q <return> to quit---
  mJSContext = 0x525f640, mContextPopRequired = 1, mDestroyJSContextInDestructor = 0, 
  mCallerLanguage = XPCContext::LANG_NATIVE, mPrevCallerLanguage = XPCContext::LANG_UNKNOWN, mPrevCallContext = 0x0, 
  mOperandJSObject = 0x0, mCurrentJSObject = 0x0, mFlattenedJSObject = 0x0, mWrapper = 0x0, mTearOff = 0x0, 
  mScriptableInfo = 0x0, mSet = 0x0, mInterface = 0x0, mMember = 0x0, mName = 0, mStaticMemberIsLocal = 0, mArgc = 0, 
  mArgv = 0x0, mRetVal = 0x0, mExceptionWasThrown = 0, mReturnValueWasSet = 0, mMethodIndex = 0, mCallee = 0x15de240, 
  mStringWrapperData = '\0' <repeats 47 times>}
	scriptEval = {mJSContext = 0x525f640, mState = 0x0, mOldErrorReporter = 0, mEvaluated = 1, 
  mContextHasThread = 86457904}
	kungFuDeathGrip = {<nsCOMPtr_base> = {mRawPtr = 0x2d7c020}, <No data fields>}
	format = "%s \"%s\""
#3  0x00007fbed098f515 in PrepareAndDispatch (self=0x302f4c0, methodIndex=<value optimized out>, args=0x7fbeb47ec920, 
    gpregs=0x7fbeb47ec920, fpregs=0x7fbeb47ec950) at xptcstubs_x86_64_linux.cpp:151
	paramBuffer = {{val = {i8 = -16 '�', i16 = -13840, i32 = -1266759184, i64 = 140457048721904, u8 = 240 '�', 
      u16 = 51696, u32 = 3028208112, u64 = 140457048721904, f = -2.37290578e-07, d = 6.9395002489742932e-310, 
      b = -1266759184, c = -16 '�', wc = 51696, p = 0x7fbeb47ec9f0}}, {val = {i8 = 0 '\0', i16 = 0, i32 = 0, i64 = 0, 
      u8 = 0 '\0', u16 = 0, u32 = 0, u64 = 0, f = 0, d = 0, b = 0, c = 0 '\0', wc = 0, p = 0x0}}, {val = {i8 = 0 '\0', 
      i16 = 0, i32 = 0, i64 = 0, u8 = 0 '\0', u16 = 0, u32 = 0, u64 = 0, f = 0, d = 0, b = 0, c = 0 '\0', wc = 0, p = 0x0}}, 
  {val = {i8 = 0 '\0', i16 = 0, i32 = 0, i64 = 0, u8 = 0 '\0', u16 = 0, u32 = 0, u64 = 0, f = 0, d = 0, b = 0, c = 0 '\0', 
      wc = 0, p = 0x0}}, {val = {i8 = 0 '\0', i16 = 0, i32 = 0, i64 = 0, u8 = 0 '\0', u16 = 0, u32 = 0, u64 = 0, f = 0, 
      d = 0, b = 0, c = 0 '\0', wc = 0, p = 0x0}}, {val = {i8 = 127 '\177', i16 = -21633, i32 = -795235457, 
      i64 = 140457520245631, u8 = 127 '\177', u16 = 43903, u32 = 3499731839, u64 = 140457520245631, f = -2.06252257e+10, 
      d = 6.9395235453417642e-310, b = -795235457, c = 127 '\177', wc = 43903, p = 0x7fbed099ab7f}}, {val = {i8 = 0 '\0', 
      i16 = 0, i32 = 0, i64 = 0, u8 = 0 '\0', u16 = 0, u32 = 0, u64 = 0, f = 0, d = 0, b = 0, c = 0 '\0', wc = 0, p = 0x0}}, 
  {val = {i8 = -48 '�', i16 = -13616, i32 = -1266758960, i64 = 140457048722128, u8 = 208 '�', u16 = 51920, u32 = 3028208336, 
      u64 = 140457048722128, f = -2.37293762e-07, d = 6.9395002489853603e-310, b = -1266758960, c = -48 '�', wc = 51920, 
      p = 0x7fbeb47ecad0}}, {val = {i8 = 18 '\022', i16 = 18, i32 = 18, i64 = 18, u8 = 18 '\022', u16 = 18, u32 = 18, 
      u64 = 18, f = 2.52233724e-44, d = 8.8931816251424378e-323, b = 18, c = 18 '\022', wc = 18, p = 0x12}}, {val = {
      i8 = 18 '\022', i16 = 18, i32 = 18, i64 = 18, u8 = 18 '\022', u16 = 18, u32 = 18, u64 = 18, f = 2.52233724e-44, 
      d = 8.8931816251424378e-323, b = 18, c = 18 '\022', wc = 18, p = 0x12}}, {val = {i8 = 0 '\0', i16 = 0, i32 = 0, 
---Type <return> to continue, or q <return> to quit---
      i64 = 0, u8 = 0 '\0', u16 = 0, u32 = 0, u64 = 0, f = 0, d = 0, b = 0, c = 0 '\0', wc = 0, p = 0x0}}, {val = {
      i8 = 40 '(', i16 = -20696, i32 = -795234520, i64 = 140457520246568, u8 = 40 '(', u16 = 44840, u32 = 3499732776, 
      u64 = 140457520246568, f = -2.06271447e+10, d = 6.9395235453880581e-310, b = -795234520, c = 40 '(', wc = 44840, 
      p = 0x7fbed099af28}}, {val = {i8 = 11 '\v', i16 = 11, i32 = 11, i64 = 77309411339, u8 = 11 '\v', u16 = 11, u32 = 11, 
      u64 = 77309411339, f = 1.54142831e-44, d = 3.8195924242809624e-313, b = 11, c = 11 '\v', wc = 11, p = 0x120000000b}}, {
    val = {i8 = 0 '\0', i16 = 0, i32 = 0, i64 = 0, u8 = 0 '\0', u16 = 0, u32 = 0, u64 = 0, f = 0, d = 0, b = 0, c = 0 '\0', 
      wc = 0, p = 0x0}}, {val = {i8 = -92 '�', i16 = -12892, i32 = -1416835676, i64 = 2878131620, u8 = 164 '�', u16 = 52644, 
      u32 = 2878131620, u64 = 2878131620, f = -1.0004675e-12, d = 1.4219859576514132e-314, b = -1416835676, c = -92 '�', 
      wc = 52644, p = 0xab8ccda4}}, {val = {i8 = -48 '�', i16 = -13616, i32 = -1266758960, i64 = 140457048722128, 
      u8 = 208 '�', u16 = 51920, u32 = 3028208336, u64 = 140457048722128, f = -2.37293762e-07, d = 6.9395002489853603e-310, 
      b = -1266758960, c = -48 '�', wc = 51920, p = 0x7fbeb47ecad0}}}
	dispatchParams = (nsXPTCMiniVariant *) 0x7fbeb47ec820
	info = (const nsXPTMethodInfo *) 0xe64850
	paramCount = 1
	i = 4294967295
	result = <value optimized out>
	ap = <value optimized out>
	nr_gpr = 24
	nr_fpr = 1
	value = <value optimized out>
#4  0x00007fbed098e9c3 in SharedStub () from /usr/lib/xulrunner-1.9.0.5/libxul.so
No locals.
#5  0x00007fbed0765d42 in nsContentTreeOwner::SetStatusWithContext (this=0x289e820, aStatusType=<value optimized out>, 
    aStatusText=@0x7fbeb47ec9f0, aStatusContext=0x0) at nsContentTreeOwner.cpp:452
	xulBrowserWindow = {<nsCOMPtr_base> = {mRawPtr = 0x302f4c0}, <No data fields>}
#6  0x00007fbed0766e5e in nsContentTreeOwner::SetStatus (this=0x289e820, aStatusType=1, aStatus=<value optimized out>)
    at nsContentTreeOwner.cpp:479
No locals.
#7  0x00007fbed03adb5d in nsPluginInstanceOwner::ShowStatus (this=<value optimized out>, aStatusMsg=0x7fbeb47ecaf0)
---Type <return> to continue, or q <return> to quit---
    at nsObjectFrame.cpp:2374
	rv = 0
	cont = {<nsCOMPtr_base> = {mRawPtr = 0x289dd08}, <No data fields>}
	docShellItem = {<nsCOMPtr_base> = {mRawPtr = 0x289ddf8}, <No data fields>}
	treeOwner = {<nsCOMPtr_base> = {mRawPtr = 0x289e820}, <No data fields>}
	browserChrome = {<nsCOMPtr_base> = {mRawPtr = 0x289e838}, <No data fields>}
#8  0x00007fbed03adbf5 in nsPluginInstanceOwner::ShowStatus (this=0x52859b0, aStatusMsg=0x529d018 "starting applet...")
    at nsObjectFrame.cpp:2341
	rv = <value optimized out>
#9  0x00007fbeb7053f2f in IcedTeaPluginFactory::HandleMessage ()
   from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
No symbol table info available.
#10 0x00007fbeb7056c5e in IcedTeaPluginFactory::ConsumeMsgFromJVM ()
   from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
No symbol table info available.
#11 0x00007fbeb7056df3 in IcedTeaPluginFactory::ProcessMessage ()
   from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
No symbol table info available.
#12 0x00007fbeb706516a in IcedTeaRunnableMethod<IcedTeaPluginFactory>::Run ()
   from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
No symbol table info available.
#13 0x00007fbed098463e in nsThread::ProcessNextEvent (this=0x523a690, mayWait=1, result=0x7fbeb47ed08c) at nsThread.cpp:510
	notifyGlobalObserver = 1
	obs = {<nsCOMPtr_base> = {mRawPtr = 0x0}, <No data fields>}
	event = {<nsCOMPtr_base> = {mRawPtr = 0x523a660}, <No data fields>}
	rv = 0
#14 0x00007fbed09598fe in NS_ProcessNextEvent_P (thread=0x5230018, mayWait=1) at nsThreadUtils.cpp:227
	val = <value optimized out>
#15 0x00007fbed0984cba in nsThread::ThreadFunc (arg=<value optimized out>) at nsThread.cpp:253
---Type <return> to continue, or q <return> to quit---
	self = (nsThread *) 0x523a690
	event = {<nsCOMPtr_base> = {mRawPtr = 0x0}, <No data fields>}
#16 0x00007fbed1169cb3 in _pt_root (arg=<value optimized out>) at ptthread.c:221
	thred = (PRThread *) 0x5273e30
	detached = 0
#17 0x00007fbed275d3ba in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#18 0x00007fbed1b1c0ad in clone () from /lib/libc.so.6
No symbol table info available.
#19 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: icedtea6-plugin 6b14-0ubuntu10
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_US.UTF-8
SourcePackage: openjdk-6
Uname: Linux 2.6.28-6-generic x86_64



References