[slf4j-dev] [Bug 175] New: Race Condition in SubstituteLoggerFactory

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Mar 30 21:10:19 CEST 2010


http://bugzilla.slf4j.org/show_bug.cgi?id=175

           Summary: Race Condition in SubstituteLoggerFactory
           Product: SLF4J
           Version: 1.5.x
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P1
         Component: Core API
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: rimovm at centercomp.com


Here's the relevant snippet from a test case:

java.lang.ArrayIndexOutOfBoundsException: 10
        at java.util.ArrayList.add(ArrayList.java:352)
        at
org.slf4j.helpers.SubstituteLoggerFactory.getLogger(SubstituteLoggerFactory.java:59)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:249)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:261)
        at
org.picocontainer.gems.monitors.Slf4jComponentMonitor.getLogger(Slf4jComponentMonitor.java:285)
        at
org.picocontainer.gems.monitors.Slf4jComponentMonitor.instantiating(Slf4jComponentMonitor.java:161)


SubstituteLoggerFactory doesn't lock provide synchronization sharing the
loggerNameList.

Thanks,
-Mike (R)


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list