You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Michael Turley <sa...@yahoo.com> on 2001/03/05 13:44:06 UTC

Apache, mod_perl, mysql, php segfault!

Hello, anyone come across a problem where they get 
"exit signal Segmentation fault (11)" when they try to
connect to mysql via mod_perl?

I am getting it even on simple connect and disconnect
- I can access Oracle via mod_perl. Neither standard
standalone scripts or php have problems communicating
to mysql.I heard something that there could be some
sort of static linking problem with mysql when apache
has both php and mod_perl modules activated. Any ideas
would be greatly appreciated as I am stumped.

I am using apache 1.3.12, mod_perl 1.25, php 4.0.3pl1
and mysql 3.23.33

from mydbi trace log: 

    DBI 1.14-nothread dispatch trace level set to 4
    Note: perl is running without the recommended perl
-w option
    -> DBI->connect(DBI:mysql:test;host=localhost,
root, ****)
    -> DBI->install_driver(mysql) for perl=5.00503
pid=27862 ruid=99 euid=99
       install_driver: DBD::mysql loaded (version
2.0415)
    New DBI::dr (for DBD::mysql::dr, parent=, id=)
   
dbih_setup_handle(DBI::dr=HASH(0x8459418)=>DBI::dr=HASH(0x83dbbc8),
DBD::mysql::dr, 0, Null!)
    dbih_make_com(Null!, DBD::mysql::dr, 84)
    <- install_driver= DBI::dr=HASH(0x8459418)
    -> connect for DBD::mysql::dr
(DBI::dr=HASH(0x8459418)~0x83dbbc8
'test;host=localhost' 'root' **** HASH(0x8432474))
    New DBI::db (for DBD::mysql::db,
parent=DBI::dr=HASH(0x83dbbc8), id=HASH(0x84329c8))
   
dbih_setup_handle(DBI::db=HASH(0x82a83c8)=>DBI::db=HASH(0x836db54),
DBD::mysql::db, 82c3a10, HASH(0x84329c8))
    dbih_make_com(DBI::dr=HASH(0x83dbbc8),
DBD::mysql::db, 520)

=====
Mr. Michael Turley
Gracious winner, Generous lover, All round great guy.

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Re: Apache, mod_perl, mysql, php segfault!

Posted by Matt Sergeant <ma...@sergeant.org>.
On Mon, 5 Mar 2001, Michael Turley wrote:

> Hello, anyone come across a problem where they get
> "exit signal Segmentation fault (11)" when they try to
> connect to mysql via mod_perl?

This is a known issue IIRC. Simply re-compile PHP without the built-in
MySQL support (you can still connect to MySQL).

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\