Closed madscientist closed 3 weeks ago
I wonder if this is what I fixed recently here: https://github.com/AmadeusITGroup/CoreDumper/commit/c146060e80fcd90c3b5dab0217986dab13732fcb
@Romain-Geissler-1A thank you that is indeed what the problem was. Once I apply this patch, the tests pass.
It's unfortunate (for me) that your repo is not a fork of the original(?) anatol repo. I wasn't able to find your repo without the link above so thanks for that.
Seems to be fixed with d0ed37c8e4a083c8ef1405ed9b20ce839fd62a03
If I compile and run the tests on Red Hat EL 7.x, they all pass fine.
If I compile and run the tests on Ubuntu 20.04 LTS, the coredumper_unittest fails in the GDB test because the generated core cannot be read and so it times out waiting for the expected results:
and if I try to use GDB on the core I get:
But if I compile on a Red Hat 7.x system it works (note, it works even on an Ubuntu system: it doesn't matter where we RUN the test only where we compile it).
There must be some change in the system headers etc. from RHEL 7 to Ubuntu 20.04 that causes the coredumper code to be miscompiled so that it cannot write a valid core file any longer. For posterity here is the output from the core generated by coredumper_unittest compiled on RHEL 7: