ralight / mallocfail

Malloc failure testing
MIT License
38 stars 5 forks source link

Direct linking #1

Open tbeu opened 5 years ago

tbeu commented 5 years ago

Is there an description to directly link to mallocfail instead of the preload hook?

ralight commented 5 years ago

No, I'm not sure whether that is practical. To do that you'd have to replace all of libc wouldn't you?

tbeu commented 5 years ago

Issue is, that I constantly fail to run mallocfail pre-hooked executables through Travis CI. See https://travis-ci.org/tbeu/matio/builds and check branch mallocfail.

ralight commented 5 years ago

Looking at this one: https://travis-ci.org/tbeu/matio/jobs/448055273

It seems as though it's working as expected, printing out the stack traces when it fails them, there are errors codes returned by your code when memory allocations fail and even a crash.

What else would you expect to see?