FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » Php Crashing
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Php Crashing [message #9582 is a reply to message #9581] Fri, 11 April 2003 20:01 Go to previous message
ScooterQ is currently offline  ScooterQ   United States
Messages: 25
Registered: June 2002
Location: Norcross, GA
Karma:
Junior Member
philip wrote on Fri, 11 April 2003 15:46

I would help and will attempt to cause the segfault but I'm a weak sysadmin and don't close these types of bugs. That and backtraces look like a bunch of gibberish to me.


I might be a bit stronger on the sysadmin side of things, but backtraces and debugger output is gibberish to me, too.

Quote:

It appears you're attempting to create a non-fudforum script to cause this segfault, is this true? Like does that use of putenv() by itself cause it? I wonder if this is a locale problem, I don't know this topic at all.


I can reproduce the problem by running compact messages with the script distributed with FUDForum 2.3.9RC1. The putenv() issue was suspect in the original issue, but there's no use of putenv() within compact.php. What I did was I made o copy of the compact.php script and removed all of the code. I then began adding things back until the segfault happened. Somewhere around line 110 the problem reoccurred.

Quote:

No application (in PHP or otherwise) should ever be able to cause a segfault so I don't think fudforum can even take partial blame here but only partial credit for causing it (so it can be fixed) Smile


Key word - should. Something is happening within that compact script that is causing seg faults on my server. I agree, if the function is considered legal in PHP, it shouldn't cause a seg fault. If it does, that's not the fault of the guys around here, but rather a PHP issue. The problem is that I'm not overly familiar with some of the functions used in the compact script (flush, db_lock). I keep hoping that one of the developers more familiar with the innards of the script can give me a couple of hints so that we can collectively fix the problem.

 
       echo "<br>Please wait while forum is being compacted.<br>This may take a while depending on the size of your forum.<br>\n";
        flush();

        define('__file_perms__', (($GLOBALS['FILE_LOCK']=='Y')?0600:0644));

        /* Normal Messages */
        echo "Compacting normal messages...<br>\n";
        flush();
        $stm = time();
        db_lock($GLOBALS['DBHOST_TBL_PREFIX'].'msg+, 
                '.$GLOBALS['DBHOST_TBL_PREFIX'].'thread+, 
                '.$GLOBALS['DBHOST_TBL_PREFIX'].'forum+, 
                '.$GLOBALS['DBHOST_TBL_PREFIX'].'replace+');
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: German admin panel?
Next Topic: Here is the dutch translation of the forum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 14:20:06 GMT 2024

Total time taken to generate the page: 0.05218 seconds