#2565 crash in binary scan - VC++ 5.2 Compiler Bug

obsolete: 8.5a0
closed-invalid
9
2004-01-08
2004-01-06
No

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.

Discussion

  • Donal K. Fellows

    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.)

     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    Can't VC++5.2 correctly compile shifts of wide unsigned
    values?! That's worrying...

     
  • Vince Darley

    Vince Darley - 2004-01-07

    Logged In: YES
    user_id=32170

    It appears as if it can't, at least with optimisations on
    (since debug build works ok).

     
  • Vince Darley

    Vince Darley - 2004-01-07

    diff -u with windows eols

     
  • Vince Darley

    Vince Darley - 2004-01-07

    Logged In: YES
    user_id=32170

    Here's a patch to fix the problem (by turning off
    optimisations for the given function).

     
  • Vince Darley

    Vince Darley - 2004-01-07

    Logged In: YES
    user_id=32170

    Found a vc++ update on msdn.com which appears to fix the
    compiler bug. So, closing this.

     
  • Vince Darley

    Vince Darley - 2004-01-07
    • status: open --> closed-invalid
     
  • Donal K. Fellows

    • priority: 5 --> 9
    • summary: crash in binary scan --> crash in binary scan - VC++ 5.2 Compiler Bug
     
  • Donal K. Fellows

    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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks