Re: [Log4cplus-devel] DailyRollingFileAppender crashes with Ctrl-C
Logging Framework for C++
Brought to you by:
wilx
From: vvv j. <vv...@ya...> - 2012-05-29 16:17:21
|
Hi Václav Zeman Thanks for the quick response. The static linking issue which I mentioned is the one for the bug below Program crash on exit with the DailyRollingFileAppender - ID: 3471329 I was asking if the bug is the same one which is causing the crash in my program. Regarding reproducing the bug, the tests does not directly produce the bug. But it can be easily produced by updating fileappender test with FileAppender changed to DailyRollingFileAppender. As per my understanding the problem is occurring when the application is exiting without calling Logger::Shutdown. I observed that the problem was occurring when I'm stopping the application with Control C, Logger::Shutdown is not invoked and some Rollback close is causing the crash. Please let me know if there is anything wrong with my understand. Also let me know is it valid to exit the application without calling Logger::Shutdown when using DailyRollingFileAppender. Thanks and Regards J.Viswanath ________________________________ From: Václav Zeman <vha...@gm...> To: vvv jjj <vv...@ya...> Cc: "log...@li..." <log...@li...> Sent: Tuesday, 29 May 2012 2:16 PM Subject: Re: [Log4cplus-devel] DailyRollingFileAppender crashes with Ctrl-C On 29 May 2012 05:20, vvv jjj wrote: > Hi log4cplus Devel Team, > > This is my first mail to this form about log4cplus bug. Please let me know > if I posted in the wrong form. > > I'm using log4plus for logging in my application which is working fine. > When using DailyRollingFileAppender it is working fine when my application > is running completely. But when I stop my application with Ctrl-C, then my > application is showing memory corruption message box.When I disable the > support of DailyRollingFileAppender it is working fine. I think that there > is some memory corruption when using DailyRollingFileAppender in application > which is closed using Ctrl-C. > > The details of log4cplus are: > log4cplus: > 1.0.4.1-RC2 version > build system that you are building log4cplus with Visual Studio solution > Visual Studio – project configuration (Debug_Unicode) > target OS Windows XP and CPU Intel > > log4cplus client application: > shared library log4cplus > library file you are linking your application with – log4cplusUSD.lib, > liblog4cplus.dll.a, etc., on Windows > your application is using Unicode/wchar_t > > Also I have seen that DailyRollingFileAppender has some issue with static > linking. Is that issue fixed or is it related to the problem which I'm > facing? I have not seen any issues with static linking. What problems do you see? > > Please let me know if anything is not clear or need any other details. > > Thanks and Regards > J.Viswanath Thank you for the problem report. Is this reproducible with any of the tests in tests/ directory? If not, could you provide a self contained test case? -- VZ |