Bug #1429 Segfault in mysql_stmt_close (embedded)
Submitted: 29 Sep 2003 4:35 Modified: 20 Feb 2004 0:17
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S3 (Non-critical)
Version:4.1.1 OS:
Assigned to: Alexey Botchkov CPU Architecture:Any

[29 Sep 2003 4:35] Georg Richter
mysql_stmt_close segfaults when it will be called after mysql_close, cause stmt->mysql still 
has a "valid" address. 
There is also an existing (closed) bug report for libmysqlclient, Venu fixed it long time ago. 

How to repeat:

Suggested fix:
set stmt->mysql to NULL in stmt_close()
[20 Feb 2004 0:17] Alexey Botchkov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at

Additional info:

bk commit - 4.1 tree (hf:1.1724) 20 Feb 2004