On 8/14/20 9:08 AM, Mark Hounschell wrote:
On 8/14/20 7:12 AM, David Haller wrote:
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 ...
Both of those create quite large ooffice.strace files. Should I post them somewhere? Or maybe add them to the filed bug report?
Actually the ltrace one doesn't work. It complains about ooffice being a script not an ELF file. Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org