logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iyer, Vidya" <i...@amazon.com>
Subject Log4j deadlock
Date Thu, 25 May 2006 20:44:04 GMT
Hi,

I'm running an application with several threads, and at the end of the program, each thread
logs an info statement that it is shutting down.  Unfortunately, I periodically see two threads
get deadlocked with the below error.  The docs say that log4j is supposed to be thread safe,
but it looks like there might be a bug in the synchronized code.  Has anyone experienced this
before?

Found one Java-level deadlock:
=============================
"MessageReader-15":
  waiting to lock monitor 0x0809f394 (object 0x666b4788, a java.io.PrintStream),
  which is held by "main"
"main":
  waiting to lock monitor 0x0809f494 (object 0x65e061a0, a org.apache.log4j.spi.RootLogger),
  which is held by "MessageReader-15"


Thanks,
Vidya


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message