Hi,
I suspect I have found a bug in s-nail/s-mailx.
When trying to send mail using
echo test | mail -stest david
the mail command would block indefinitely. The same
happens when trying to read local mail.
I cloned https://git.sdaoden.eu/scm/s-nail.git and
built the `devel' target, then run s-nail in gdb.
The backtrace shown by gdb upon killing the process
is attached.
I managed to fix the build by #undef-ing HAVE_GETRANDOM
in auxlily.c:60. Then, n_msleep is not called and the
application works as usual.
I'm running Arch Linux, pacman -Q | grep s-nail shows
s-nail 14.9.3-1
The system is a virtualized VPS running OpenVZ, if I
remember correctly---just in case this matters.
If I can help to fix the problem or provide further
information, let me know.
Regards
David
Program received signal SIGTERM, Terminated.
0x00007ffff6538bb0 in ?? ()
(gdb) bt
#0 0x00007ffff6538bb0 in ?? ()
#1 0x00007ffff7f55b7e in n_msleep (millis=millis@entry=250,
ignint=ignint@entry=0 '\000')
at /home/david/s-nail/auxlily.c:1198
#2 0x00007ffff7f55d24 in a_aux_rand_init () at /home/david/s-nail/auxlily.c:209
#3 n_random_create_cp (length=length@entry=8,
reprocnt_or_null=reprocnt_or_null@entry=0x0)
at /home/david/s-nail/auxlily.c:1005
#4 0x00007ffff7fb0c37 in Ftmp (fn=fn@entry=0x7fffffffe240, namehint=<optimized
out>,
namehint@entry=0x7ffff7fecf57 "tmpmbox", oflags=oflags@entry=(OF_WRONLY |
OF_HOLDSIGS))
at /home/david/s-nail/popen.c:736
#5 0x00007ffff7f729d1 in initbox (name=<optimized out>) at
/home/david/s-nail/folder.c:726
#6 0x00007ffff7f73079 in setfile (name=<optimized out>,
name@entry=0x7ffff7fe1c6b "%",
fm=FEDIT_SYSBOX) at /home/david/s-nail/folder.c:410
#7 0x00007ffff7f843f1 in a_main_rcv_mode (folder=0x7ffff7fe1c6b "%",
folder@entry=0x0,
Larg=Larg@entry=0x0) at /home/david/s-nail/main.c:565
#8 0x00007ffff7f85e21 in main (argc=<optimized out>, argv=<optimized out>)
at /home/david/s-nail/main.c:1151