logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: PHP bug 55470 Crash when calling openssl_sign under mod_php Page 1, 2  Next
Author
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Sun 21 Aug '11 13:24    Post subject: PHP bug 55470 Crash when calling openssl_sign under mod_php Reply with quote

Hi all

I filed https://bugs.php.net/bug.php?id=55470 last night, which is a PHP crash that occurs only when running under Apache.

However, upon further investigation I have discovered that that while the PHP crash is reproducible using Apache 2.2.19, it doesn't crash when running under Apache 2.2.17 (same machine, same httpd.conf, same PHP) which makes me think that it's really an Apache bug.

Can anyone else reproduce this or have any ideas?
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Sun 21 Aug '11 13:41    Post subject: Reply with quote

With version of PHP ?
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Sun 21 Aug '11 14:27    Post subject: Reply with quote

5.3.7
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Sun 21 Aug '11 18:26    Post subject: Reply with quote

You use accelerators ?

echo base64_encode($signature); // coments for test
upgrade fcgid to d
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Sun 21 Aug '11 18:32    Post subject: Reply with quote

I think your post got cut off?

I do use APC, but the bug exists even when it is disabled.

I use mod_php
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 22 Aug '11 2:41    Post subject: Reply with quote

try mod_fcgid - so if php crash will be respawn
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 22 Aug '11 12:04    Post subject: Reply with quote

[22-Aug-2011]

Due to unfortunate issues with 5.3.7 (see bug#55439) users should wait with upgrading until 5.3.8 will be released (expected in few days).

https://bugs.php.net/bug.php?id=55439

So i think its more buqqy with crypt liblary


Last edited by Kanashii on Sat 03 Nov '12 10:53; edited 2 times in total
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Tue 23 Aug '11 23:22    Post subject: Reply with quote

It's not the PHP version - I've tested the last few dot releases, and they're all the same.

mod_fcgid is obviously something to investigate for the future, but changing SAPIs isn't simple (and according to my reading mod_fcgid doesn't play nicely with APC)
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Tue 30 Aug '11 12:18    Post subject: Reply with quote

According to a comment in the PHP bug, it's because PHP is compiled with openssl 0.9, and the new Apache Lounge builds use openssl 1.0.

It doesn't crash under the older Apache versions because those were also built with openssl 0.9...
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Tue 30 Aug '11 12:28    Post subject: Reply with quote

Contacted PHP dev to look at this post.

Thanks,

Steffen
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Tue 30 Aug '11 20:36    Post subject: Reply with quote

Answer from PHP dev is:

The reason why php is not updating to 1.0 is the change in the way it works and some incompatibilities with 3rd party. Planned for final 5.4.0.

I going coming days to make a 2.2.20 with latest OpenSSL 0.9.

Steffen
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Tue 30 Aug '11 23:03    Post subject: Reply with quote

Thanks!
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Wed 31 Aug '11 10:32    Post subject: Reply with quote

Please try Removed

Replace the included files, new mod_ssl is not needed.

When ok, then I make it official.

To be sure, only the issue when running php as module and not with mod_fcgid ?


Steffen
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Wed 31 Aug '11 11:12    Post subject: Reply with quote

I can confirm the new files fix the crash under mod_php for me (thanks again).

I don't use mod_fcgid, but since that separates the PHP process from the Apache one I don't think it would affected by the incompatibility. There's a simple testcase in the PHP bug though that someone could run to be sure?
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Sun 04 Sep '11 19:20    Post subject: Reply with quote

Are you sure that mod_ssl doesn't need to be replaced as well?

I ask, because since deploying Firefox gives me the following error message on an intermittent basis:

SSL received an unexpected New Session Ticket handshake message.

(Error code: ssl_error_rx_unexpected_new_session_ticket)

I've therefore downgraded again.

Thanks in advance
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Sun 04 Sep '11 21:15    Post subject: Reply with quote

I shall build coming days a complete version based on OpenSSL_0.9.8r, inlcuding mod_ssl.

Steffen
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Mon 05 Sep '11 12:41    Post subject: Reply with quote

Build with OpenSSL_0.9.8r available at the download page.

Please tell how it goes.

Steffen


Last edited by admin on Tue 06 Dec '11 16:08; edited 1 time in total
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Mon 05 Sep '11 15:55    Post subject: Reply with quote

I've put into production - will let you know in a couple of days.

Thanks again for your assistance.
Back to top
dvdoug



Joined: 20 Aug 2011
Posts: 11

PostPosted: Thu 08 Sep '11 10:42    Post subject: Reply with quote

I've had the new build in production for a few days now, and it seems completely stable. Looks like a complete build with 0.9.8 is the way to go.
Back to top
gdprogrammer59



Joined: 06 Dec 2011
Posts: 16
Location: Ellenton, FL

PostPosted: Tue 06 Dec '11 15:10    Post subject: Reply with quote

I have posted a similar message on mozilla.org forum so please excuse the duplicity but I am in need of some guidance.

Since installing the ApacheLounge build of Apache 2.2.21 with OpenSSL 0.9.8r, the Apache to PHP no longer hangs up (requiring a "long" restart of Apache) but now I get this message from Firefox (version 8.0.1 and no, I haven't tried older versions) ssl_error_rx_unexpected_new_session_ticket. Retry (which requires a resend of POST data) will eventually get it to accept without the error message. I am using a multi-domain SSL certificate but I didn't get this error when running Apache 2.2.21 with OpenSSL 0.9.8r from Apache.org.

An interesting note about the problem. I have a test domain that only has a single domain associated with it and I don't get this error at all. And it seems that if I get Firefox to finally accept it that as long as I continue to use that domain (you can access the domain from either domain.com or www.domain.com) that the problem doesn't happen unless you switch from www.domain.com to domain.com or vice versa.

Do you have any suggestions or things to check and/or verify?

Does it make sense to try the beta versions of PHP and/or Apache?

Thank you for any help you can provide.
Back to top


Reply to topic   Topic: PHP bug 55470 Crash when calling openssl_sign under mod_php View previous topic :: View next topic
Post new topic   Forum Index -> Other Software Page 1, 2  Next