Package: alpine
Version: 2.20+dfsg1-2
Severity: normal

I have a server with some users who ssh in to run alpine, and often find
alpine processes left behind after the users have presumably closed
their terminal window or perhaps shut off their computer.
I'm quite sure these nontchnical users are not using nohup to run alpine
or somehing like that. It could be that alpine is crashing somehow and
they're closing the window; they have not said.

(I realize systemd is in the process of fixing this problem erm,
comprehensively, but it still seems worth reporting. My server has run
out of memory partly because of this at least once.)

Glancing at the code, it seems alpine does in
fact catch SIGHUP for some reason. It looks like it can call
signal(SIGHUP, SIG_IGN) in some circumstances.

Attaching gdb to such a process, I got this backtrace:

#0  __lll_lock_wait_private ()
    at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95
#1  0x00007efec3fa6d82 in __tz_convert (timer=0x7efec429cb20 <tzset_lock>, 
    timer@entry=0x7fff278a4f58, use_localtime=use_localtime@entry=1, 
    tp=tp@entry=0x7efec429f560 <_tmbuf>) at tzset.c:623
#2  0x00007efec3fa5411 in __GI_localtime (t=t@entry=0x7fff278a4f58)
    at localtime.c:42
#3  0x00000000005db4d2 in debug_time (include_date=include_date@entry=1, 
    include_subseconds=0) at debugtime.c:52
#4  0x00000000005bcb51 in pine_mail_actually_close (stream=0x129f620)
    at stream.c:1351
#5  0x00000000004cd014 in fast_clean_up () at signal.c:370
#6  0x00000000004cd10e in hup_signal () at signal.c:244
#7  <signal handler called>
#8  0x00007efec3fd76d5 in __GI___xstat (vers=<optimized out>, 
    name=0x7efec406295c "/etc/localtime", buf=0x7fff278a5630)
    at ../sysdeps/unix/sysv/linux/wordsize-64/xstat.c:35
#9  0x00007efec3fa6fdc in __tzfile_read (
    file=file@entry=0x7efec406295c "/etc/localtime", extra=extra@entry=0, 
    extrap=extrap@entry=0x0) at tzfile.c:161
#10 0x00007efec3fa6a39 in tzset_internal (always=<optimized out>, 
    explicit=explicit@entry=1) at tzset.c:443
#11 0x00007efec3fa6dab in __tz_convert (timer=timer@entry=0x7fff278a5768, 
    use_localtime=use_localtime@entry=1, tp=tp@entry=0x7efec429f560 <_tmbuf>)
    at tzset.c:628
#12 0x00007efec3fa5411 in __GI_localtime (t=t@entry=0x7fff278a5768)
    at localtime.c:42
#13 0x00007efec3fa5369 in ctime (t=t@entry=0x7fff278a5768) at ctime.c:27
#14 0x00000000005db46b in debug_time (include_date=include_date@entry=0, 
    include_subseconds=include_subseconds@entry=1) at debugtime.c:63
#15 0x0000000000559c3c in add_review_message (
    message=message@entry=0xaf1380 <b> "- completely_done_with_adrbks -\n", 
    level=level@entry=1) at help.c:342
#16 0x00000000005e1ac3 in output_debug_msg (dlevel=dlevel@entry=1, 
    fmt=fmt@entry=0x7add41 "read_bail: cleaning up\n") at debuging.c:324
#17 0x00000000005e6cd5 in read_bail () at termin.unx.c:579
#18 0x000000000050a9f4 in simple_ttgetc (
    recorder=recorder@entry=0x5e6730 <key_recorder>, 
    bail_handler=bail_handler@entry=0x5e6cc0 <read_bail>) at tty.c:157
#19 0x00000000005e68e8 in pine_simple_ttgetc (
    fi=0x5e6730 <key_recorder>, fv=0x5e6cc0 <read_bail>)
    at termin.unx.c:660
#20 0x0000000000507509 in kbseq (
    getcfunc=getcfunc@entry=0x5e6870 <pine_simple_ttgetc>, 
    recorder=recorder@entry=0x5e6730 <key_recorder>, 
    bail_handler=bail_handler@entry=0x5e6cc0 <read_bail>, 
    data=0x7b3de8 <utf8_csvalid+40>, ch=ch@entry=0x7fff278a59dc)
    at getkey.c:359
#21 0x00000000005e7055 in read_char (time_out=time_out@entry=8)
    at termin.unx.c:342
#22 0x00000000005e476c in read_command (
    utf8str=utf8str@entry=0x7fff278a5aa8) at termin.gen.c:116
#23 0x0000000000497147 in scrolltool (
    sparms=sparms@entry=0x7fff278a5bc0) at mailview.c:2606
#24 0x000000000049939d in mail_view_screen (ps=0x12845c0)
    at mailview.c:445
#25 0x000000000040a0d5 in main (argc=<optimized out>, 
    ut>) at alpine.c:1336

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages alpine depends on:
ii  libc6             2.22-9
ii  libgssapi-krb5-2  1.13.2+dfsg-5
ii  libkrb5-3         1.13.2+dfsg-5
ii  libldap-2.4-2     2.4.42+dfsg-2+b2
ii  libpam0g          1.1.8-3.2
ii  libssl1.0.2       1.0.2h-1
ii  libtinfo5         6.0+20160319-1
ii  mlock             8:2007f~dfsg-4+b1

Versions of packages alpine recommends:
ii  alpine-doc  2.20+dfsg1-2

Versions of packages alpine suggests:
ii  aspell                          0.60.7~20110707-3+b1
ii  postfix [mail-transport-agent]  3.1.0-3

-- no debconf information

-- 
see shy jo

Reply via email to