db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5230) Assert failure in derby.rawStoreDaemon: resetCurrentContextManager - mismatch contexts
Date Fri, 13 May 2011 10:47:47 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032953#comment-13032953
] 

Knut Anders Hatlen commented on DERBY-5230:
-------------------------------------------

It seems to happen when the daemon thread is shutting down. Here's the full stack trace and
thread dump:

Exception in thread "derby.rawStoreDaemon" org.apache.derby.shared.common.sanity.AssertFailure:
ASSERT FAILED resetCurrentContextManager - mismatch contexts - Thread[derby.rawStoreDaemon,5,derby.daemons]
	at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)
	at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)
	at org.apache.derby.iapi.services.context.ContextService.resetCurrentContextManager(ContextService.java:311)
	at org.apache.derby.impl.services.daemon.BasicDaemon.run(BasicDaemon.java:408)
	at java.lang.Thread.run(Thread.java:619)
---------------
Stack traces for all live threads:
Thread name=Finalizer id=3 priority=8 state=WAITING isdaemon=true
	java.lang.Object.wait(Native Method)
	java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
	java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
	java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Thread name=Reference Handler id=2 priority=10 state=WAITING isdaemon=true
	java.lang.Object.wait(Native Method)
	java.lang.Object.wait(Object.java:485)
	java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

Thread name=DestroyJavaVM id=15 priority=5 state=RUNNABLE isdaemon=false
	java.util.IdentityHashMap.keySet(IdentityHashMap.java:935)
	java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:70)
	java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:24)
	java.lang.Shutdown.runHooks(Shutdown.java:79)
	java.lang.Shutdown.sequence(Shutdown.java:123)
	java.lang.Shutdown.shutdown(Shutdown.java:190)

Thread name=Signal Dispatcher id=4 priority=9 state=RUNNABLE isdaemon=true

Thread name=derby.rawStoreDaemon id=14 priority=5 state=RUNNABLE isdaemon=true
	java.lang.Thread.dumpThreads(Native Method)
	java.lang.Thread.getAllStackTraces(Thread.java:1487)
	org.apache.derby.shared.common.sanity.ThreadDump.getStackDumpString(ThreadDump.java:34)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.derby.shared.common.sanity.AssertFailure$1.run(AssertFailure.java:165)
	java.security.AccessController.doPrivileged(Native Method)
	org.apache.derby.shared.common.sanity.AssertFailure.dumpThreads(AssertFailure.java:159)
	org.apache.derby.shared.common.sanity.AssertFailure.<init>(AssertFailure.java:72)
	org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)
	org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)
	org.apache.derby.iapi.services.context.ContextService.resetCurrentContextManager(ContextService.java:311)
	org.apache.derby.impl.services.daemon.BasicDaemon.run(BasicDaemon.java:408)
	java.lang.Thread.run(Thread.java:619)


---------------

> Assert failure in derby.rawStoreDaemon: resetCurrentContextManager - mismatch contexts
> --------------------------------------------------------------------------------------
>
>                 Key: DERBY-5230
>                 URL: https://issues.apache.org/jira/browse/DERBY-5230
>             Project: Derby
>          Issue Type: Bug
>          Components: Services
>    Affects Versions: 10.9.0.0
>         Environment: Solaris 11 Express (snv_151a), Java 1.6.0_21, sane jars, trunk revision
1101840.
>            Reporter: Knut Anders Hatlen
>
> I saw this failure in derbyall:
> ********* Diff file derbyall/xa/xaAnotherTest.diff
> *** Start: xaAnotherTest jdk1.6.0_21 derbyall:xa 2011-05-13 10:58:31 ***
> 298 del
> < ij(LOCAL7)> 
> 298 add
> > ij(LOCAL7)> Exception in thread "derby.rawStoreDaemon" org.apache.derby.shared.common.sanity.AssertFailure:
ASSERT FAILED resetCurrentContextManager - mismatch contexts - Thread[derby.rawStoreDaemon,5,derby.daemons]
> > ---------------
> > Stack traces for all live threads:
> > Thread name=Finalizer id=3 priority=8 state=WAITING isdaemon=true
> > 	java.lang.Object.wait(Native Method)
> > 	java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
> > 	java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
> > 	java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
> > Thread name=Reference Handler id=2 priority=10 state=WAITING isdaemon=true
> > 	java.lang.Object.wait(Native Method)
> > 	java.lang.Object.wait(Object.java:485)
> > 	java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
> > Thread name=DestroyJavaVM id=15 priority=5 state=RUNNABLE isdaemon=false
> > 	java.util.IdentityHashMap.keySet(IdentityHashMap.java:935)
> > 	java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:70)
> > 	java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:24)
> > 	java.lang.Shutdown.runHooks(Shutdown.java:79)
> > 	java.lang.Shutdown.sequence(Shutdown.java:123)
> > 	java.lang.Shutdown.shutdown(Shutdown.java:190)
> > Thread name=Signal Dispatcher id=4 priority=9 state=RUNNABLE isdaemon=true
> > Thread name=derby.rawStoreDaemon id=14 priority=5 state=RUNNABLE isdaemon=true
> > 	java.lang.Thread.dumpThreads(Native Method)
> > 	java.lang.Thread.getAllStackTraces(Thread.java:1487)
> > 	org.apache.derby.shared.common.sanity.ThreadDump.getStackDumpString(ThreadDump.java:34)
> > 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > 	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > 	java.lang.reflect.Method.invoke(Method.java:597)
> > 	org.apache.derby.shared.common.sanity.AssertFailure$1.run(AssertFailure.java:165)
> > 	java.security.AccessController.doPrivileged(Native Method)
> > 	org.apache.derby.shared.common.sanity.AssertFailure.dumpThreads(AssertFailure.java:159)
> > 	org.apache.derby.shared.common.sanity.AssertFailure.<init>(AssertFailure.java:72)
> > 	org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)
> > 	org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)
> > 	org.apache.derby.iapi.services.context.ContextService.resetCurrentContextManager(ContextService.java:311)
> > 	org.apache.derby.impl.services.daemon.BasicDaemon.run(BasicDaemon.java:408)
> > 	java.lang.Thread.run(Thread.java:619)
> > ---------------
> Test Failed.
> *** End:   xaAnotherTest jdk1.6.0_21 derbyall:xa 2011-05-13 10:58:44 ***

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message