Enabling SSL makes apache2 segfault

Bug #62471 reported by Bart Verwilst
2
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Fix Released
Undecided
Soren Hansen

Bug Description

When apache2 is running without SSL enabled,everything is fine. As soon as i enable ssl and restart apache, it segfaults. strace output attached ( bottom part of it )

Revision history for this message
Bart Verwilst (verwilst) wrote :
Revision history for this message
Bart Verwilst (verwilst) wrote :
Revision history for this message
Bart Verwilst (verwilst) wrote :

Our other server started segfaulting too when ssl is enabled.. We are now unable to provide ssl certificates to our customers.. Any feedback on this please?

Thanks a lot!

If there is anything i can do to help, please let me know!

Revision history for this message
Scott Henson (scotth) wrote :

Are you running php? It would seem that apache2+mod_ssl+php causes some problems. Or at least that is what Ive been able to glean from google. I'd also check that /dev/urandom is working as apache seems to be dying just after accessing it.

Revision history for this message
Bart Verwilst (verwilst) wrote :

I'm not running mod_php, but php-cgi, with suphp..
Also, i found a hackish workaround for it..
When i do this:

/etc/init.d/apache2 stop
mv /etc/apache2/sites-enabled /etc/apache2/sites-enabled.old
mkdir /etc/apache2/sites-enabled
/etc/init.d/apache2 start
rm -r /etc/apache2/sites-enabled
mv /etc/apache2/sites-enabled.old /etc/apache2/sites-enabled
/etc/init.d/apache2 reload

Everything works just fine.
One host has 1000+ virtualhosts, the other 700+.
The second worked fine until recently ( probably when a certain number of virtualhosts were reached. )
So it seems mod_ssl can't handle that many virtualhosts when it initialises, therefor crashes.. once it's enabled, it doesn't seem to mind so many hosts...

Revision history for this message
Bart Verwilst (verwilst) wrote :

Could it be possible to update apache2 to 2.0.59 for Feisty? I'll check to see wether the bug is fixed in this release.. Thanks!

Revision history for this message
Bart Verwilst (verwilst) wrote :

It seems apache2.2 is already in debian testing.. Might be a good time to switch... ;)

Revision history for this message
Soren Hansen (soren) wrote :

Could you please verify that this is fixed in Feisty? Thank you!

Changed in apache2:
assignee: nobody → shawarma
status: Unconfirmed → Needs Info
Revision history for this message
Bart Verwilst (verwilst) wrote :

Never encountered the bug anymore.. you can consider it fixed :P

Revision history for this message
Mathias Gug (mathiaz) wrote :

Closing the bug as requested.

Changed in apache2:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.