Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build a release with SELinux enabled on system #35

Closed
ioanrogers opened this issue Apr 20, 2016 · 1 comment
Closed

Unable to build a release with SELinux enabled on system #35

ioanrogers opened this issue Apr 20, 2016 · 1 comment

Comments

@ioanrogers
Copy link

ioanrogers commented Apr 20, 2016

gen_zmq_constants.pl ends with a segfault on SELinux enabled systems because tcc violates the execheap policy.

strace snippet:

open("/home/green.sophos/ioanrogers/.plenv/versions/5.22.1/lib/perl5/site_perl/5.22.1/auto/share/dist/Alien-TinyCC/lib/tcc/include/stddef.h", O_RDONLY) = 5
read(5, "#ifndef _STDDEF_H\n#define _STDDE"..., 8192) = 684
read(5, "", 8192)                       = 0
close(5)                                = 0
read(4, "           */\n#define ZMQ_HWM 1\n"..., 8192) = 2199
read(4, "", 8192)                       = 0
close(4)                                = 0
open("/home/green.sophos/ioanrogers/.plenv/versions/5.22.1/lib/perl5/site_perl/5.22.1/auto/share/dist/Alien-TinyCC/lib/tcc/libtcc1.a", O_RDONLY) = 4
read(4, "!<arch>\n/               0       "..., 64) = 64
lseek(4, 0, SEEK_SET)                   = 0
read(4, "!<arch>\n", 8)                 = 8
read(4, "/               0           0   "..., 60) = 60
lseek(4, 0, SEEK_CUR)                   = 68
read(4, "\0\0\0\f\0\0\1\6\0\0\1\6\0\0\1\6\0\0\1\6\0\0\1\6\0\0\1\6\0\0\1\6"..., 194) = 194
close(4)                                = 0
mprotect(0x14b1000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = -1 EACCES (Permission denied)
mprotect(0x14b1000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = -1 EACCES (Permission denied)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x14b1d40} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

SELinux violation details:
tcc_setroubleshoot.txt

This is really a TinyCC issue, but as it prevents building ZMQ::FFI there should at least be a record here for anyone else having this issue.

Workaround:

sudo setenforce 0
dzil build
sudo setenforce 1
@calid
Copy link
Member

calid commented Feb 28, 2019

The dependency on TinyCC has been removed which should hopefully resolve these issues

@calid calid closed this as completed Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants