b:~[0]# export LC_ALL=C b:~[0]# finger finger: /dev//pts/40: No such file or directory Login Name Tty Idle Login Time Office Office Phone root root tty1 98d Jun 21 2024 root root pts/9 Feb 1 23:21 (2a01:261:e80:4887:e::1) root root *tty2 166d Jul 25 2024 root root pts/0 25d Oct 26 16:30 (:0) Segmentation fault (core dumped) b:~[139]# gdb /usr/bin/finger core Reading symbols from /usr/bin/finger... Reading symbols from /usr/lib/debug//usr/bin/finger.debug... [New LWP 8033] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `finger'. Program terminated with signal SIGSEGV, Segmentation fault. #0 stimeprint (w=0x556f1bb73050) at sprint.c:161 161 if (!delta->tm_yday) (gdb) bt #0 stimeprint (w=0x556f1bb73050) at sprint.c:161 #1 sflag_print () at sprint.c:110 #2 0x0000556f1a44daee in main (argc=, argv=0x7ffc170ea790) at finger.c:173 (gdb) p delta $1 = (struct tm *) 0x0 (gdb) list 156 157 static void stimeprint(WHERE *w) { 158 register struct tm *delta; 159 160 delta = gmtime(&w->idletime); 161 if (!delta->tm_yday) 162 if (!delta->tm_hour) 163 if (!delta->tm_min) 164 (void)xprintf(" "); 165 else (gdb) quit b:~[0]#