Issue Details (XML | Word | Printable)

Key: LOGCXX-4
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Curt Arnold
Reporter: joe zendle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

initialization not working on many OS's

Created: 30/Jul/04 01:38 PM   Updated: 21/Oct/04 05:42 PM
Return to search
Component/s: Configurator
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Environment: AIX 5.1 xlC 6.0, Linux w/ GCC, Win XP, probably others

Resolution Date: 21/Oct/04 05:42 PM


 Description  « Hide
log4cxx initialization does not work properly. Running examples gives:
'you have tried to set a null value to root'

Presumably, this problem is caused by problems in initializing static data in level.cpp and logmanager.cpp

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Curt Arnold added a comment - 21/Oct/04 05:42 PM
Commit msg: http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4cxx-dev@logging.apache.org&msgNo=314

Summary: http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4cxx-user@logging.apache.org&msgNo=457

The crashes were due to dependency on non-local static variables called during configuration which can occur during static initialization. Since the order that initialization occurs is not defined bad things happen, typically log4cxx::Level::DEBUG or a string literal used in parsing the configuration file was still null.