[dev] Apache segfaulting on login

Michael M Slusarz slusarz at mail.curecanti.org
Fri Nov 5 07:58:59 PST 2004


Quoting Rick Emery <rick at emery.homelinux.net>:

> After a CVS update this morning, Apache segfaults when I try to log 
> in. Before
> this morning, I updated recently, so I know it was a recent commit that was
> causing me problems. Looking back through the cvs list postings, I saw that
> some string handling functions were causing Michael some pain, so I removed
> the strcasecmp calls from framework/IMAP/IMAP/Tree.php, but I'm still having
> the problem.
>
> Unfortunately, I haven't been successful in generating a backtrace (I 
> followed
> the instructions on the php web site, but can't get it to work; "gdb
> /usr/sbin/httpd" seems to start OK, but the browser reports "connection
> refused").
>
> So, before I go any further trying to figure out what's going on, I thought
> I'd check to see if anybody else was having problems (haven't seen anything
> posted so far, so I guess not :-)

Confirm.  This is *still* related to that uksort() call in IMAP_Sort:: - I
thought I had it figured out last night but today I logged in and it is
segfaulting again.  I quite honestly am out of ideas as to why this is
occurring.  I would hate to scrap uksort() for a hackish workaround 
solution if
the problem is something in our code.  But my only guess as to why the 
segfaults
are occurring is there has to be a bug in either uksort() or the fact that we
are calling uksort via a bunch of references and the fact that it is using a
reference itself is tickling some sort of obscure, memory allocation bug in
PHP.  But that is a wild guess.

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the dev mailing list