sora666 / simplesamlphp

Automatically exported from code.google.com/p/simplesamlphp
0 stars 0 forks source link

Custom error handling segs faults on PHP 5.1 or older #196

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a system with PHP 5.1
2. Update simplesamlphp to revision newer than 1643
3. Try to access the index page

What is the expected output?

Normal welcome page of SimpleSAMLPHP

What do you see instead?

A blank page. And in Apache logs I see a line like this:

child pid 13149 exit signal Segmentation fault (11)

Please use labels and text to provide additional information.

This is due the following bug in PHP itself:

http://bugs.php.net/bug.php?id=41209

which has been fixed in PHP 5.2.

I'll attach a patch that fix this issue.

Original issue reported on code.google.com by lorenzo....@gmail.com on 10 Sep 2009 at 5:11

Attachments:

GoogleCodeExporter commented 8 years ago
Same segfault on debian / php 5.2.6-1+lenny3. The patch from Lorenzo fixes the 
issue
by removing calls to custom error handling. (version check needs to be updated)

Original comment by nicolas....@gmail.com on 16 Sep 2009 at 9:04

GoogleCodeExporter commented 8 years ago
I am currently running php 5.2.6-1+lenny3, and have never seen this crash. What 
is 
necessary to trigger it?

Original comment by olavmrk@gmail.com on 16 Sep 2009 at 11:19

GoogleCodeExporter commented 8 years ago
I had this issue with the openid module : customer.php triggers the crash.

Original comment by nicolas....@gmail.com on 16 Sep 2009 at 11:35

GoogleCodeExporter commented 8 years ago
Could you test the attached patch, and see if it still crashes?

Original comment by olavmrk@gmail.com on 16 Sep 2009 at 12:42

Attachments:

GoogleCodeExporter commented 8 years ago
I cannot fix this bug without feedback, since I do not have this problem.

Original comment by olavmrk@gmail.com on 6 Oct 2009 at 7:39

GoogleCodeExporter commented 8 years ago
Sorry, I have no free time right now to test this again. I hope to be able to 
give
feedback in the next weeks.

Original comment by nicolas....@gmail.com on 6 Oct 2009 at 8:11

GoogleCodeExporter commented 8 years ago
Considering that we have more or declared PHP version < 5.2 to be unsupported 
by simpleSAMLphp, I am closing this bug.

Original comment by olavmrk@gmail.com on 22 Sep 2010 at 8:28