Dnia 2013-07-15, o godz. 22:52:51 sf...@users.sourceforge.net napisał(a): > justin: > > I recieved a bug report [1] about using libau.so which I can reproduce. > > If running > > > > LD_PRELOAD=3Dlibau.so lsmod > > > > lsmod is hanging. But if you are doing it "correctly" > > > > LD_PRELOAD=3Dlibau.so LIBAU=3Dall lsmod > > > > it works fine. > > Without "LIBAU=all", did it really hang? Or simpley took a long time? > Could you confirm it strace or something? > > libau.so does nothing actually if you don't give "LIBAU=all". > This is intentional by design.
When compiled with '-O2', it hangs indefinitely. When compiled with '-O0', it segfaults instead. gdb backtrace: #0 0x00007ffff7651f99 in getenv () from /lib64/libc.so.6 #1 0x00007ffff7bd67e8 in libau_test_func () from /usr/lib64/libau.so.2 #2 0x00007ffff7bd7aad in readdir_r () from /usr/lib64/libau.so.2 #3 0x00007ffff7bd7aea in readdir_r () from /usr/lib64/libau.so.2 #4 0x00007ffff7bd7aea in readdir_r () from /usr/lib64/libau.so.2 #5 0x00007ffff7bd7aea in readdir_r () from /usr/lib64/libau.so.2 #6 0x00007ffff7bd7aea in readdir_r () from /usr/lib64/libau.so.2 ... #174556 0x00007ffff7bd7aea in readdir_r () from /usr/lib64/libau.so.2 #174557 0x00007ffff79ca986 in kmod_module_get_holders () from /lib64/libkmod.so.2 It seems that it loops hard calling readdir_r(). -- Best regards, Michał Górny
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk