wiki:jazz/08-11-20

2008-11-20

  • SC'08
    • SC'09 將著重的主題: Bio-Computing 跟 3D Internet

BUGFIX: jfbterm (4)

<vterm.c>

 439 void tvterm_start(TVterm* p)
 440 {
 ... ...
 474         ioctl(0, KDSETMODE, KD_GRAPHICS);
 ... ...
 ... ...
 487 void tvterm_final(TVterm* p)
 488 {
 489         ioctl(0, KDSETMODE, KD_TEXT);
(gdb) file jfbterm
(gdb) set args -e ls
(gdb) break fbcommon.c:566
(gdb) break vterm.c:474
(gdb) break vterm.c:489
(gdb) run
Breakpoint 1, tfbm_open (p=0x6146e0) at fbcommon.c:566
566             if(p->mlen == 0)
(gdb) c
Continuing.
mmap ; 16777216 - 0x7f85416bc000
mmio ; 0 - (nil)

Breakpoint 2, tvterm_start (p=0x614848) at vterm.c:474
474             ioctl(0, KDSETMODE, KD_GRAPHICS);
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
tterm_reset_utmp (p=<value optimized out>) at /usr/include/bits/string3.h:85
85        return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
(gdb) where
#0  tterm_reset_utmp (p=<value optimized out>) at /usr/include/bits/string3.h:85
#1  0x0000000000408a50 in tterm_final (p=0x154) at term.c:103
#2  0x0000000000408adf in sigchld (sig=<value optimized out>) at term.c:82
#3  <signal handler called>
#4  0x00007f8543210433 in select () from /lib/libc.so.6
#5  0x0000000000408873 in tterm_start (p=0x6147c0, tn=<value optimized out>, en=<value optimized out>) at term.c:192
#6  0x0000000000402cf2 in main (argc=<value optimized out>, argv=0x7fff4bb49ea8) at main.c:438
Last modified 16 years ago Last modified on Nov 25, 2008, 1:48:13 PM