Re: The strange case of sudo segfaulting on exit

2021-05-04 Thread Rich
Followup post: After further prodding and asking around, the answer turns out to be "for some strange reason, on some of my systems, sudo/su are mapping a bunch of additional libraries, including the application library you were originally playing with (libzfs), so the crashing on exit when you've

Re: The strange case of sudo segfaulting on exit

2021-05-04 Thread Andrei POPESCU
On Mi, 05 mai 21, 00:37:50, Rich wrote: > > $ sudo -i > # cp /lib/x86_64-linux-gnu/libz.so.1.2.11 /tmp/ > # cp /tmp/libz.so.1.2.11 /lib/x86_64-linux-gnu/libz.so.1.2.11 > # exit > logout > Segmentation fault > $ Perhaps a naive question from my side, but why do you expect this to just work? > T