Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/arch/atari/stand/installboot
I wrote:
> With unstripped binary, it looks distrib/utils/libhack issue?
>
> ---
> (gdb) run y/0123456789/abcdefghij/
> Starting program: /r/work/netbsd-7/src/distrib/atari/floppies/install/obj.atari/sed/sed y/0123456789/abcdefghij/
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0008bbce in mbsrtowcs ()
> (gdb) bt
> #0 0x0008bbce in mbsrtowcs ()
> #1 0x0006f9b2 in compile_stream.clone ()
> #2 0x0006fbf2 in compile$$from$$sed ()
> #3 0x0006ff28 in _crunched_sed_stub ()
> #4 0x000021e6 in ___start ()
> #5 0x000020d4 in _start ()
> (gdb)
With -g debug binary:
---
(gdb) run y/0123456789/abcdefghij/
Starting program: /r/work/netbsd-7/src/distrib/atari/floppies/install/obj.atari/sed/sed y/0123456789/abcdefghij/
Program received signal SIGSEGV, Segmentation fault.
0x0007d662 in mbrtowc (ps=0x0, max_sz=1, str=0xffefdc27 "0123456789", wc=0x0)
at /r/work/netbsd-7/src/distrib/utils/libhack/multibyte.c:15
15 return str == NULL || (*wc = (unsigned char)*str) == 0 ? 0 : 1;
(gdb) bt
#0 0x0007d662 in mbrtowc (ps=0x0, max_sz=1, str=0xffefdc27 "0123456789",
wc=0x0) at /r/work/netbsd-7/src/distrib/utils/libhack/multibyte.c:15
#1 mbsrtowcs (pwcs=0x0, s=0xffefd41c, n=0, ps=0x0)
at /r/work/netbsd-7/src/distrib/utils/libhack/multibyte.c:98
#2 0x00062dee in compile_tr (py=0x10204054, p=0x1bc325 <lbuf+24> "")
at /r/work/netbsd-7/src/usr.bin/sed/compile.c:676
#3 compile_stream (link=0x10204040)
at /r/work/netbsd-7/src/usr.bin/sed/compile.c:356
#4 0x00063010 in compile () at /r/work/netbsd-7/src/usr.bin/sed/compile.c:144
#5 0x00101a24 in main (argc=<optimized out>, argv=0xffefecc0)
at /r/work/netbsd-7/src/usr.bin/sed/main.c:207
#6 0x000021e6 in ___start ()
#7 0x000020d4 in _start ()
(gdb)
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index