Bug #2566 | SIGPIPE on reconnect from MyODBC needs mutex | ||
---|---|---|---|
Submitted: | 29 Jan 2004 18:18 | Modified: | 9 Nov 2007 15:33 |
Reporter: | Boyd Gerber | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51.07 | OS: | Any (All) |
Assigned to: | CPU Architecture: | Any |
[29 Jan 2004 18:18]
Boyd Gerber
[29 Jan 2004 18:21]
Boyd Gerber
gzip tar files for this problem
Attachment: dbtest.tar.gz (application/x-gunzip, text), 13.29 KiB.
[29 Jan 2004 20:30]
Boyd Gerber
http://www.bitmechanic.com/mail-archives/modperl/Mar1999/0320.html
[4 Oct 2007 14:35]
Susanne Ebrecht
Hi Boyd, I tried a lot to reproduce the scenario. By using MySQL 5.1.21, libiodbc 3.52.5 and MyODBC 3.51.21 and I can't reproduce it. Also I am not really understand, what should happened after 10 hours waiting and what the specific error should be? Unfortunately the given mail archive link don't exist anymore and it seems, that there were more information written, that could be helpful. Do you have a newer link for me or can you try this again with the newer versions of MySQL and MyODBC and give us the feedback? Kind Regards, Susanne
[5 Nov 2007 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[8 Nov 2007 10:21]
Susanne Ebrecht
I can reproduce this by using MyODBC v5.1, MySQL server 5.1.22 on FreeBSD. I'll attach my C test programm and the trace from last night. I started round about at 19:15 in the evening and stopped it at 8:30 in the morning. It fails during SQLPrepare (line 402 at the C programm). [08S01][[MySQL][ODBC 5.1 Driver][mysqld-5.1.22-rc]MySQL server has gone away] For comparing, I'll also add a trace file, that I got today morning, after a second run of the programm and stopping this after round about 1 minute (runs successfully). The differences at the trace files start at line 1105. I'll make more tests, to make sure, that this is really a MyODBC problem and not something else. Also I'll make a test with the newest v3.51 version but I expect the same behaviour there.
[8 Nov 2007 10:24]
Susanne Ebrecht
this is the C test programm. Compiled with gcc -g -Wall -I /usr/local/include/ -o bug2566 bug2566.c -L /usr/local/lib -liodbc
Attachment: bug2566.c (text/x-csrc), 14.73 KiB.
[8 Nov 2007 10:25]
Susanne Ebrecht
this is the trace file after stopping the programm after more then 10 hours (occurs error)
Attachment: bugs.odbc5.mysql.20071107-192552.trace (application/octet-stream, text), 34.33 KiB.
[8 Nov 2007 10:27]
Susanne Ebrecht
Trace after stopping after round about one minute. The differences of both trace files start at line 1105 at the files
Attachment: bugs.odbc5.mysql.20071108-104136.trace (application/octet-stream, text), 36.29 KiB.
[8 Nov 2007 16:35]
Susanne Ebrecht
This is not a bug. MySQL don't have unlimited connections. The connection got terminated after wait_timeout seconds. The default for wait_timeout is 8 hours. MyODBC doesn't support an automatic re-connect.
[9 Nov 2007 15:33]
Susanne Ebrecht
After testing under HP-UX, I really can't reproduce a SIGPIPE. The only error I get, is a typical error, that occurs after wait_timeout. It seems, this bug has been fixed by accident during the last time.