On 14/08/2020 00.29, David C. Rankin wrote:
On 8/13/20 5:39 AM, Mark Hounschell wrote:
The strace looks fairly normal until
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 ioctl(-1, TIOCGPGRP, 0x7ffe761f5584) = -1 EBADF (Bad file descriptor)
Up to that point it's just the normal checking all path locations for where files like libreadline.so.7 are located (which is found at /lib64/libreadline.so.7.
The problem is the call to ioctl (see: man 2 ioctl)
int ioctl(int fd, unsigned long request, ...);
The file descriptor passed is `-1` which raises EBADF (Bad file descriptor) because -1 is a bad file descriptor. Why that is happening is the question to answer.
Interesting. open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=330604, ...}) = 0 mmap(NULL, 330604, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8681688000 close(3) = 0 getuid() = 5076 getgid() = 100 geteuid() = 5076 getegid() = 100 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 ioctl(-1, TIOCGPGRP, 0x7ffe761f5584) = -1 EBADF (Bad file descriptor) The last file handle was "3", but the file was closed. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)