| | 377 | * 繼續追為何結束時會收到 SIGSEGV 的主因 |
| | 378 | {{{ |
| | 379 | < 直接在 tty1 或在 screen 中執行 > |
| | 380 | root@intrepid:~/jfbterm-0.4.7-dev# ./jfbterm -f /etc/jfbterm.conf -e /root/test.sh |
| | 381 | }}} |
| | 382 | {{{ |
| | 383 | root@intrepid:~/jfbterm-0.4.7-dev# gdb ./jfbterm `pidof jfbterm` |
| | 384 | break term.c:103 |
| | 385 | break term.c:284 |
| | 386 | c |
| | 387 | #### 直接在 tty1 不透過 screen 執行 的結果 ##### |
| | 388 | Breakpoint 1, tterm_final (p=0x617a00) at term.c:103 |
| | 389 | 103 tterm_reset_utmp(p); |
| | 390 | (gdb) s |
| | 391 | tterm_reset_utmp (p=0x617a00) at term.c:271 |
| | 392 | 271 { |
| | 393 | (gdb) s |
| | 394 | 275 tn = rindex(p->name, '/') + 4; |
| | 395 | (gdb) p p->name |
| | 396 | $1 = "/dev/pts/0", '\0' <repeats 53 times> |
| | 397 | #### 直接在 tty1 有透過 screen 執行 的結果 ##### |
| | 398 | |
| | 399 | Breakpoint 1, tterm_final (p=0x617a00) at term.c:103 |
| | 400 | 103 tterm_reset_utmp(p); |
| | 401 | (gdb) s |
| | 402 | tterm_reset_utmp (p=0x617a00) at term.c:271 |
| | 403 | 271 { |
| | 404 | (gdb) s |
| | 405 | 275 tn = rindex(p->name, '/') + 4; |
| | 406 | (gdb) p p->name |
| | 407 | $1 = "/dev/pts/1", '\0' <repeats 53 times> |
| | 408 | }}} |