php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1178 Segmentation Fault with mysql
Submitted: 1999-02-22 12:27 UTC Modified: 2002-06-16 08:28 UTC
From: Craig_Osterhout at nt dot com Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0.6 OS: hppa1.1-hp-hpux10.20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Craig_Osterhout at nt dot com
New email:
PHP Version: OS:

 

 [1999-02-22 12:27 UTC] Craig_Osterhout at nt dot com
Currently using your distribution of httpd-php-hpux1020.tar. (very nice) 
I would like to beable to compile my own php-httpd with the date functions
PHP and APACHE compile and execute fine but I get "child pid XXXX exit signal Segmentation fault (11)" in log when I try to access Mysql database. I have tried to use -fPIC to static link mysql to php3 but did not seem to help. 
How do you get libmysqlclient.sl staticlly linked to php3. Any help would be greatly appreciated.

I'm using GNU CC "egc-2.91.60" with GNU "make-3.77"
PHP3 3.0.6 CONFIGURED: ./configure --with-mysql --with-apache=../apache_1.3.4 --enable-track-vars
APACHE 1.3.4 CONFIGURED: ./configure --prefix=/opt/apache --activate-module=src/modules/php3/libphp3.a

(gdb) run -X -f /opt/apache/etc/httpd.conf
Program received signal SIGSEGV, Segmentation fault.
0x7af45680 in _strlen ()
(gdb) bt
#0  0x7af45680 in _strlen ()
#1  0x7ae949e4 in mysql_query ()
#2  0x7ae9344c in mysql_real_connect ()
#3  0x7ae948ac in mysql_connect ()
#4  0x739e8 in php3_mysql_do_connect (ht=0x40084d68, return_value=0x40007560, 
    list=0x4001f3a8, plist=0x40018f28, persistent=0) at functions/mysql.c:589
#5  0x73c24 in php3_mysql_connect (ht=0x40084d68, return_value=0x40007560, 
    list=0x4001f3a8, plist=0x40018f28) at functions/mysql.c:638
#6  0x37f04 in cs_functioncall_post_variable_passing ( function_name=0x7b03b788, phpchar=0x7b03c3f4)
    at control_structures_inline.h:930
#7  0x3bef0 in phpparse () at language-parser.y:534
#8  0x345ec in php3_parse (yyin=0x7aeb0a10) at main.c:1474
#9  0x34b00 in apache_php3_module_main (r=0x40044428, fd=19, display_source_mode=0,preprocessed=0)
     at main.c:1854
#10 0x30220 in send_php3 (r=0x40044428, display_source_mode=0, preprocessed=0,                         filename=0x40044e70 "/opt/apache/share/htdocs/Sical/index.phtml")   at mod_php3.c:245
#11 0x30304 in send_parsed_php3 (r=0x40044428) at mod_php3.c:261
#12 0xb3a14 in ap_invoke_handler (r=0x40044428) at http_config.c:505
#13 0xcf1c8 in process_request_internal (r=0x40044428) at http_request.c:1201
#14 0xcf250 in ap_process_request (r=0x40044428) at http_request.c:1217
#15 0xc4148 in child_main (child_num_arg=0) at http_main.c:3852
#16 0xc439c in make_child (s=0x40022568, slot=0, now=919701791) at http_main.c:3924
#17 0xc45b0 in startup_children (number_to_start=5) at http_main.c:4004
#18 0xc4f3c in standalone_main (argc=4, argv=0x7b03ae08) at http_main.c:4291
#19 0xc5c18 in main (argc=4, argv=0x7b03ae08) at http_main.c:4592


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:28 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC