[asterisk-bugs] [JIRA] Commented: (ASTERISK-17439) Crash in 'core show locks'

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Sep 5 08:31:07 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-17439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196598#comment-196598 ] 

Matt Jordan commented on ASTERISK-17439:
----------------------------------------

We independently ran into this same issue in the Asterisk Test Suite.  Unfortunately, we missed the fact that this issue was opened and ended up writing a very similar patch to David's that got committed just recently.  (Given the amount of test failures this issue ended up causing in the test suite, I really, really wish I had written a better JIRA query and found this issue!  I may end up having to make components for the better known compile time options)

I'm going to go ahead and close this issue out to ASTERISK-20090 as a result.

> Crash in 'core show locks'
> --------------------------
>
>                 Key: ASTERISK-17439
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17439
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Core/General
>            Reporter: Kirill Katsnelson
>            Severity: Critical
>         Attachments: ASTERISK-17439-1.6.1.0-patch.txt, ASTERISK-17439-trunk-patch.txt
>
>
> Typed 'core show locks', and Asterisk dumped its core on me.
> ****** ADDITIONAL INFORMATION ******
> (gdb) bt
> #0  0x00007f1c79141c70 in strlen () from /lib/libc.so.6
> #1  0x00007f1c7910a69a in vfprintf () from /lib/libc.so.6
> #2  0x00007f1c791323ca in vsnprintf () from /lib/libc.so.6
> #3  0x0000000000556e93 in __ast_str_helper (buf=0x7f1c55172818, max_len=0, append=1, fmt=0x5d10a9 "\t%s\n", ap=0x7f1c55172610)
>     at strings.c:72
> #4  0x0000000000568fe2 in ast_str_append_va (buf=0x7f1c55172818, max_len=0, fmt=0x5d10a9 "\t%s\n", ap=0x7f1c55172610)
>     at /root/dist/asterisk.1.8.72/include/asterisk/strings.h:787
> ASTERISK-1  0x00000000005692b2 in ast_str_append (buf=0x7f1c55172818, max_len=0, fmt=0x5d10a9 "\t%s\n")
>     at /root/dist/asterisk.1.8.72/include/asterisk/strings.h:859
> ASTERISK-2  0x000000000056a6a4 in append_backtrace_information (str=0x7f1c55172818, bt=0x32403e8) at utils.c:746
> ASTERISK-3  0x000000000056a8a7 in append_lock_information (str=0x7f1c55172818, lock_info=0x322df60, i=1) at utils.c:772
> ASTERISK-4  0x000000000056ac6e in handle_show_locks (e=0x8372e0, cmd=-4, a=0x7f1c55172a80) at utils.c:883
> ASTERISK-5  0x000000000048febf in ast_cli_command_full (uid=0, gid=0, fd=21, s=0x7f1c55172b70 "core show locks") at cli.c:2474
> ASTERISK-6 0x0000000000490068 in ast_cli_command_multiple_full (uid=0, gid=0, fd=21, size=16, s=0x7f1c55172de0 "core show locks")
>     at cli.c:2497
> ASTERISK-7 0x000000000043cf1c in netconsole (vconsole=0x86fc20) at asterisk.c:1266
> ASTERISK-8 0x000000000056aed5 in dummy_start (data=0x2d222f0) at utils.c:971
> ASTERISK-9 0x00007f1c7894b3ba in start_thread () from /lib/libpthread.so.0
> ASTERISK-10 0x00007f1c791a702d in clone () from /lib/libc.so.6
> ASTERISK-11 0x0000000000000000 in ?? ()
> (gdb) fr 6
> ASTERISK-2  0x000000000056a6a4 in append_backtrace_information (str=0x7f1c55172818, bt=0x32403e8) at utils.c:746
> 746                             ast_str_append(str, 0, "\t%s\n", symbols[frame_iterator]);
> (gdb) p frame_iterator
> $10 = 20
> (gdb) p symbols[20]
> $11 = 0x6962732f7273752f <Address 0x6962732f7273752f out of bounds>
> (gdb) p symbols[19]
> $12 = 0x381965e "/usr/sbin/asterisk [0x56aed5]"
> (gdb)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list