Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: uh... segfault. mod_perl, Apache::DBI and other atrocities.

by chromatic (Archbishop)
on Jul 05, 2001 at 01:29 UTC ( #93950=note: print w/replies, xml ) Need Help??


in reply to uh... segfault. mod_perl, Apache::DBI and other atrocities.

You don't need to re-use modules and pragmas, though I doubt that's causing your troubles. I'd remove them from within your subroutines anyway, because they're not doing anything for you. (Move 'use DBI' to the start of the program, or say require DBI instead.)

I saw segfaults with mod_perl due to the interaction of XML::Parser and the trimmed-down Expat shipped with Apache. I had to rebuild Apache and disable Expat linkings (with 1.3.20, it's something like --disable-rule=EXPAT) to fix it, but it worked correctly after that.

I'd suggest revising your code, testing again, testing with a very very simple "Hello, World!" mod_perl program, and then trying the recompile. Unless someone comes up with a better suggestion, that is.

  • Comment on Re: uh... segfault. mod_perl, Apache::DBI and other atrocities.

Replies are listed 'Best First'.
Re: Re: uh... segfault. mod_perl, Apache::DBI and other atrocities.
by vaevictus (Pilgrim) on Jul 05, 2001 at 03:09 UTC
    I'll try rebuilding without Expat... And ... 1. I removed all the extra uses and moved use dbi (it was like that cause i copied out of a package... and of course it still produces the same segfaults...
Re: Re: uh... segfault. mod_perl, Apache::DBI and other atrocities.
by blakem (Monsignor) on Jul 05, 2001 at 22:52 UTC
    Although recompiling apache is a somewhat involved solution (depending on how it got compiled in the first place) I would second the recommendation. I also have run into segfault issues with XML::Parser and the built in apache expat.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://93950]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-05-26 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (93 votes). Check out past polls.

    Notices?