From owner-ports-jp@jp.freebsd.org  Fri Dec 15 10:58:34 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id KAA20695;
	Fri, 15 Dec 2000 10:58:34 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from nakaji.tutrp.tut.ac.jp (nakaji.tutrp.tut.ac.jp [133.15.188.118])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id KAA20685
	for <ports-jp@jp.freebsd.org>; Fri, 15 Dec 2000 10:58:27 +0900 (JST)
	(envelope-from nakaji@tutrp.tut.ac.jp)
Received: from nakaji.tutrp.tut.ac.jp (localhost.tutrp.tut.ac.jp [127.0.0.1])
	by nakaji.tutrp.tut.ac.jp (8.11.1/8.11.1) with ESMTP id eBF1wHN98652
	for <ports-jp@jp.freebsd.org>; Fri, 15 Dec 2000 10:58:17 +0900 (JST)
	(envelope-from nakaji@tutrp.tut.ac.jp)
To: FreeBSD Ports JP <ports-jp@jp.freebsd.org>
MIME-Version: 1.0 (generated by SEMI 1.14.0 - "Iburihashi")
Content-Type: text/plain; charset=ISO-2022-JP
From: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>
Date: 15 Dec 2000 10:58:17 +0900
Message-ID: <87u286e98m.fsf@nakaji.tutrp.tut.ac.jp>
Lines: 48
User-Agent: T-gnus/6.14.5 (based on Gnus v5.8.7) (revision 08) SEMI/1.14.0 (Iburihashi) FLIM/1.14.0 (Ninokuchi) APEL/10.2 MULE XEmacs/21.2 (beta37) (Pan) (i386-unknown-freebsd5.0)
Reply-To: ports-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: ports-jp 10516
Subject: [ports-jp 10516] japanese/dvi2tty dumps core with '-q' option
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org
X-Originator: nakaji@nakaji.tutrp.tut.ac.jp

$BCf<#!wK-66$G$9!#(B

FreeBSD$B8GM-$NLdBj$J$N$+!"(Bports$B$NLdBj$J$N$+$o$+$j$^$;$s$,!"(B
japanese/dvi2tty $B$G%$%s%9%H!<%k$5$l$k(B jdvi2tty $B$G(B -q $B%*%W%7%g%s$r;H$&(B
$B$H!"%3%"%@%s%W$7$^$9!#(Bgdb$B$GDI$C$F$_$k$H!"(B

Breakpoint 2, dopage () at dvistuff.c:387
387                 setfont(opcode - FONT_00);
(gdb) s
setfont (fntnum=34) at dvistuff.c:1310
1310        fnt = fonts;
(gdb) n
1311        while (fnt != NULL && fnt->num != fntnum)
(gdb) n
1313        if (fnt == NULL) {
(gdb) n
1319        s = fnt->name;
(gdb) n
1320        while ((s = strchr(s, 's')) != NULL) {
(gdb) p strchr(s,'s')

Program received signal SIGSEGV, Segmentation fault.
0x280d7a52 in strchr () from /usr/lib/libc.so.5
The program being debugged stopped while in a function called from GDB.
When the function (strchr) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).

$B$H$J$C$F!"(Bstrchr(s, 's')$B$G%;%0%a%s%HNc30$r5/$3$7$F$$$^$9!#$3$N(B1319$B9T$a(B
$B$G!"(Bs $B$K$O(B "min10" $B$,%;%C%H$5$l$F$$$^$9!#$=$7$F!"(Bstrchr()$B$G%(%i!<$K$J(B
$B$j$^$9!#(B

(gdb) p s
$4 = 0x8054040 "min10", ' ' <repeats 195 times>...
(gdb) p strchr(s,'s')

Program received signal SIGSEGV, Segmentation fault.
0x280d7a52 in strchr () from /usr/lib/libc.so.5
The program being debugged stopped while in a function called from GDB.
When the function (strchr) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).

jdvi2tty $BK\BN$NLdBj$+$bCN$l$^$;$s$,!"B>$N(BOS$B$G$N3NG'$,$[$H$s$I$G$-$J$$(B
$B>uBV$K$J$C$F$$$^$9(B(NEWS-OS$B$7$+$J$$(B^^;)$B$N$G!"$H$j$"$($:!"$3$A$i$KJs9p$@(B
$B$1$7$F$*$-$^$9!#(B
-- 
NAKAJI Hiroyuki ($BCf<#(B $B909T(B)
