The php include() statement can't find the file to include, and crashes when invoked.
The calling code looks like this:
... HTML ...
<?php
include('utils.php');
... some inline php ...
?>
... HTML ...
Crash message and backtrace:
WARNING: include file [utils.php] can not be opened
ERROR in grammar syntax error after [)] near line 275
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb79e26c0 (LWP 3246)]
0x080ae844 in php_execute (node=0x1, result=0xbf9ec81c) at php_syntree.cpp:1790
1790 switch (node->type) {
(gdb) bt
#0 0x080ae844 in php_execute (node=0x1, result=0xbf9ec81c) at php_syntree.cpp:1790
#1 0x080c0b3a in CPhPLibContext::Execute (this=0x818e698, buf=0xbf9ec8b0) at php_core_lib.cpp:547
#2 0x080c0d82 in CPhpFilter (this=0xbf9ec8e3, server=0x8157d90, sess=0x816474c,
file=0x818e558 "/home/boru/.aMule/webserver/litoral/amuleweb-main-shared.php", buff=0xbf9ec8b0)
at php_core_lib.cpp:624
#3 0x08056c7f in CScriptWebServer::ProcessPhpRequest (this=0x8157d90,
filename=0x818e558 "/home/boru/.aMule/webserver/litoral/amuleweb-main-shared.php", sess=0x816474c,
size=@0xbf9eca18) at WebServer.cpp:1796
#4 0x0805d526 in CScriptWebServer::ProcessURL (this=0x8157d90, Data=@0xbf9ecad4) at WebServer.cpp:1917
#5 0x0808d394 in CWebSocket::OnRequestReceived (this=0x81936b0,
pHeader=0x8188276 "HTTP/1.1\r\nHost: localhost:8081\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r"...,
pData=0x0, dwDataLen=0) at WebSocket.cpp:224
#6 0x0808d97a in CWebSocket::OnInput (this=0x81936b0) at WebSocket.cpp:117
#7 0x0805f4fb in CWebServerBase::OnWebSocketEvent (this=0x8157d90, event=@0x8172d40) at WebServer.cpp:317
#8 0xb7da30e1 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#9 0xb7e4ab88 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#10 0xb7e4ace8 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#11 0xb7e4ae4f in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#12 0xb7e4b380 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#13 0xb7da3a7f in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#14 0x0808a891 in CamulewebApp::TextShell (this=0x8140078) at WebInterface.cpp:655
#15 0x08090e8d in CaMuleExternalConnector::ConnectAndRun (this=0x8140078, ProgName=@0xbf9ece20,
ProgVersion=@0xbf9ece1c) at ../../../src/ExternalConnector.cpp:413
#16 0x08089bf0 in CamulewebApp::OnRun (this=0x8140078) at WebInterface.cpp:360
#17 0xb7ddf05a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#18 0xb7ddf107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#19 0x08089cd6 in main (argc=Cannot access memory at address 0x0
) at WebInterface.cpp:333
(gdb) print node
$1 = (PHP_SYN_NODE *) 0x1