I was getting segfaults with mod_perl2 (1.99_10 on 2.0.48) on my development box today. After a lot of searching, it turns out it was because of a problem with Time::Piece.
I could recreate it by placing 'use Time::Piece::MySQL' in the startup.pl file. This would cause the server to segfault on startup. Time::Piece::MySQL has a BEGIN statement that calls 'strptime' in Time::Piece, and that was triggering the Segfault.
I thought it had to be mod_perl2, because Time::Piece worked fine on it's own and appeared to work under mod_perl1 as well, just not under mod_perl2.
However, it turns out that by re-compiling Time::Piece the problem went away. I was using a debian package libtime-piece-perl 1.08-2 and debian perl 5.8.1-4 (threaded).
Are you sure that both libtime-piece-perl and modperl were compiled with that same perl. is it possible that libtime-piece-perl was compiled against 5.8.0? In which case the issue is clear: 5.8.0 and 5.8.1 aren't binary compatible, and one has to recompile XS modules when moving to 5.8.1. That was of course not intentional and 5.8.2 (which will be released shortly) restores the binary compatibility with 5.8.0.
By reinstalling and recompiling Time::Piece using CPAN (still version 1.08), the problem went away.
[...] __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com