Project

General

Profile

Bug #12286

Terminal gets SIGHUP in Global Zone after 'npm' command is run

Added by Michal Nowak 12 days ago. Updated 8 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
kernel
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

An OpenIndiana user has problem with the npm -version in Global Zone. When the command finished, something gets SIGHUP and whole terminal gets terminated:

...
/1:    write(20, " 6 . 1 3 . 4\n", 7)            = 7
/1:    write(20, 0xFFDF9A00, 0)            = 0
/2:        Received signal #1, SIGHUP, in port_getn() [default]
/2:          siginfo: SIGHUP pid=4727 uid=2903
/4:        Received signal #25, SIGCONT, in lwp_park() [default]
/3:        Received signal #1, SIGHUP, in lwp_park() [default]
/1:        Received signal #24, SIGTSTP [default]
/2:    port_getn(10, 0xEED88EC0, 1024, 1, 0x00000000)    Err#4 EINTR
/3:    lwp_park(0x00000000, 0)                Err#4 EINTR

The user runs with very recent gate illumos-5801b0f01c.

This looks similar to a recent bug manifesting in local zone but the user has this one patched and this actually happens in the Global Zone.

I myself can't reproduce this.

truss attached.


Files

npm.truss.20200206T122017 (221 KB) npm.truss.20200206T122017 truss-ing of npm Michal Nowak, 2020-02-07 07:10 AM

Related issues

Related to illumos gate - Bug #12057: Writing part of the string to stderr makes zlogin exitClosed

Actions

History

#1

Updated by Gergő Mihály Doma 12 days ago

Maybe this issue related to #12057.

#2

Updated by Gergő Mihály Doma 12 days ago

  • Related to Bug #12057: Writing part of the string to stderr makes zlogin exit added
#3

Updated by Predrag Zečević 12 days ago

Hi all,

since this happens to me, I have to add here that this problem occurs only when using terminator terminal. On mate-terminal I did not noticed this error.

:; ps -ef -Z | grep te[r]minator
  global predrag*  1863  1805   1 12:11:03 ?          18:41 /usr/bin/python2.7 /usr/bin/terminator

Regards.

#4

Updated by Predrag Zečević 12 days ago

I guess we can close this, as this is most likely terminator issue (or Pythoon 2.7 underneath).
Only this terminal program shows this problem (tested also mrxvt, urxvt, xterm, etc...)

#5

Updated by Michal Nowak 8 days ago

It turns out that it also happens in tmux when under Xterm and MATE Terminal. Seems like a broader issue than just a one terminal program.

Also available in: Atom PDF