Changes between Version 17 and Version 18 of jazz/09-02-01


Ignore:
Timestamp:
Feb 2, 2009, 1:48:43 AM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/09-02-01

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