#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

  • Orion Poplawski

    Orion Poplawski - 2014-02-07

    Your patch is empty

     
  • giloo

    giloo - 2014-02-07

    does not look empty to me...

     
  • Sylwester Arabas

    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
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks