crash in binary scan - VC++ 5.2 Compiler Bug
Closed / Invalid871606ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-01-06 11:34:58
The latest cvs HEAD crashes with test binary-44.2:
binary scan lcTolleH w x
set x
(this is on Windows XP, release build. Curiously it
doesn't crash in the debug build. I'm using VC++ 5.2).
About 2 months ago there was no such crash.
dkfplain2004-01-06 20:51:30
Logged In: YES user_id=79902 Very strange; I can't see what's failing. (I can't build Tcl on XP, so I'm limited in what tests I can do.)
vincentdarleyplain2004-01-07 00:15:16
Logged In: YES user_id=32170 The bug was introduced in 1.13: http://cvs.sourceforge.net/viewcvs.py/tcl/tcl/generic/tclBinary.c?r1=1.12&r2=1.13
dkfplain2004-01-07 04:20:18
Logged In: YES user_id=79902 Can't VC++5.2 correctly compile shifts of wide unsigned values?! That's worrying...
vincentdarleyplain2004-01-07 17:00:08
Logged In: YES user_id=32170 It appears as if it can't, at least with optimisations on (since debug build works ok).
vincentdarleyplain2004-01-07 23:51:41
File Added - 72583: binary.patch Logged In: YES user_id=32170 Here's a patch to fix the problem (by turning off optimisations for the given function).
vincentdarleyplain2004-01-08 00:26:34
Logged In: YES user_id=32170 Found a vc++ update on msdn.com which appears to fix the compiler bug. So, closing this.
dkf Ticket [871606ffff]: 2 changes
[History diff]2004-01-08 16:16:20
dkfplain2004-01-08 16:18:00
Logged In: YES user_id=79902 Just adding a note here for people searching for a solution in the future. If you encounter this problem, the fix is to update your compiler.
Log in (anonymous is fine) to add a comment.
Attachments:
- binary.patch [download] added by vincentdarley on 2004-01-07 23:51:41. [details]