| View previous topic :: View next topic |
| Author |
Message |
bbrazell
Joined: 06 May 2007 Posts: 4
|
Posted: Sun May 06, 2007 14:59 Post subject: PHP Segmentation Fault |
|
|
I'm running the latest version of WinFbbSlide and am getting a PHP segmentation fault when any of the FbbSlide php pages are loaded. Here is some system information:
PHP Version: php5-5.2.0-12
Apache Version: apache2-2.2.3-20
Error message in /var/log/apache2/error_log:
[Sun May 06 07:49:01 2007] [notice] child pid 11343 exit signal Segmentation fault (11)
Is WinFbbSlide compatible with this version of PHP? Any idea how to get it working?
Thanks!
Bill |
|
| Back to top |
|
 |
GiPé Site Admin
Joined: 28 Sep 2003 Posts: 214 Location: Toulouse (France)
|
Posted: Sun May 06, 2007 19:25 Post subject: |
|
|
Bill,
Thanks for your report. Here, I use on my server PHP 5.2.0 with apache 2.2.3 on a suse linux 10.2
I'll try to make some more tests to see I am able to reproduce your problem.
Did you use a previous version of WinFbbSlide on your server ?
I'll keep you informed via the forum. |
|
| Back to top |
|
 |
bbrazell
Joined: 06 May 2007 Posts: 4
|
Posted: Sun May 06, 2007 21:59 Post subject: |
|
|
I was running fbbslide on Red Hat 9. I believe it used php4. I'm running OpenSUSE 10.2 now.
I wonder if there is something wrong with the index.php that is being generated that php5 doesn't like? Other php pages open up fine. Does anyone know how to increase the loglevel that php reports to apache so that I can hopefully find out what line it's failing on?
Thanks! |
|
| Back to top |
|
 |
GiPé Site Admin
Joined: 28 Sep 2003 Posts: 214 Location: Toulouse (France)
|
Posted: Mon May 07, 2007 05:48 Post subject: |
|
|
Yes there is certainly something wrong with PHP5. The server which runs the the site and the demonstration uses PHP4.
I have almost the same configuration here so we should find the problem.
I'll make the tests to morrow. |
|
| Back to top |
|
 |
GiPé Site Admin
Joined: 28 Sep 2003 Posts: 214 Location: Toulouse (France)
|
Posted: Mon May 07, 2007 18:46 Post subject: |
|
|
Bill,
You will find http://www.winfbbslide.org/Alpha/WinFbbSlide229-test2.exe
This version should fix the problem under PHP 5.2.0 - From this version of PHP a security fix gave a problem with WinFbbSlide.
I hope this will fix your problem.
Tell me if all is now OK. |
|
| Back to top |
|
 |
bbrazell
Joined: 06 May 2007 Posts: 4
|
Posted: Tue May 08, 2007 01:29 Post subject: |
|
|
Good news and bad news. The good news is that I no longer get the segmentation fault. The bad news is that the images aren't displayed. I can see the hierarchy on the left, but when I click on one of the albums, no images are shown that the hierarchy collapses. You can see for yourself here: http://brazell.dyndns.org/photos/index.php
Here is what the apache log shows: [Mon May 07 18:27:07 2007] [error] [client 192.168.1.200] PHP Notice: Undefined variable: txt in /srv/www/htdocs/photos/index.php on line 465, referer: http://brazell.dyndns.org/photos/index.php?d=Visitors
Here is what is on line 465: $txt .= "<div class=\"thb\"><table width=\"100%\">\n";
Thanks for your help with this.
Bill |
|
| Back to top |
|
 |
GiPé Site Admin
Joined: 28 Sep 2003 Posts: 214 Location: Toulouse (France)
|
Posted: Tue May 08, 2007 08:40 Post subject: |
|
|
Bill,
You will find http://www.winfbbslide.org/Alpha/WinFbbSlide229-test3.exe
I made more exaustive tests, but I had to make many changes in the PHP code to be compatible with 5.2.0.
Could you please test this new version and tell me if now all is correct. I hope not to have made regressions elsewhere in the code. |
|
| Back to top |
|
 |
bbrazell
Joined: 06 May 2007 Posts: 4
|
Posted: Wed May 09, 2007 00:53 Post subject: |
|
|
Hooray! It works fine now!
I'm not sure how you want to package it to work with both versions of PHP, or have separate code bases. All I know is that I'm very happy that you were able to get it working. Thank you very much!
Bill |
|
| Back to top |
|
 |
GiPé Site Admin
Joined: 28 Sep 2003 Posts: 214 Location: Toulouse (France)
|
Posted: Wed May 09, 2007 05:36 Post subject: |
|
|
Bill,
I have to check but the code should be down compatible with previous versions of PHP.
If you dont see anymore problem I'll distribute it as a 2.3 version. |
|
| Back to top |
|
 |
|