Package: coreutils
Version: 8.30-3
Severity: normal

Dear Maintainer,

I am trying to run a program detached in the background from an ssh login, 
like 
  nohup <prog> <arg>
where <prog> is my executable and <arg> a configuration file. 
The combination <prog> <arg> runs without issue. As far as I understand from
the documentation (man or info respectively, <arg> denotes program 
(as opposed to nohup) arguments. Now, when prefixed with nohup, nohup segfaults 
within about a second, apparently (strace)  due to an access to 
an invalid file descriptor (see strace excerpt below) - I had expected 
nohup.out to be 
created and contain the program output (possibly with the exception of stderr).

[...]
epoll_ctl(4, EPOLL_CTL_ADD, 5, {EPOLLIN|EPOLLERR, {u32=2246584660, 
u64=94143634745684}}) = 0
clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=11500, tv_nsec=213387281}) = 0
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 6
epoll_ctl(4, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP|EPOLLET, 
{u32=2246468080, u64=94143634629104}}) = 0
setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(10201), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(6, 128)
[... stuff involving fd 2 and 6]

clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=11500, tv_nsec=601792740}) = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 
0x7f3422bf5000
mprotect(0x7f3422bf6000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f34233f4f70, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
 parent_tidptr=0x7f34233f59d0, tls=0x7f34233f5700, child_tidptr=0x7f34233f59d0) 
= 3216
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 
0x7f34223f4000
mprotect(0x7f34223f5000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f3422bf3f70, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
 parent_tidptr=0x7f3422bf49d0, tls=0x7f3422bf4700, child_tidptr=0x7f3422bf49d0) 
= 3217
fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(0x1, 0x3), ...}) = 0
ioctl(0, TCGETS, 0x7fffc9dc7a10)        = -1 ENOTTY (Inappropriate ioctl for 
device)
read(0, 0x559f85e82fe0, 4096)           = -1 EBADF (Bad file descriptor)
+++ killed by SIGSEGV +++
Segmentation fault

-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (990, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/40 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils depends on:
ii  libacl1      2.2.53-4
ii  libattr1     1:2.4.48-4
ii  libc6        2.28-10
ii  libselinux1  2.8-1+b1

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Reply via email to