[RESOLVED] - 'unbind_variable' has unknown return type

Issues related to applications and software problems and general support
Post Reply
User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

[RESOLVED] - 'unbind_variable' has unknown return type

Post by warron.french » 2021/07/28 12:41:18

I am executing a command to deliberately kill the TMOUT variable so that my sessions won't die on me since I am not going to install EPEL just to install the screen command.

The command is:

Code: Select all

sudo gdb -ex 'call unbind_variable("TMOUT")' --pid=$$   --batch
This works perfectly on RHEL and CentOS 7, but on CentOS 8 I get feedback, an error:

Code: Select all

0x00007fca9f609aab in waitpid () from /lib64/libc.so.6
'unbind_variable' has unknown return type; cast the call to its declared return type
[Inferior 1 (process 86840) detached]
Does anybody know how to fix this for RHEL/CentOS 8? On RHEL/CentOS 7 I simply run the command and it is successful.
Last edited by warron.french on 2021/08/06 19:14:14, edited 1 time in total.
Thanks,
War

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: 'unbind_variable' has unknown return type

Post by TrevorH » 2021/07/28 15:39:19

If you want screen but don't want to install EPEL then the tmux package is a more modern replacement for screen that's in baseos. It's the reason why screen is not in base.

TMOUT is not set by default so you'd be beyyer off working out what sets it and stopping it from doing so.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

Re: 'unbind_variable' has unknown return type

Post by warron.french » 2021/07/29 01:15:16

Thanks, TrevorH, I do know that TMOUT is not automatically set.

I was hoping to learn more about why the gdb command was not working and how to make it work.

As for tmux, thanks for letting me know. Is tmux the way of the future?
Thanks,
War

Post Reply