Ticket #2230 (closed Bugs: wontfix)

Opened 1 year ago

Last modified 1 year ago

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/admin/common/php-asmanager.php on line 187

Reported by: jonhall Assigned to:
Priority: crash Milestone: 2.3
Component: Phonebook Directory Version: 2.3-branch
Keywords: blacklist phonebook Cc:
Confirmation: Confirmed SVN Revision (if applicable):
Backend Engine: Asterisk 1.4.x Backend Engine Version:

Description

When I click on either Blacklist or Asterisk PhoneBook? from dashboard after about 30 seconds I receive "Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/admin/common/php-asmanager.php on line 187". In addition a segmentation fault is caused in Asterisk. The console says "Disconnected from Asterisk server /usr/sbin/safe_asterisk: line 42: 31252 Segmentation fault (core dumped) ${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} >&/dev/${TTY} </dev/${TTY} Asterisk ended with exit status 139 Asterisk exited on signal 11."

It does not appear any errors are logged in the the asterisk log. I just see Asterisk restarting. The httpd error log shows a [client 172.16.0.254] Tue, 7 Aug 2007 11:00:05 -0500 - Unable to connect to manager 127.0.0.1:5038 (111): Connection refused, referer: http://asterisk1/admin/config.php?type=setup&display=index But I believe this is a result of the Asterisk server restarting. I've tried uninstalling Blacklist, Asterisk Phonebook (and Speeddial), and reinstalling them with no luck.

I have enabled caching of callerid names in the phonebook so I have about 200 numbers and names under /cidname. My blacklist list is much shorter.

Both modules seem to be working fine except I can't access them through the portal without crashing Asterisk.

I am running Asterisk 1.4.9. FreePBX CORE 2.3.0Beta2.35, Framework 2.3.0Beta2.10, Dashboard 0.3.1, Blacklist 1.1.3.3, Phonebook 1.1.5.5

Change History

08/07/07 03:50:18 changed by p_lindheimer

  • status changed from new to closed.
  • confirmation changed from Unreviewed to Confirmed.
  • resolution set to wontfix.
  • milestone changed from 3.0 to 2.3.

the timeout is because Asterisk is crashing and the manager that tries to talk with Asterisk is timing out. The fact that Asterisk is crashing indicates an Asterisk bug of some sort. The code that talks with the manager has not changed in any way. Furthermore, Asterisk needs to be resilient in the event that 'bad' commands were being passed to it through the manager - which they should not be.

Unfortunately we cannot chase down Asterisk issues in 1.4 at this point. You may want to search the Asterisk bug list and/or forums to see if there is any info wrt to 1.4 although no one else has reported any Asterisk crashes that I recall.

08/07/07 10:51:44 changed by jonhall

I couldn't find anything in the Asterisk bug list. I was able to confirm the issue was in the php-asmanager.php code in the function database_show. This function is called by both blacklist and phonebook. It turns out a callerid entry was added through the "Callerid Lookup Sources" cache option. The entry was "/cidname/jonhall%40startel.pt" and because the database show query doesn't specify the family qualifier both the blacklist and phonebook modules caused the segmentation fault. I've verified that by removing this entry is works fine and adding it, it causes the segmentation fault. I was able to recreate on a second server. From the console a database show command works fine. I'm not a programmer so I don't understand whether this is a bug in the Freepbx module code or Asterisk. I would tend to agree that Asterisk should not crash due to a bad command or result. It seems to be related to te %40startel as %40 (@) by itself doesn't cause the fault. I'm not sure how likely this sequence of characters is, but maybe you should look at the possibility of filtering url's to prevent the problem.

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads