#4 Log4c giving segmentation fault when changing the priority.

v1.0 (example)
open
nobody
None
5
2015-08-04
2009-03-26
gini krish
No

The example application_1 is giving segmentation fault when I make it running at appender="myrollingfileappender" and then changing the priority at run time of running the application. I have compiled the package with --enable-reread option. And tested this behaviour with appender="stdout".
Please let me know, if this is a known bug or if I am not implementing it right.

Discussion

  • Nobody/Anonymous

    appender_type_rollingfile.c:168

    /* only attempt the write if the policy implem says I can */
    if ( rc <= ROLLINGPOLICY_ROLLOVER_ERR_CAN_LOG ) {
    + if (rfup->rfu_current_fp == NULL)
    + rollingfile_open(this);
    rc = fprintf(rfup->rfu_current_fp, a_event->evt_rendered_msg);
    rfup->rfu_current_file_size += strlen(a_event->evt_rendered_msg);

     
  • terry yuan

    terry yuan - 2015-08-04

    the solution provided above does work!
    thanks!

     
    Last edit: terry yuan 2015-08-04

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks