taviso/loadlibrary

Error: floating point exception (core dumped) in OS and Illegal instruction (core dumped) in Docker

tldale opened this issue · 6 comments

Hello,

Running something like "./mpclient winrar-x64-600.exe" in the OS returns a "Floating point exception (core dumped)" error and running this inside of docker it returns a "Illegal instruction (core dumped)" error.

I've tried this in CentOS7, Ubuntu 18.04 and Ubuntu 20.04.

In fact for the OS side you don't even have to enter a file name to get the error:

root@ubuntu1804:/opt/loadlibrary# ./mpclient
Floating point exception (core dumped)
root@ubuntu1804:/opt/loadlibrary# ./mpclient /bin/sh
Floating point exception (core dumped)

Anyone else having this issue??

I have the same issue, inside and outside Docker I get:

./mpclient yitaly.exe
Floating point exception (core dumped)

Two weeks ago this worked; today I did an update to the latest https://go.microsoft.com/fwlink/?LinkID=121721&arch=x86

Thanks for letting me know, it looks like an update in the last few days broke it.

I'm looking into it.

Please try now - this might fix it.

The problem was it was trying to time some function, but I had just stubbed the QueryPerformanceCounters and so on out, so they always returned zero. So when it was calculating how long it took, it was dividing by zero 😂

I've tried to map them on to clock_gettime(), so it should return sensible numbers now.

Thanks working now!

I'm still getting the following in a docker container:

$ ./mpclient
Illegal instruction (core dumped)

also there is no seccomp rules applied:

root@ubuntu1804:~# docker ps --quiet --all | xargs docker inspect --format '{{ .Id }}: SecurityOpt={{ .HostConfig.SecurityOpt }}'
c12350d939d874950bd6218cafdf086df2d5434776b3e84522e1793217897db0: SecurityOpt=[seccomp=unconfined apparmor=unconfined label=disable]

thanks!

Hmm, could you find out what it's crashing on?

Run gdb --args ./mpclient, then type run.

When it crashes, type this:

x/i $pc then i r and paste the output.