Bug #16475 crash in MYXResultSet::get(unsigned, unsigned, char*&, unsigned long&)
Submitted: 13 Jan 2006 6:29 Modified: 3 Oct 2006 9:08
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S1 (Critical)
Version:1.1.18 OS:MacOS (mac os x 10.4.4)
Assigned to: Vladimir Kolesnikov CPU Architecture:Any
Tags: Result Set

[13 Jan 2006 6:29] [ name withheld ]
Description:
Date/Time:      2006-01-13 01:22:28.422 -0500
OS Version:     10.4.4 (Build 8G32)
Report Version: 3

Command: MySQL Query Browser
Path:    /Applications/MySQL Query Browser.app/Contents/MacOS/MySQL Query Browser
Parent:  WindowServer [455]

Version: ??? (1.1.17)

PID:    24361
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0x05ed90e4

Thread 0 Crashed:
0   com.mysql.MySQLToolsCommon 	0x10020d8c MYXResultSet::get(unsigned, unsigned, char*&, unsigned long&) const + 180
1   com.mysql.MySQLToolsCommon 	0x100200f8 -[MQResultSetDataSource tableView:objectValueForTableColumn:row:] + 88
2   com.apple.AppKit           	0x9373e3f4 -[NSTableView _drawContentsAtRow:column:clipRect:] + 252
3   com.apple.AppKit           	0x9373de78 -[NSTableView drawRow:clipRect:] + 220
4   com.apple.AppKit           	0x9373dc34 -[NSTableView drawRowIndexes:clipRect:] + 108
5   com.apple.AppKit           	0x9373d2bc -[NSTableView drawRect:] + 1144
6   com.mysql.MySQLToolsCommon 	0x1001e624 -[MQTableView drawRect:] + 80
7   com.apple.AppKit           	0x936d1e78 -[NSView _drawRect:clip:] + 2128
8   com.apple.AppKit           	0x936d1438 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 404

How to repeat:
- intermittent bug, not deterministically reproducible
- execute a few queries that return large datasets (approx. 10000 rows x 15 columns)
- eventually, executing a query crashes query browser

Suggested fix:
look in MYXResultSet::get for potential null pointer bug
[16 Jan 2006 15:07] [ name withheld ]
still in 1.1.18
[26 Jan 2006 19:21] Jorge del Conde
I was able to repeat this using a "select * from table" query, where the table has 20,000 records and 20 columns.
[3 Oct 2006 9:08] Vladimir Kolesnikov
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 bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

(#22750 is duplicate if this one)