Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Automated report: NetBSD-current/i386 test failure



Fixed, thanks!

christos

> On Apr 7, 2019, at 8:32 AM, Rin Okuyama <rokuyama.rk%gmail.com@localhost> wrote:
> 
> On 2019/04/07 1:00, Andreas Gustafsson wrote:
>> Christos Zoulas wrote:
>>> Must be, but I can't reproduce it, can you run gdb on the core file?
>> No need to go hunting or a core, simply running "date" with no
>> arguments will reproduce it.  Doing that under gdb shows:
>>   (gdb) where
>>   #0  0xac643b67 in ?? () from /lib/libc.so.12
>>   #1  0xac644496 in strftime_lz () from /lib/libc.so.12
>>   #2  0xac6444f2 in strftime_z () from /lib/libc.so.12
>>   #3  0xac64454b in strftime () from /lib/libc.so.12
>>   #4  0x00846af8 in main ()
>> I'll get you a backtrace with debug symbols later.
> 
> Hi,
> 
> Segmentation fault occurs depending on /etc/localtime:
> 
> % sudo ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
> % date
> Sun Apr  7 21:19:05 JST 2019
> % sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime
> % date
> zsh: segmentation fault (core dumped)  date
> 
> Also, it does not take place if strftime.c,v 1.43 is reverted
> (regardless of whether v 1.44 is applied or not).
> 
> Backtrace is attached below.
> 
> Thanks,
> rin
> ---
> % gdb date date.core
> GNU gdb (GDB) 8.0.1
> ...
> [New process 1]
> Core was generated by `date'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x00006fe6496ba120 in _add (ptlim=0x6fe64a0d1400 "",
>    pt=0x6fe64a0d1015 '\245' <repeats 200 times>...,
>    str=0x1 <error: Cannot access memory at address 0x1>)
>    at /build/src/lib/libc/time/strftime.c:740
> 740     /build/src/lib/libc/time/strftime.c: No such file or directory.
> (gdb) bt
> #0  0x00006fe6496ba120 in _add (ptlim=0x6fe64a0d1400 "",
>    pt=0x6fe64a0d1015 '\245' <repeats 200 times>...,
>    str=0x1 <error: Cannot access memory at address 0x1>)
>    at /build/src/lib/libc/time/strftime.c:740
> #1  _fmt (sp=<optimized out>, format=0x1a2c0276f "Z %Y",
>    format@entry=0x1a2c0275b "+%a %b %e %H:%M:%S %Z %Y",
>    t=t@entry=0x6fe649a0f460, pt=0x6fe64a0d1015 '\245' <repeats 200 times>...,
>    pt@entry=0x6fe64a0d1000 "+Sun Apr  7 12:19:13 ", '\245' <repeats 179 times>..., ptlim=ptlim@entry=0x6fe64a0d1400 "", warnp=warnp@entry=0x7f7fff48f4cc,
>    loc=<optimized out>) at /build/src/lib/libc/time/strftime.c:548
> #2  0x00006fe6496baa1a in _strftime_lz (sp=<optimized out>,
>    s=s@entry=0x6fe64a0d1000 "+Sun Apr  7 12:19:13 ", '\245' <repeats 179 times>..., maxsize=maxsize@entry=1024,
>    format=format@entry=0x1a2c0275b "+%a %b %e %H:%M:%S %Z %Y",
>    t=t@entry=0x6fe649a0f460, loc=<optimized out>)
>    at /build/src/lib/libc/time/strftime.c:152
> #3  0x00006fe6496baa41 in _strftime_z (sp=<optimized out>,
>    s=s@entry=0x6fe64a0d1000 "+Sun Apr  7 12:19:13 ", '\245' <repeats 179 times>..., maxsize=maxsize@entry=1024,
>    format=format@entry=0x1a2c0275b "+%a %b %e %H:%M:%S %Z %Y",
>    t=t@entry=0x6fe649a0f460) at /build/src/lib/libc/time/strftime.c:132
> #4  0x00006fe6496baa84 in strftime (
>    s=0x6fe64a0d1000 "+Sun Apr  7 12:19:13 ", '\245' <repeats 179 times>...,
>    maxsize=1024, format=0x1a2c0275b "+%a %b %e %H:%M:%S %Z %Y",
>    t=0x6fe649a0f460) at /build/src/lib/libc/time/strftime.c:708
> #5  0x00000001a2c020a5 in main (argc=<optimized out>, argv=<optimized out>)
>    at /build/src/bin/date/date.c:157
> (gdb) q
> %



Home | Main Index | Thread Index | Old Index