Bug #3271 myisamchk -r segfaults
Submitted: 23 Mar 2004 9:03 Modified: 31 May 2004 10:04
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: MyISAM storage engine Severity:S3 (Non-critical)
Version:5.0 OS:Any (all)
Assigned to: Alexey Botchkov CPU Architecture:Any

[23 Mar 2004 9:03] Guilhem Bichot
Description:
we did something wrong in the 5.0 code (not in older versions) in 2003, so this crash exists in 5.0.0

How to repeat:
just myisamchk -r some file (repair with sort).

Suggested fix:
will fix it today.
[23 Mar 2004 9:25] Guilhem Bichot
Fixing it is too complicated for me as the type of THD::killed changed in 5.0.
Holyfoot, this bug is now assigned to you. Its origin is in your changesets 
ChangeSet 1.1494.32.5 2003/03/31 13:39:46 hf@genie.(none)
  SCRUM
  two KILL commands implementation (version 2)
and
ChangeSet 1.1494.44.10 2003/04/08 19:18:33 hf@deer.mysql.r18.ru
  SCRUM
  two KILL versions
  code trimming with headquarter's suggestions 
both in the 5.0 tree.
A testcase for the bug is:
just try myisamchk -r on any MYI file, it segfaults. Problem is in killed_ptr().
[28 May 2004 18:25] Alexey Botchkov
bk commit - 5.0 tree (hf:1.1688) BUG#3271
[31 May 2004 10:04] 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
    http://www.mysql.com/doc/en/Installing_source_tree.html