2xlp has asked for the wisdom of the Perl Monks concerning the following question:

Background- I'm using Apache::Session and the Postgres module ( latest versions of all ) under mod_perl 2

Whenever I try to tie a session var on my laptop, modperl segfaults. This is relatively new -- i have no idea when/why this started. This only happens on my ibook osx 10.4 travel machine; it does not happen on my g5 10.4 workstation, my ubuntu & freebsd dev boxes, or any of my freebsd production machines.

there's a small chance this happend because of an osx upgrade; however the os is the same version as the g5 desktop. i think i've reinstalled everything except for perl, which i really don't want to rebuild, for fear of screwing up the laptop.

can anyone offer some pointers on debugging this somehow? maybe someone had an issue with this before? its an old ibook, it doesn't seem have enough power to handle doing a gdb stack trace under mod_perl -- i've tried and it just hangs.

any pointers would be very much welcome, this is pissing me off; i'd like to work on some sections of code in the park this weekend, and I can't unless this is resolved.
  • Comment on tie w/Apache::Session keeps segfaulting on my laptop

Replies are listed 'Best First'.
Re: tie w/Apache::Session keeps segfaulting on my laptop
by shmem (Chancellor) on Jun 26, 2007 at 23:20 UTC
    there's a small chance this happend because of an osx upgrade; however the os is the same version as the g5 desktop. i think i've reinstalled everything except for perl, which i really don't want to rebuild, for fear of screwing up the laptop.

    Chances are that you upgraded mod_perl and/or the postgres libs, but are using the old perl libraries, so the old shared object files are not usable.. I guess you should upgrade perl too, from your OS X upgrade bundle; or maybe it suffices to rebuild the postgres DBD.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      dbd runs fine. its just the tie.

      your posting pointed me in another direction though -- i tried doing a tie using apache::session::file -- that caused a bus error too.

      I'm going to try and figure out if this is just tie, or tie under mod_perl. hopefully i'll get a chance to hit this problem tomorrow.