Issue with GNU screen util found in system-tools addon


#1

I’ve been running some console applications, mainly irssi, under screen which is found in the system-tools addon. This has worked fairly well until yesterday when my screen died and I had to try and restart it.

Now it doesn’t seem to run any longer and I was hoping someone could help me figure out why. I don’t get any error message just by starting it, it just hangs there.

I took an strace printout (https://pastebin.com/tKceZ3sH) and based on it there seems to be some file descriptor issue on my system.

Roughly every 15 seconds the strace prints this until I kill it.

--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
rt_sigaction(SIGINT, {sa_handler=0xee68, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0xf7432c60}, {sa_handler=0xee68, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0xf7432c60}, 8) = 0
kill(5012, SIGINT)                      = 0
sigreturn({mask=[]})                    = -1 EINTR (Interrupted system call)
setitimer(ITIMER_REAL, {it_interval={tv_sec=0, tv_usec=0}, it_value={tv_sec=0, tv_usec=0}}, {it_interval={tv_sec=0, tv_usec=0}, it_value={tv_sec=7, tv_usec=320750}}) = 0
kill(5012, SIG_0)                       = 0
rt_sigaction(SIGALRM, {sa_handler=0x2e4e8, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0xf7432c60}, {sa_handler=0x2e4e8, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0xf7432c60}, 8) = 0
setitimer(ITIMER_REAL, {it_interval={tv_sec=0, tv_usec=0}, it_value={tv_sec=15, tv_usec=0}}, {it_interval={tv_sec=0, tv_usec=0}, it_value={tv_sec=0, tv_usec=0}}) = 0
pause()                                 = ? ERESTARTNOHAND (To be restarted if no handler)

I don’t know if I’ve caused it myself or if it’s broken because something has updated

So far I’ve also tried to

  • Reboot
  • Re-install the system-tools package
  • Run with blank .screenrc config.
  • Clean up the SockDir
  • Tried to start it detached

Those did not help. I also have not noticed any other issue with my system.

Any help appreciated.


#2

I updated to 8.90.3 and that didn’t change anything. So I did a fresh install of the same version, went through the wizard and installed the addon changing nothing else. Still the same error

close(4095)                             = -1 EBADF (Bad file descriptor)
close(4094)                             = -1 EBADF (Bad file descriptor)
close(4093)                             = -1 EBADF (Bad file descriptor)
close(4092)                             = -1 EBADF (Bad file descriptor)
close(4091)                             = -1 EBADF (Bad file descriptor)
close(4090)                             = -1 EBADF (Bad file descriptor)
close(4089)                             = -1 EBADF (Bad file descriptor)
close(4088)                             = -1 EBADF (Bad file descriptor)
close(4087)                             = -1 EBADF (Bad file descriptor)
close(4086)                             = -1 EBADF (Bad file descriptor)
close(4085)                             = -1 EBADF (Bad file descriptor)
close(4084)                             = -1 EBADF (Bad file descriptor)
close(4083)                             = -1 EBADF (Bad file descriptor)
close(4082)                             = -1 EBADF (Bad file descriptor)
close(4081)                             = -1 EBADF (Bad file descriptor)
close(4080)                             = -1 EBADF (Bad file descriptor)
close(4079)                             = -1 EBADF (Bad file descriptor)
close(4078)                             = -1 EBADF (Bad file descriptor)
close(4077)                             = -1 EBADF (Bad file descriptor)
close(4076)                             = -1 EBADF (Bad file descriptor)
close(4075)                             = -1 EBADF (Bad file descriptor)
close(4074)                             = -1 EBADF (Bad file descriptor)
close(4073)                             = -1 EBADF (Bad file descriptor)
...
close(3)                                = -1 EBADF (Bad file descriptor)

Full strace log taken from version 8.90.2 https://pastebin.com/raw/ua3ZrZae . If it’s of any use I can do from 8.90.3.

Should I create an issue in github?


#3

dtach in the same addon seems to do the same thing. I guess I can run that as a workaround.


#4

In case somebody was depending on this tool, the issue I have is still there as of 8.95.0. http://ix.io/1k3r
However you can now install a copy via entware which works.


#6

Works again on 8.95.7.