memory corruption error

Dear users and developers,

During the epw.x running (mpirun -np 4 ../../EPW/bin/epw.x -npool 4 < epw.in > epw.out) I have the following error:

[code:303wip60]*** Error in `/home/apd/qe-6.0/EPW/bin/epw.x’: malloc(): memory corruption: 0x00005601669bc620 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7fe6a0599bcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x7fe6a059ff96]
/lib/x86_64-linux-gnu/libc.so.6(+0x79059)[0x7fe6a05a2059]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7fe6a05a3f34]
/home/apd/qe-6.0/EPW/bin/epw.x(+0x2b9c4c)[0x56016363dc4c]
/home/apd/qe-6.0/EPW/bin/epw.x(+0xf42d5)[0x5601634782d5]
/home/apd/qe-6.0/EPW/bin/epw.x(+0x48dc2)[0x5601633ccdc2]
/home/apd/qe-6.0/EPW/bin/epw.x(+0xadf7)[0x56016338edf7]
/home/apd/qe-6.0/EPW/bin/epw.x(+0xac0f)[0x56016338ec0f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fe6a05492b1]
/home/apd/qe-6.0/EPW/bin/epw.x(+0xac3a)[0x56016338ec3a][/code:303wip60]

Do you have any idea what is wrong?
I am using QE v.6.0, EPW v. 4.0, operating system Debian v. 9.1, gcc (Debian 6.3.0-18) 6.3.0 20170516, Open MPI v. 2.0.2

Thank you for your help.
Artur

Dear Artur,

There was some memory issue in EPW in the past that have been solved (I’m not sure it is what you have here but could be).

I would recommend to use the latest EPW version.

Best,
Samuel

Thank you Samuel, your suggestion resolved my problem.

Best Regards,
Artur