Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344173 - Mysql 5.1.51 does not start with PAX mprotect enabled
Summary: Mysql 5.1.51 does not start with PAX mprotect enabled
Status: RESOLVED DUPLICATE of bug 344031
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 19:13 UTC by praise.tazio
Modified: 2010-11-05 08:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description praise.tazio 2010-11-04 19:13:34 UTC
Mysql 5.1.51 does not start with PAX mprotect enabled with the following error:

/usr/bin/my_print_defaults: error while loading shared libraries: /usr/lib/mysql/libmystrings.so.0: cannot make segment writable for relocation: Permission denied

I use a hardened profile

Reproducible: Always

Steps to Reproduce:
1. Get a Gentoo Hardened box
2. Upgrade MySQL to the latest stable.
3. Try to start MySQL.

Actual Results:  
MySQL fails to start with this error:
/usr/bin/my_print_defaults: error while loading shared libraries: /usr/lib/mysql/libmystrings.so.0: cannot make segment writable for relocation: Permission denied

Expected Results:  
MySQL starting fine.

These commands resolved the problem, I think they should be made by the ebuild:

paxctl /usr/bin/my_print_defaults -m
paxctl /usr/sbin/mysqld -m
Comment 1 Agostino Sarubbo gentoo-dev 2010-11-04 22:02:34 UTC
there is definitely something wrong, I upgraded my machine and not have this problem with mysql
Comment 2 Marcin Mirosław 2010-11-05 07:46:09 UTC
Duplicate of #344031
Comment 3 MT 2010-11-05 08:32:12 UTC

*** This bug has been marked as a duplicate of bug 344031 ***