Bugs item #1810879, was opened at 2007-10-10 17:41
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1810879&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Phil D'Amore (ptdamore)
>Assigned to: Bogdan (bogdan_iancu)
Summary: Occasional SEGV in flatstore flat_db_insert

Initial Comment:
The flat_db_insert function currently grabs the file handle from the db 
connection *before* performing file rotation.  This works most of the time 
because the underlying fopen() returns the same address in the FILE *.  
Sometimes, however, the address changes. In that case, the file handle grabbed 
is invalid, and either the next record does not get written, or in some cases, 
it actually crashes the server.

Taking the FILE * after rotation cleared up a big headache for me in my 1.1.1 
installation.  It still seems applicable in HEAD.  Attached is a patch against 
HEAD that does it.  I believe it fixes the problem described in:

http://openser.org/pipermail/devel/2006-August/003570.html

----------------------------------------------------------------------

>Comment By: Bogdan (bogdan_iancu)
Date: 2007-10-20 21:50

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Hi Phil,

You are right - thanks for the patch - I just applied it on SVN.

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1810879&group_id=139143

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to