Hello, On Thu, 13 Aug 2020, David C. Rankin wrote:
On 8/13/20 8:47 PM, Carlos E. R. wrote:
ioctl(-1, TIOCGPGRP, 0x7ffe761f5584) = -1 EBADF (Bad file descriptor)
The last file handle was "3", but the file was close Yes,
That is odd. There is a close() following every open() when the program is loading files, so that part is normal. The -1 on the file descriptor is hosed. I'm not sure what the request 'TIOCGPGRP' but I suspect it is some group ownership related request. The address, 0x7ffe761f5584 doesn't correspond to any other mapped region shown in the posted strace output -- so I'm lost there.
You're right, that should be a valid fd to a tty. See 'man 2 ioctl' and 'man 2 ioctl_tty' and 'man 3 tcgetpgrp'. ==== TIOCGPGRP pid_t *argp When successful, equivalent to *argp = tcgetpgrp(fd). Get the process group ID of the foreground process group on this terminal. ==== As this whole thing is just a strace of the shell running the script /usr/bin/ooffice, this is rather useless. The OP should try: $ strace -f -s 128 -o ooffice.strace /usr/bin/ooffice ... or maybe: $ ltrace -f -S -s 128 -o ooffice.ltrace /usr/bin/ooffice ... HTH, -dnh -- hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is. -- bash.org/?top -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org