findArgs OS method seems to fail in a Cray system.
Originally reported by HLRS:
Joseph Schuchart: I am observing Segfaults in OmpSs during startup when running on our Cray machine. Unfortunately, I cannot properly debug this issue with DDT as DDT complains that the crash happens before MPI_Init is called. I get an error from Valgrind that matches the position DDT reports as the crash site (attaching BackTrace)
==35779== Invalid read of size 8
==35779== at 0x4D38E8C: findArgs(long*, char***) (os.cpp:59)
==35779== by 0x4D38EE4: nanos::OS::init() (os.cpp:67)
==35779== by 0x4CA0FFD: nanos::System::System() (system.cpp:126)
==35779== by 0x4CAFC2E: __static_initialization_and_destruction_0(int, int) (system.cpp:63)
==35779== by 0x4CAFC64: _GLOBAL__sub_I_system.cpp (system.cpp:1871)
==35779== by 0x400EB99: call_init.part.0 (in /lib64/ld-2.22.so)
==35779== by 0x400EC82: _dl_init (in /lib64/ld-2.22.so)
==35779== by 0x4001229: ??? (in /lib64/ld-2.22.so)
==35779== Address 0xe3b13c0 is 16 bytes before a block of size 3,568 alloc'd