[Debian-astro-maintainers] Bug#983153: calendar: Segmentation fault

Bernhard Übelacker bernhardu at mailbox.org
Sun Mar 7 15:18:34 GMT 2021


Dear Maintainer,
this crash happens because this executable is expecting
at command line a parameter month and year.
Doing so produces a calendar at stdout in postscript format.

Kind regards,
Bernhard

(gdb) bt
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, loc=0x7f3181dc04a0 <_nl_global_locale>) at ../stdlib/strtol_l.c:292
#1  0x00005629626651b4 in atoi (__nptr=<optimized out>) at /usr/include/stdlib.h:363
#2  main (argc=1, argv=0x7ffe5c59e508) at calendar.cpp:621

https://sources.debian.org/src/pluto-lunar/0.0~git20180825.e34c1d1-1/calendar.cpp/#L621
-------------- next part --------------

# Bullseye/testing amd64 qemu VM 2021-03-07


apt update
apt dist-upgrade


apt install systemd-coredump gdb pluto-lunar pluto-lunar-dbgsym



benutzer at debian:~$ /usr/lib/pluto/lunar/calendar
Speicherzugriffsfehler (Speicherabzug geschrieben)



root at debian:~# journalctl -e
Mär 07 16:05:51 debian kernel: calendar[1010]: segfault at 0 ip 00007f3181c41518 sp 00007ffe5c59e380 error 4 in libc-2.31.so[7f3181c26000+14b000]
Mär 07 16:05:51 debian kernel: Code: 41 54 45 31 e4 55 53 48 83 ec 28 48 89 74 24 08 85 c9 0f 85 c2 02 00 00 83 ff 01 0f 84 81 01 00 00 83 ff 24 0f 87 78 01 00 00 <49> 0f be 55 00 49 8b 48 68 4c 89 eb 48 89 d0 f6 44 51 01 20 74 15
Mär 07 16:05:51 debian systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Mär 07 16:05:51 debian systemd[1]: Started Process Core Dump (PID 1011/UID 0).
Mär 07 16:05:51 debian systemd-coredump[1012]: Process 1010 (calendar) of user 1000 dumped core.
                                                
                                                Stack trace of thread 1010:
                                                #0  0x00007f3181c41518 n/a (libc.so.6 + 0x40518)
                                                #1  0x00005629626651b4 n/a (calendar + 0x21b4)
                                                #2  0x00007f3181c27d0a __libc_start_main (libc.so.6 + 0x26d0a)
                                                #3  0x000056296266541a n/a (calendar + 0x241a)





root at debian:~# coredumpctl list
TIME                            PID   UID   GID SIG COREFILE  EXE
Sun 2021-03-07 16:05:51 CET    1010  1000  1000  11 present   /usr/lib/pluto/lunar/calendar

root at debian:~# coredumpctl gdb 1010
...
Core was generated by `/usr/lib/pluto/lunar/calendar'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, loc=0x7f3181dc04a0 <_nl_global_locale>) at ../stdlib/strtol_l.c:292
292     ../stdlib/strtol_l.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, loc=0x7f3181dc04a0 <_nl_global_locale>) at ../stdlib/strtol_l.c:292
#1  0x00005629626651b4 in ?? ()
#2  0x00007f3181c27d0a in __libc_start_main (main=0x562962665190, argc=1, argv=0x7ffe5c59e508, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe5c59e4f8) at ../csu/libc-start.c:308
#3  0x000056296266541a in ?? ()


root at debian:~# export DEBUGINFOD_URLS="https://debuginfod.debian.net"
root at debian:~# coredumpctl gdb 1010

(gdb) bt
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, loc=0x7f3181dc04a0 <_nl_global_locale>) at ../stdlib/strtol_l.c:292
#1  0x00005629626651b4 in atoi (__nptr=<optimized out>) at /usr/include/stdlib.h:363
#2  main (argc=1, argv=0x7ffe5c59e508) at calendar.cpp:621

https://sources.debian.org/src/pluto-lunar/0.0~git20180825.e34c1d1-1/calendar.cpp/#L621



/usr/lib/pluto/lunar/calendar 03 2021 > test.ps





More information about the Debian-astro-maintainers mailing list