You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Raghavendra SM <ra...@aylus.com> on 2007/10/17 15:06:01 UTC

Axis Core Dump while writing to log file

Hi All,

Please find below the GDB back trace of the core dump I found.

Program terminated with signal 25, File size limit exceeded.
#0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
#1  0xb794ce4c in _IO_file_write () from /lib/tls/libc.so.6
#2  0xb794b869 in _IO_file_setbuf () from /lib/tls/libc.so.6
#3  0xb794b93f in _IO_do_write () from /lib/tls/libc.so.6
#4  0xb794c477 in _IO_file_sync () from /lib/tls/libc.so.6
#5  0xb79416e2 in fflush () from /lib/tls/libc.so.6
#6  0xb7af922b in axutil_log_impl_write_to_file () from 
/opt/aylus/lib/libaxutil.so.0
#7  0xb7af9320 in axutil_log_impl_log_debug () from 
/opt/aylus/lib/libaxutil.so.0
#8  0xb773a34d in axis2_http_worker_process_request 
(http_worker=0x81d4cc8, env=0x81d6348, svr_conn=0x81d6368,
    simple_request=0x81d6438) at http_worker.c:155
#9  0xb7aed01f in axis2_svr_thread_worker_func (thd=0x81c4180, 
data=0x81d4d00) at http_svr_thread.c:256
#10 0xb7b043af in dummy_worker () from /opt/aylus/lib/libaxutil.so.0
#11 0xb7f71ced in start_thread () from /lib/tls/libpthread.so.0
#12 0xb79bbdee in clone () from /lib/tls/libc.so.6

When: It was produced when the axis2.log file was very huge (like 
3451222890 Bytes) and axis tried to write some logs.

Doubts: 1) Does axis2 log utility support writing to a new log file when 
ever a file becomes huge? If yes, how can we enable it?
	  2) Does axis2 log utility support wrapping of the log file 
instead of appending to it after certain file size limit? If yes, how 
can we enable it?
	  3) Does axis2 has a way to preserve all the logs yet not crash 
due to file size limit? 
	  4) If the answers are NO for all of the above questions, is 
