[asterisk-bugs] [Asterisk 0014019]: Starting or restarting asterisk causes seg fault and core dump, apparently in ael/pval.c:4833

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 4 21:43:51 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14019 
====================================================================== 
Reported By:                ckjohnsonme
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   14019
Category:                   PBX/pbx_ael
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 160852 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-03 20:11 CST
Last Modified:              2008-12-04 21:43 CST
====================================================================== 
Summary:                    Starting or restarting asterisk causes seg fault and
core dump, apparently in ael/pval.c:4833
Description: 
[root at freedom asterisk]# asterisk -V
Asterisk SVN-trunk-r160791
[root at freedom asterisk]# service asterisk start
Starting asterisk:                                         [  OK  ]
[root at freedom asterisk]# service asterisk restart
Shutting down asterisk: Asterisk ended with exit status 0
Asterisk shutdown normally.
                                                           [  OK  ]
Starting asterisk:                                         [  OK  ]
[root at freedom asterisk]# /usr/sbin/safe_asterisk: line 138: 11599
Segmentation fault      (core dumped) nice -n $PRIORITY
${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 <
/dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed
/usr/sbin/safe_asterisk: line 138: 11643 Segmentation fault      (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >
/dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed
/usr/sbin/safe_asterisk: line 138: 11688 Segmentation fault      (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >
/dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed
/usr/sbin/safe_asterisk: line 138: 11732 Segmentation fault      (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >
/dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed
/usr/sbin/safe_asterisk: line 138: 11775 Segmentation fault      (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >
/dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed

The problem occurs frequently but not reliably.  Starting asterisk service
usually causes one or more segfaults before safe_asterisk successfully
starts asterisk.
====================================================================== 

---------------------------------------------------------------------- 
 (0095828) ckjohnsonme (reporter) - 2008-12-04 21:43
 http://bugs.digium.com/view.php?id=14019#c95828 
---------------------------------------------------------------------- 
Here is one:
http://bugs.digium.com/view.php?id=0  destroy_pval (item=0x7fb200000000) at
ael/pval.c:4833
http://bugs.digium.com/view.php?id=1  0x000000000481614f in destroy_pval_item
(item=0x7fb2a007a5b0)
    at ael/pval.c:4809
http://bugs.digium.com/view.php?id=2  0x0000000004816321 in destroy_pval
(item=0x7fb200000000) at
ael/pval.c:4835
http://bugs.digium.com/view.php?id=3  0x000000000481614f in destroy_pval_item
(item=0x7fb2a007a720)
    at ael/pval.c:4809
http://bugs.digium.com/view.php?id=4  0x0000000004816321 in destroy_pval
(item=0x7fb200000000) at
ael/pval.c:4835
http://bugs.digium.com/view.php?id=5  0x000000000481614f in destroy_pval_item
(item=0x7fb2a0079ae0)
    at ael/pval.c:4809
http://bugs.digium.com/view.php?id=6  0x0000000004816321 in destroy_pval
(item=0x7fb200000000) at
ael/pval.c:4835
http://bugs.digium.com/view.php?id=7  0x00007fb294ab92e9 in pbx_load_module ()
at pbx_ael.c:150
http://bugs.digium.com/view.php?id=8  0x00007fb294ab932d in
handle_cli_ael_reload (e=0x7fb200000000, 
    cmd=-55342744, a=0x25) at pbx_ael.c:206
http://bugs.digium.com/view.php?id=9  0x00000000004544b0 in ast_cli_command_full
(uid=0, gid=0, fd=21, 
    s=0x41f80ae0 "ael reload") at cli.c:2224
http://bugs.digium.com/view.php?id=10 0x00000000004546e3 in
ast_cli_command_multiple_full (uid=0, gid=0,
fd=21, 
    size=<value optimized out>, s=0x41f80d20 "ael reload") at cli.c:2247
http://bugs.digium.com/view.php?id=11 0x000000000042f733 in netconsole
(vconsole=<value optimized out>)
    at asterisk.c:1071
http://bugs.digium.com/view.php?id=12 0x00000000004f14ac in dummy_start
(data=<value optimized out>)
    at utils.c:1024
http://bugs.digium.com/view.php?id=13 0x00000036fd60729a in start_thread () from
/lib64/libpthread.so.0
http://bugs.digium.com/view.php?id=14 0x00000036fcae439d in clone () from
/lib64/libc.so.6

And another:
http://bugs.digium.com/view.php?id=0  destroy_pval (item=0x7fe900000000) at
ael/pval.c:4833
http://bugs.digium.com/view.php?id=1  0x000000000318014f in destroy_pval_item
(item=0x7fe9082b3df0) at
ael/pval.c:4809
http://bugs.digium.com/view.php?id=2  0x0000000003180321 in destroy_pval
(item=0x7fe900000000) at
ael/pval.c:4835
http://bugs.digium.com/view.php?id=3  0x000000000318014f in destroy_pval_item
(item=0x7fe9082b3f60) at
ael/pval.c:4809
http://bugs.digium.com/view.php?id=4  0x0000000003180321 in destroy_pval
(item=0x7fe900000000) at
ael/pval.c:4835
http://bugs.digium.com/view.php?id=5  0x000000000318014f in destroy_pval_item
(item=0x7fe9082b4d40) at
ael/pval.c:4809
http://bugs.digium.com/view.php?id=6  0x0000000003180321 in destroy_pval
(item=0x7fe900000000) at
ael/pval.c:4835
http://bugs.digium.com/view.php?id=7  0x00007fe8fe36d2e9 in pbx_load_module ()
at pbx_ael.c:150
http://bugs.digium.com/view.php?id=8  0x00000000004906ba in load_resource
(resource_name=0x1e9d430
"pbx_ael.so", 
    global_symbols_only=<value optimized out>) at loader.c:694
http://bugs.digium.com/view.php?id=9  0x0000000000490eef in load_modules
(preload_only=0) at loader.c:898
http://bugs.digium.com/view.php?id=10 0x0000000000431db5 in main (argc=<value
optimized out>,
argv=0x7fff16af58b8)
    at asterisk.c:3407
http://bugs.digium.com/view.php?id=11 0x00000036fca1e32a in __libc_start_main ()
from /lib64/libc.so.6
http://bugs.digium.com/view.php?id=12 0x0000000000419369 in
pthread_attr_setdetachstate ()
http://bugs.digium.com/view.php?id=13 0x00007fff16af58a8 in ?? ()
http://bugs.digium.com/view.php?id=14 0x000000000000001c in ?? ()
http://bugs.digium.com/view.php?id=15 0x0000000000000004 in ?? ()
http://bugs.digium.com/view.php?id=16 0x00007fff16af6f61 in ?? ()
http://bugs.digium.com/view.php?id=17 0x00007fff16af6f74 in ?? ()
http://bugs.digium.com/view.php?id=18 0x00007fff16af6f77 in ?? ()
http://bugs.digium.com/view.php?id=19 0x00007fff16af6f7d in ?? ()
http://bugs.digium.com/view.php?id=20 0x0000000000000000 in ?? () 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-04 21:43 ckjohnsonme    Note Added: 0095828                          
======================================================================




More information about the asterisk-bugs mailing list