cmccabe / lksmith

Locksmith
BSD 2-Clause "Simplified" License
43 stars 9 forks source link

Inconsistency detected #6

Open rahulcogent opened 8 years ago

rahulcogent commented 8 years ago

Hi,

I cross-compiled the library for ARM, but when I tried to use it, I got the below error. I checked with readelf and the library is correctly compiled for platform.

LKSMITH_LOG=syslog LD_PRELOAD=/usr/lib/liblksmith.so /usr/local/tests/picviewer ERROR: ld.so: object '/usr/lib/liblksmith.so' from LD_PRELOAD cannot be preloaded: ignored. Inconsistency detected by ld.so: rtld.c: 756: init_tls: Assertion `i == _rtld_local._dl_tls_max_dtv_idx' failed!

Would you happen to know the cause of the issue.

Thanks!

rahulcogent commented 8 years ago

It was due to some security permission, this error is resolved thanks.

cmccabe commented 8 years ago

Interesting. Were you using SELinux?

rahulcogent commented 8 years ago

Thanks for replying, that issue is resolved it was due to app signing enforced on platform (I am now using the dev version of platform with no app signing). However, after I cross compiled for arm using CC and LDFLAGS environment variables, the code keeps crashing on first mutex get call in get_or_create_tls() function call. Have you tried cross compiling the tool earlier, or is there anything else also needed.

Thanks.

On Sat, Aug 20, 2016 at 11:17 AM, Colin Patrick McCabe < notifications@github.com> wrote:

Interesting. Were you using SELinux?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cmccabe/lksmith/issues/6#issuecomment-241215286, or mute the thread https://github.com/notifications/unsubscribe-auth/AUEhpJ7al5EpJWzQb_WOrF-hrFKIpqZMks5qh0TQgaJpZM4Jouix .