axutil_log_impl_write_to_file() (before the fprintf, line #250)is the 
right place to support either of the above?

Please reply.  

Regards,
~raghav
 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: Axis Core Dump while writing to log file

Posted by Samisa Abeysinghe <sa...@wso2.com>.
I have done a quick fix to the svn trunc to prevent the failure on the 
large file signal.
Whoever, switching to another file in case of a large file is yet to be 
handled.

Samisa...


Samisa Abeysinghe wrote:
> Raghavendra SM wrote:
>> Hi All,
>>
>> Please find below the GDB back trace of the core dump I found.
>>
>> Program terminated with signal 25, File size limit exceeded.
>> #0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
>> (gdb) bt
>> #0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
>> #1  0xb794ce4c in _IO_file_write () from /lib/tls/libc.so.6
>> #2  0xb794b869 in _IO_file_setbuf () from /lib/tls/libc.so.6
>> #3  0xb794b93f in _IO_do_write () from /lib/tls/libc.so.6
>> #4  0xb794c477 in _IO_file_sync () from /lib/tls/libc.so.6
>> #5  0xb79416e2 in fflush () from /lib/tls/libc.so.6
>> #6  0xb7af922b in axutil_log_impl_write_to_file () from 
>> /opt/aylus/lib/libaxutil.so.0
>> #7  0xb7af9320 in axutil_log_impl_log_debug () from 
>> /opt/aylus/lib/libaxutil.so.0
>> #8  0xb773a34d in axis2_http_worker_process_request 
>> (http_worker=0x81d4cc8, env=0x81d6348, svr_conn=0x81d6368,
>>     simple_request=0x81d6438) at http_worker.c:155
>> #9  0xb7aed01f in axis2_svr_thread_worker_func (thd=0x81c4180, 
>> data=0x81d4d00) at http_svr_thread.c:256
>> #10 0xb7b043af in dummy_worker () from /opt/aylus/lib/libaxutil.so.0
>> #11 0xb7f71ced in start_thread () from /lib/tls/libpthread.so.0
>> #12 0xb79bbdee in clone () from /lib/tls/libc.so.6
>>
>> When: It was produced when the axis2.log file was very huge (like 
>> 3451222890 Bytes) and axis tried to write some logs.
>>
>> Doubts: 1) Does axis2 log utility support writing to a new log file 
>> when ever a file becomes huge? If yes, how can we enable it?
>>   
> No. You are the first to report this bug. So now we know we have to 
> handle it. Please raise a Jira and we have to fix that.
>>       2) Does axis2 log utility support wrapping of the log file 
>> instead of appending to it after certain file size limit? If yes, how 
>> can we enable it?
>>   
> No, again, and it is a good idea to have this feature as well. Please 
> raise a Jira on this as well.
>>       3) Does axis2 has a way to preserve all the logs yet not crash 
>> due to file size limit?   
> Crashing is a bug. That needs fixing.
>>       4) If the answers are NO for all of the above questions, is 
>> axutil_log_impl_write_to_file() (before the fprintf, line #250)is the 
>> right place to support either of the above?
>>   
> Yes, that is probably where the fixes should go.
>
> Samisa...
>> Please reply. 
>> Regards,
>> ~raghav
>>  
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>>
>>
>>   
>
>


-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: Axis Core Dump while writing to log file

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Raghavendra SM wrote:
> Hi All,
>
> Please find below the GDB back trace of the core dump I found.
>
> Program terminated with signal 25, File size limit exceeded.
> #0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
> (gdb) bt
> #0  0xb79ac2f1 in write () from /lib/tls/libc.so.6
> #1  0xb794ce4c in _IO_file_write () from /lib/tls/libc.so.6
> #2  0xb794b869 in _IO_file_setbuf () from /lib/tls/libc.so.6
> #3  0xb794b93f in _IO_do_write () from /lib/tls/libc.so.6
> #4  0xb794c477 in _IO_file_sync () from /lib/tls/libc.so.6
> #5  0xb79416e2 in fflush () from /lib/tls/libc.so.6
> #6  0xb7af922b in axutil_log_impl_write_to_file () from 
> /opt/aylus/lib/libaxutil.so.0
> #7  0xb7af9320 in axutil_log_impl_log_debug () from 
> /opt/aylus/lib/libaxutil.so.0
> #8  0xb773a34d in axis2_http_worker_process_request 
> (http_worker=0x81d4cc8, env=0x81d6348, svr_conn=0x81d6368,
>     simple_request=0x81d6438) at http_worker.c:155
> #9  0xb7aed01f in axis2_svr_thread_worker_func (thd=0x81c4180, 
> data=0x81d4d00) at http_svr_thread.c:256
> #10 0xb7b043af in dummy_worker () from /opt/aylus/lib/libaxutil.so.0
> #11 0xb7f71ced in start_thread () from /lib/tls/libpthread.so.0
> #12 0xb79bbdee in clone () from /lib/tls/libc.so.6
>
> When: It was produced when the axis2.log file was very huge (like 
> 3451222890 Bytes) and axis tried to write some logs.
>
> Doubts: 1) Does axis2 log utility support writing to a new log file when 
> ever a file becomes huge? If yes, how can we enable it?
>   
No. You are the first to report this bug. So now we know we have to 
handle it. Please raise a Jira and we have to fix that.
> 	  2) Does axis2 log utility support wrapping of the log file 
> instead of appending to it after certain file size limit? If yes, how 
> can we enable it?
>   
No, again, and it is a good idea to have this feature as well. Please 
raise a Jira on this as well.
> 	  3) Does axis2 has a way to preserve all the logs yet not crash 
> due to file size limit? 
>   
Crashing is a bug. That needs fixing.
> 	  4) If the answers are NO for all of the above questions, is 
> axutil_log_impl_write_to_file() (before the fprintf, line #250)is the 
> right place to support either of the above?
>   
Yes, that is probably where the fixes should go.

Samisa...
> Please reply.  
>
> Regards,
> ~raghav
>  
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
>   


-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org