Hide Forgot
Description of problem: Not sure if this belongs to gdb or beaker, but it's an output of gdb, so I will start here. One of our tests runs gdb with '-x commands -batch' options. The 'commands' file sets logging to a file, and then some gdb commands are executed. When this test is running in beaker, there are some artifacts in the log: (...) [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] Hardware watchpoint 1: stopper (...) There are no such messages when the test is run manually. Version-Release number of selected component (if applicable): gdb-7.2-44.el6.i686 How reproducible: always in Beaker, not manually Steps to Reproduce: 1. bkr workflow-simple --task /tools/gdb/Regression/pretty-printers --distro=RHEL6.1-20110224.2 2. 3. Actual results: fails, because the output is different from what is expected (additional messages) Expected results: no fails (no additional messages) Additional info:
Could you run GDB there wrapped in http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-orphanripper.c;hb=f15/master like instead of gdb args... to run orphanripper gdb args... If it works then to run there: /usr/bin/tty and I have no imagination which pty it can be but that pty seems to be broken. GDB autodetects if it runs on a terminal, if it does not GDB does try to call tcsetpgrp at all.
I've modded the test so it uses orphanripper, and the messages do not appear in this case. /usr/bin/tty shows /dev/console there.
This is unrelated to GDB. While trying to reproduce it I guess bash would print in such case: -bash: cannot set terminal process group (-1): Inappropriate ioctl for device -bash: no job control in this shell The tty is not properly setup, such as that its owner process is not set to gdb being run or that there are multiple owners etc., I do not understand this tty magic much. It is about ioctl TIOCSPGRP.
Assigning to beah
Bulk reassignment of issues as Bill has moved to another team.
Closing the issue due inactivity and availability of newer test harness. If you still run into this issue, feel free to reopen.