[OpenSER-Devel] [ openser-Bugs-1810879 ] Occasional SEGV in
flatstore flat_db_insert
SourceForge.net
noreply at sourceforge.net
Wed Oct 10 16:41:11 CEST 2007
Bugs item #1810879, was opened at 2007-10-10 10:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Phil D'Amore (ptdamore)
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1810879&group_id=139143
More information about the Devel
mailing list