Failing CentOS5-32 builds in Jenkins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
2.0 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
All XB tests in the 'innodb51' configuration fail on centos5-32 Jenkins slaves due to SELinux when trying to start the server from a non-standard location. innodb51 is the only configuration where the server needs to load a plugin. That fails as follows:
130310 22:37:45 [ERROR] Can't open shared library '/home/
130310 22:37:45 [ERROR] Couldn't load plugin named 'innodb' with soname 'ha_innodb_
Corresponding messages from /var/log/
type=AVC msg=audit(
type=SYSCALL msg=audit(
"setenforce=0" on those slaves would fix the issue, but that appears to be too difficult. This report is to implement a workaround in the XB test suite.
Related branches
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 36 lines (+18/-1)1 file modifiedtest/testrun.sh (+18/-1)
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 36 lines (+18/-1)1 file modifiedtest/testrun.sh (+18/-1)
If this bug can reappear in non-testing environment due to other
reasons, I can add this as an exception to selinux rule.
However, according to http:// danwalsh. livejournal. com/6117. html?thread= 23525
"
Basically a DSO is loaded, at some point the application determines the code needs text relocation and uses the mprotect call to set the memory region read/write. After the text relocation, the code is marked back to read/exec which triggers the access check. Usually the DSO does not need to be text relocatable, but a programming mistake has happened.
"
So, bug fix helps here, also, I checked for others on CentOS64-6
with readelf -d PROGRAMS | fgrep TEXTREL -- couldn't find any.