This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18333] FAIL: timezone/tst-tzset (segmentation fault)


https://sourceware.org/bugzilla/show_bug.cgi?id=18333

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(gdb) bt
#0  __GI__IO_file_xsgetn (fp=<optimized out>, data=<optimized out>, 
    n=4294967295) at fileops.c:1434
#1  0xf7a95cdd in __GI___fread_unlocked (buf=<optimized out>, 
    size=size@entry=1, count=count@entry=4294967295, fp=fp@entry=0x604340)
    at iofread_u.c:44
#2  0xf7ad5a22 in __tzfile_read (file=<optimized out>, 
    file@entry=0x604303 "/tmp/tst-tzset-5VrVdp", extra=extra@entry=0, 
    extrap=extrap@entry=0x0) at tzfile.c:404
#3  0xf7ad48ea in tzset_internal (explicit=1, always=1) at tzset.c:443
#4  __tzset () at tzset.c:596
#5  0x00401eda in test_tz_file (size=4294967290) at tst-tzset.c:108
#6  0x0040205d in do_test () at tst-tzset.c:164
#7  0x00401a8e in main (argc=1, argv=0xffffcf18) at ../test-skeleton.c:369
(gdb) p count
$11 = -135168
(gdb) p (unsigned int) count
$12 = 4294832128
(gdb) 

If count is greater than SSIZE_MAX, the result is unspecified.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]