[asterisk-dev] Logger.c Cause segfault

Wilmar Campos wilmar.campos at gmail.com
Thu Mar 23 11:29:05 MST 2006


Hello,
Yesterday my system segfault, this is the information i got from the dump.
The thing is I dont have enable any logrotate or something like that, it
seems is controlled internally in asterisk.

Other strange thing is the system did the log rotate several times on the
same hour.

Thanks in advance for any help you can give.

Wilmar

/var/log/asterisk directory:
-rw-r--r--   1 root root   1147131 2006-03-23 12:00 messages.0
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.1
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.10
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.11
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.12
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.13
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.14
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.15
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.16
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.17
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.18
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.19
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.2
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.20
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.21
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.22
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.23
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.24
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.25
-rw-r--r--   1 root root     71401 2006-03-23 13:02 messages.26
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.3
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.4
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.5
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.6
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.7
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.8
-rw-r--r--   1 root root         0 2006-03-23 12:01 messages.9
<root at ss_development:/var/log/asterisk>
CORE:

#0  0x4015725e in vfprintf () from /lib/libc.so.6
(gdb) bt
#0  0x4015725e in vfprintf () from /lib/libc.so.6
#1  0x40177860 in vsnprintf () from /lib/libc.so.6
#2  0x40160134 in snprintf () from /lib/libc.so.6
#3  0x0805e1e1 in config_text_file_load (database=0xbd3c29a4
"\024¼\027@\017", table=0xbd3c28a4 "", filename=0x80ed721 "logger.conf",
cfg=0x41782a58) at config.c:549
#4  0x0805d661 in ast_config_internal_load (filename=0x811505c
"wü\016\bpá\005\b", cfg=0xbd3c28a4) at config.c:959
#5  0x0805e06c in ast_config_load (filename=0xbd3c2754 "") at config.c:976
#6  0x08057f81 in init_logger_chain () at logger.c:311
#7  0x08056d6b in reload_logger (rotate=1) at logger.c:434
#8  0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#9  0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#10 0x08057090 in reload_logger (rotate=1) at logger.c:457
#11 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#12 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#13 0x08057090 in reload_logger (rotate=1) at logger.c:457
#14 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#15 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#16 0x08057090 in reload_logger (rotate=1) at logger.c:457
#17 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#18 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#19 0x08057090 in reload_logger (rotate=1) at logger.c:457
#20 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#21 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#22 0x08057090 in reload_logger (rotate=1) at logger.c:457
#23 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#24 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#25 0x08057090 in reload_logger (rotate=1) at logger.c:457
#26 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#27 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#28 0x08057090 in reload_logger (rotate=1) at logger.c:457
#29 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#30 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#31 0x08057090 in reload_logger (rotate=1) at logger.c:457
#32 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#33 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#34 0x08057090 in reload_logger (rotate=1) at logger.c:457
#35 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#36 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#37 0x08057090 in reload_logger (rotate=1) at logger.c:457
#38 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#39 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#40 0x08057090 in reload_logger (rotate=1) at logger.c:457
#41 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
---Type <return> to continue, or q <return> to quit---
#42 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#43 0x08057090 in reload_logger (rotate=1) at logger.c:457
#44 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#45 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#46 0x08057090 in reload_logger (rotate=1) at logger.c:457
#47 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#48 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#49 0x08057090 in reload_logger (rotate=1) at logger.c:457
#50 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#51 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#52 0x08057090 in reload_logger (rotate=1) at logger.c:457
#53 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#54 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#55 0x08057090 in reload_logger (rotate=1) at logger.c:457
#56 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#57 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#58 0x08057090 in reload_logger (rotate=1) at logger.c:457
#59 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#60 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#61 0x08057090 in reload_logger (rotate=1) at logger.c:457
#62 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#63 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#64 0x08057090 in reload_logger (rotate=1) at logger.c:457
#65 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#66 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#67 0x08057090 in reload_logger (rotate=1) at logger.c:457
#68 0x08057566 in ast_log (level=5, file=0x80ed5f2 "logger.c", line=898,
function=0x80ed6eb "ast_verbose", fmt=0x81003a6 "%s") at logger.c:805
#69 0x08057b9b in ast_verbose (fmt=0x81003a6 "%s") at logger.c:898
#70 0x08057090 in reload_logger (rotate=1) at logger.c:457
#71 0x08057566 in ast_log (level=0, file=0x80efab8 "channel.c", line=2041,
function=0x80efc62 "ast_indicate",
    fmt=0x80f1120 "Driver for channel '%s' does not support indication %d,
emulating it\n") at logger.c:805
#72 0x08061fcb in ast_indicate (chan=0x41440e50, condition=0) at channel.c
:2041
#73 0x40f8645a in wait_for_answer (in=0x41440e50, outgoing=0x417a9d88,
to=0xbd3f7cc4, peerflags=0xbd3f861c, sentringing=0xbd3f7cc8,
status=0xbd3f7e64 "NOANSWER",
    statussize=256, busystart=0, nochanstart=0, congestionstart=0,
priority_jump=0, result=0xbd3c2754) at app_dial.c:584
#74 0x40f82da4 in dial_exec_full (chan=0x41440e50, data=0xbd3f7cc8,
peerflags=0xbd3f861c) at app_dial.c:1162
#75 0x40f81c15 in dial_exec (chan=0xbd3c2754, data=0xbd3c2754) at
app_dial.c:1601
#76 0x0808c13d in pbx_exec (c=0x41440e50, app=0xbd3c2754, data=0xbd3f86e4,
newstack=1) at pbx.c:544
#77 0x40f9f6d0 in lcdial_dial (chan=0x41440e50, data=0xbd3f86e4,
providerid=6) at lcdial.c:156
#78 0x40f9f20b in lcdial_exec (chan=0x41440e50, data=0xbd3f8a74) at lcdial.c
:277
#79 0x0808c13d in pbx_exec (c=0x41440e50, app=0xbd3c2754, data=0xbd3f8a74,
newstack=1) at pbx.c:544
#80 0x40c0a3ca in callingcard_pbx_dial (chan=0x41440e50, cd=0xbd3f9214) at
app_prepaid_call.c:439
#81 0x40c0932f in callingcard_exec (chan=0x41440e50, data=0xbd3fd754) at
app_prepaid_call.c:966
---Type <return> to continue, or q <return> to quit---
#82 0x0808e172 in pbx_extension_helper (c=0x41440e50, con=0xbd3c2754,
context=0x41440fa0 "callingcard", exten=0x41441094 "98898096815505",
priority=203, label=0x0,
    callerid=0x0, action=0) at pbx.c:544
#83 0x0808ed9f in __ast_pbx_run (c=0x41440e50) at pbx.c:2218
#84 0x0808fa8f in pbx_thread (data=0xbd3c2754) at pbx.c:2505
#85 0x4002a54e in pthread_start_thread () from /lib/libpthread.so.0
#86 0x401d6b8a in clone () from /lib/libc.so.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060323/87c04f82/attachment.htm


More information about the asterisk-dev mailing list