Summary:ASTERISK-15135: php agi causes segfaults in php -> /var/lib/asterisk/agi-bin/fixlocalprefix
Reporter:wasserhuegel (wasserhuegel)Labels:
Date Opened:2010-01-21 16:47:11.000-0600Date Closed:2011-06-07 14:00:27
Versions:Frequency of
Description:Asterisk on Debian Lenny with FreePBX

Issue: php agi causes segfaults in php -> /var/lib/asterisk/agi-bin/fixlocalprefix

gdb output on core dump:

This GDB was configured as "i486-linux-gnu"...
asteriks: No such file or directory.
(no debugging symbols found)
Core was generated by `/usr/bin/php -q /var/lib/asterisk/agi-bin/fixlocalprefix'.
Program terminated with signal 11, Segmentation fault.
[New process 17167]
[New process 17166]
#0  0xb685f3cf in ?? ()

Crashes also talke place when calling:




PHP 5.2.6-1+lenny4 with Suhosin-Patch (cli) (built: Nov 22 2009 02:38:03)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

dmesg output:

[62996.068300] fixlocalprefix[14776]: segfault at b70c0eae ip b68283cf sp b702f0b8 error 4 in libgcc_s.so.1[b6821000+c000]
[80278.568827] dialparties.agi[19682]: segfault at b70a2e90 ip b70a2e90 sp b70113ac error 4 in libXdmcp.so.6.0.0[b724a000+4000]
[190639.244685] dialparties.agi[11210]: segfault at b7138e90 ip b7138e90 sp b70a73ac error 4 in librt-2.7.so[b76ea000+7000]
[298429.318649] fixlocalprefix[31291]: segfault at b711ae90 ip b711ae90 sp b70893ac error 4 in librt-2.7.so[b76cc000+7000]
[584085.353177] fixlocalprefix[4643]: segfault at b7111e90 ip b7111e90 sp b70803ac error 4 in librt-2.7.so[b76c3000+7000]
[608597.330429] fixlocalprefix[12852]: segfault at b707be90 ip b707be90 sp b6fea3ac error 4 in librt-2.7.so[b762d000+7000]
[792610.197434] fixlocalprefix[17167]: segfault at b70f6eae ip b685f3cf sp b70650b8 error 4 in libgcc_s.so.1[b6858000+c000]
[794010.719588] fixlocalprefix[17563]: segfault at b70e4e90 ip b70e4e90 sp b70533ac error 4 in librt-2.7.so[b7696000+7000]

Comments:By: Sean Bright (seanbright) 2010-01-21 17:14:21.000-0600

fixlocalprefix is not part of asterisk.  It appears to be part of FreePBX.  Also, PHP is crashing, not Asterisk, which is most likely a problem with your installation of PHP.