Ask Your Question
4

Using roslaunch with gdb gives error 'tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device'

asked 2012-11-11 22:38:59 -0600

Benoit Larochelle gravatar image

I'm trying to debug my node with gdb but I consistently get two errors, and I don't know if they are related.

First of all, I added launch-prefix="gdb -ex run --args" to my node as instructed in the tutorial.

Now, when I launch my node, I get this error about 30 times during the initialization phase: tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device.

Also, when I try to close the node, it stops a few threads but seems to hang and not stop the other threads. I do not normally have threading problems.

Are these problems related? I know that the error that I got was reported with Gazebo in the past, but here it has nothing to do with it.

edit retag flag offensive close merge delete

Comments

I'm not quite sure why you are getting the tcsetpgrp errors but maybe the terminal roslaunch provides does not support all features gdb wants.

Lorenz gravatar imageLorenz ( 2012-11-12 00:20:35 -0600 )edit

I used this option: `launch-prefix="gdb --args" ` to launch gdb in my terminal however I got the same error: [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] each time I hit or continue from a break point.

yuquan gravatar imageyuquan ( 2013-01-21 02:47:55 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2014-07-07 10:03:22 -0600

Benny gravatar image
edit flag offensive delete link more
3

answered 2015-09-27 15:01:53 -0600

Faced same thing. But I just did launch-prefix="xterm -e gdb --args" instead of launch-prefix="gdb -ex run --args". The former opens gdb in a different xterm window, and you can type in "run". That worked for me

edit flag offensive delete link more

Comments

Thank you! This works.

curi_ROS gravatar imagecuri_ROS ( 2019-01-30 06:55:37 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-11-11 22:38:59 -0600

Seen: 5,899 times

Last updated: Sep 27 '15