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

Reply via email to