Project

General

Profile

Actions

Bug #412

closed

Fehlerhafte Logger-Konfigurationsdatei führt zum Absturz

Added by Jörg Riesmeier over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Uli Schlachter
Category:
-
Target version:
-
Start date:
2012-05-10
Due date:
% Done:

0%

Estimated time:
Module:
oflog
Operating System:
Compiler:

Description

Aus einer E-Mail von Heyo Spekker:

anbei die logfile.cfg, die direkt zum Absturz führt.
Grund ist, dass ich bei der Angabe des Conversion Patterns
"console.layout" statt "logfile.layout" geschrieben hatte.

Files

logfile.cfg (471 Bytes) logfile.cfg Faulty logger config file Jörg Riesmeier, 2012-05-10 10:04
Actions #1

Updated by Jörg Riesmeier over 13 years ago

Hier der Call Stack für den Aufruf von dcm2pnm mit der besagten Logger Config auf caesar:

Starting program: /export/home/joergr/source/dcmtk/dcmimage/apps/dcm2pnm -lc ~/tmp/logfile_err.cfg ~/data/dicom/images/TROSTEN.dcm -o
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000636180 in OFListBase::base_begin (this=0x0) at ../../ofstd/include/dcmtk/ofstd/oflist.h:128
128         OFListLinkBase * base_begin() const { return afterLast->next; }
(gdb) where
#0  0x0000000000636180 in OFListBase::base_begin (this=0x0) at ../../ofstd/include/dcmtk/ofstd/oflist.h:128
#1  0x00000000006c24fd in OFList<dcmtk::log4cplus::pattern::PatternConverter*>::begin (this=0x0) at ../../ofstd/include/dcmtk/ofstd/oflist.h:343
#2  0x00000000006c1dcc in dcmtk::log4cplus::PatternLayout::formatAndAppend (this=0x9d6cb0, output=..., event=...) at patlay.cc:919
#3  0x00000000006c1d2e in dcmtk::log4cplus::PatternLayout::formatAndAppend (this=0x9d6cb0, output=..., event=...) at patlay.cc:911
#4  0x00000000006b1915 in dcmtk::log4cplus::FileAppender::append (this=0x9d8be0, event=...) at fileap.cc:261
#5  0x00000000006ceb0e in dcmtk::log4cplus::Appender::doAppend (this=0x9d8be0, event=...) at appender.cc:206
#6  0x00000000006cbb23 in dcmtk::log4cplus::helpers::AppenderAttachableImpl::appendLoopOnAppenders (this=0x9c87b0, event=...) at apndimpl.cc:183
#7  0x00000000006b9c54 in dcmtk::log4cplus::spi::LoggerImpl::callAppenders (this=0x9cbaf0, event=...) at logimpl.cc:62
#8  0x00000000006ba157 in dcmtk::log4cplus::spi::LoggerImpl::forcedLog (this=0x9cbaf0, ll_=10000, message=..., file=0x6e848a "dcm2pnm.cc", line=898, function=0x6e9210 "int main(int, char**)")
    at logimpl.cc:160
#9  0x00000000006b9398 in dcmtk::log4cplus::Logger::forcedLog (this=0x9c7010, ll=10000, message=..., file=0x6e848a "dcm2pnm.cc", line=898, function=0x6e9210 "int main(int, char**)") at logger.cc:245
#10 0x0000000000411e8c in OFLogger::forcedLog (this=0x9c7010, ll=10000, message=..., file=0x6e848a "dcm2pnm.cc", line=898, function=0x6e9210 "int main(int, char**)")
    at ../../oflog/include/dcmtk/oflog/oflog.h:91
#11 0x0000000000408daf in main (argc=5, argv=0x7fffffffe588) at dcm2pnm.cc:898
Actions #2

Updated by Uli Schlachter over 13 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF