lksmith icon indicating copy to clipboard operation
lksmith copied to clipboard

Inconsistency detected

Open rahulcogent opened this issue 9 years ago • 3 comments

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 avatar Aug 19 '16 18:08 rahulcogent

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

rahulcogent avatar Aug 19 '16 20:08 rahulcogent

Interesting. Were you using SELinux?

cmccabe avatar Aug 20 '16 18:08 cmccabe

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 < [email protected]> 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 .

rahulcogent avatar Aug 21 '16 18:08 rahulcogent