[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mprotect, SIGBUS, and SIGSEGV



There is no way, signal is determined by eglibc compiled for.
Lets assume that your binary is compiled under squeeze.
Under squeeze eglibc, it will receive SIGBUS,
under sid eglibc it will receive SIGSEGV.

I don't understand this part. Your first sentence seems to say the
signal is determined by the build environment, but the next part seems
to contradict that. Is this just a wording problem (the first sentence
missing a not?) or something more subtle?

Build environment of used eglibc (MIN_KERNEL_SUPPORTED),
but not build environment of your binary.

See for squeeze:
http://svn.debian.org/wsvn/pkg-glibc/glibc-package/branches/glibc-branch-squeeze/debian/sysdeps/kfreebsd.mk
and sid:
http://svn.debian.org/wsvn/pkg-glibc/glibc-package/trunk/debian/sysdeps/kfreebsd.mk

Petr


Reply to: