Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#73 Fix segfault in CPU

Unstable (example)
closed-accepted
nobody
None
5
2014-03-25
2014-02-07
sachahony
No

There is a crash on my machine when I run the CPU routine. I believe it is due to a type mismatch. I resolved the issue by applying the attached patch.

1 Attachments

Discussion

  • Your patch is empty

     
  • giloo
    giloo
    2014-02-07

    does not look empty to me...

     
  • There is an apparently relevant comment in initsysvar.cpp:

    789     //if use DLong64 here, please update basic_pro.cpp (function cpu()) and
    790     //add an 'assureLong64Kw()' function in envt.cpp. Otherwise the program will
    791     //crash in cpu().
    792     cpuData->NewTag("TPOOL_MIN_ELTS", new DLongGDL( CpuTPOOL_MIN_ELTS));
    793     cpuData->NewTag("TPOOL_MAX_ELTS", new DLongGDL( CpuTPOOL_MAX_ELTS));
    

    HTH,
    S.

     
  • Alain C.
    Alain C.
    2014-03-25

    Thanks !

    in fact, CPU procedure was broken. Corrections have been applied.

    tested on various OS and cpu type, please open a bug report if problems found.

    Alain

     
  • Alain C.
    Alain C.
    2014-03-25

    • status: open --> closed-accepted