modphp3 SEGV on sparc.
| From: | Tor Fredrik Aas | Date: | Thu, 21 Oct 1999 15:35:09 +0000 |
| Subject: | modphp3 SEGV on sparc. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11810@lists.php.net to get a copy of this message | ||
Hi,
modphp3 segfault when I use mysql functions in my php3 scripts. I have not
clue to why. Here are some data on the system :
Sun SPARCstation 10
Redhat Linux 6.0
mysql 3.22.27
php-3.0.7
Apache Version: Apache/1.3.6
Apache Release: 10306100
Apache API Version: 19990320
Mysql Client API as reported from phpinfo() : empty !
Both mysql and php have been installed from source rpm's. I followed the
procedure which I found at www.horde.net. The offending line in my script
seems to be:
mysql_connect ( "localhost","joe","user" );
Here is also a stack trace :
Program received signal SIGSEGV, Segmentation fault.
0x5048c8f0 in mysql_once_init ()
(gdb) bt
#0 0x5048c8f0 in mysql_once_init ()
#1 0x5048e138 in mysql_init ()
#2 0x5046bc1c in php3_mysql_do_connect (ht=0x94800,
return_value=0x504d3800, list=0x504d4c80, plist=0x504d4c54,
persistent=0)
at functions/mysql.c:593
#3 0x5046bd84 in php3_mysql_connect () at functions/mysql.c:638
#4 0x5048372c in phpparse () at /usr/local/share/bison.simple:759
#5 0x5044ab40 in php3_parse (yyin=0x1) at main.c:1534
#6 0x5044ae30 in apache_php3_module_main () at main.c:1546
#7 0x5044836c in send_php3 ()
#8 0x504483cc in send_parsed_php3 ()
#9 0x19cd8 in ap_invoke_handler ()
#10 0x2a128 in ap_some_auth_required ()
#11 0x2a17c in ap_process_request ()
#12 0x233b0 in ap_child_terminate ()
#13 0x23544 in ap_child_terminate ()
#14 0x23690 in ap_child_terminate ()
#15 0x23c28 in ap_child_terminate ()
#16 0x24404 in main ()
#17 0x5012f8d0 in __libc_start_main () at ../sysdeps/generic/libc-start.c:78