Skip to content

Fix intersection with glibc personality()

Dmitriy Evgenevich Gonzha requested to merge d.gonzha/procps:test1 into master

On Linux we have glibc personality() - wrapper to linux personality syscall. But used in ps 'personality' global variable leads to personality() function pointer overwrite. It leads to segmentation fault error on personality() usage. Such call could be done in dependent libraries or in preloaded library. E.g. when gcc address sanitizer is used we have error on libasan.so initialization.

This patch fixes the error by changing intersected global variable name to "_personality"

Signed-off-by: Dmitriy Evgenevich Gonzha d.gonzha@samsung.com

Merge request reports