Issue report - crash on view status

[expired user #5423]'s profile image [expired user #5423] posted 13 years ago in General Permalink
Hello,

I want to let you know this issue that I found using Heidi.
When I connect to my server and go to tab "status", the app crashes with the report that I copy below.

The SQL executed by Heidi was (and then crashes):
/* Connecting to ******** via TCP/IP, username #######, using password: Yes ... */
/* Connected. Thread-ID: 257155 */
/* Characterset: utf8 */
SHOW STATUS LIKE 'Uptime';
SHOW VARIABLES LIKE 'version_compile_os';
SHOW VARIABLES LIKE 'hostname';
SHOW TABLES FROM `information_schema`;
SELECT * FROM `information_schema`.`SCHEMATA`;
SHOW /*!50002 GLOBAL */ STATUS;

Crash report:
date/time : 2010-12-30, 14:04:37, 61ms
computer name : PORTATIL
user name : Sergio <admin>
registered owner : Sergio
operating system : Windows Vista Service Pack 2 build 6002
system language : Spanish
system up time : 2 days 18 hours
program up time : 20 seconds
processors : 2x Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz
physical memory : 831/3062 MB (free/total)
free disk space : (C:) 8,88 GB
display mode : 1440x900, 32 bit
process id : $1630
allocated memory : 48,57 MB
executable : heidisql.exe
exec. date/time : 2010-11-20 18:49
version : 6.0.0.3603
compiled with : Delphi 2010
madExcept version : 3.0k
callstack crc : $2f11a96b, $c53cd9f1, $c53cd9f1
exception number : 1
exception class : EInvalidOp
exception message : Invalid floating point operation.

main thread ($1e50):
004047ce heidisql.exe System 548 +0 @TRUNC
0074648f heidisql.exe helpers 837 +2 MakeInt
006d59ab heidisql.exe Main 7943 +21 TMainForm.ListStatusBeforePaint
0061c0a3 heidisql.exe VirtualTrees TBaseVirtualTree.DoBeforePaint
0062a9d3 heidisql.exe VirtualTrees TBaseVirtualTree.PaintTree
77a65b16 SHLWAPI.dll QISearch
00622c44 heidisql.exe VirtualTrees TBaseVirtualTree.Paint
00544f4b heidisql.exe Controls TCustomControl.PaintWindow
0053f6c9 heidisql.exe Controls TWinControl.PaintHandler
0053fea8 heidisql.exe Controls TWinControl.WMPaint
00544ee5 heidisql.exe Controls TCustomControl.WMPaint
00619b3d heidisql.exe VirtualTrees TBaseVirtualTree.WMPaint
0053ac48 heidisql.exe Controls TControl.WndProc
0053b56e heidisql.exe Controls TControl.WMMouseMove
0053ac48 heidisql.exe Controls TControl.WndProc
0053f510 heidisql.exe Controls TWinControl.WndProc
00625518 heidisql.exe VirtualTrees TBaseVirtualTree.WndProc
0053ebb0 heidisql.exe Controls TWinControl.MainWndProc
0049a5dc heidisql.exe Classes StdWndProc
77975dab ntdll.dll KiUserCallbackDispatcher
7787d0e7 kernel32.dll BaseThreadInitThunk

My environment:
Server: CentOS 5.4 x86_64 (Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1)
Client: HeidiSQL 6.0.0.3603

I connect to my server using SSL (Require SSL in grant user)

must I report a bug ?

Thanks a lot
Sergio
ansgar's profile image ansgar posted 13 years ago Permalink
Please update to the latest build and report back if the problem persists.
[expired user #5423]'s profile image [expired user #5423] posted 13 years ago Permalink
Yes, the problem persists with release 3633
ansgar's profile image ansgar posted 13 years ago Permalink
Ok thanks. So there is some value in your SHOW STATUS result which breaks helpers:MakeInt() . Hm if only I knew which value that is, or could reproduce that. You don't have a feeling which of the status rows could cause that? Probably some large integer or some float with huge number of decimals?
[expired user #5423]'s profile image [expired user #5423] posted 13 years ago Permalink
The biggest integer in the result is 18446744073709551615
This number is the value for Ssl_verify_depth and Ssl_ctx_verify_depth

I suspect it may be the conflicting value, since the error occurs when the connection is over SSL.
When the connection is without SSL, there is no error in the status tab.

Thanks for your support anse
Code modification/commit from ansgar.becker, 13 years ago, revision 6.0.0.3635
Large numbers exceeding Int64 range in SHOW STATUS result can cause an EInvalidOp exception in Trunc(). Catch this exception. See http://www.heidisql.com/forum.php?t=7409
ansgar's profile image ansgar posted 13 years ago Permalink
Should be fixed in r3635
[expired user #5423]'s profile image [expired user #5423] posted 13 years ago Permalink
Anse many thanks, status now works great!

Please login to leave a reply, or register at first.