[Bug 204156] fmemopen tests failing after r289863

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 1 05:19:47 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204156

--- Comment #7 from NGie Cooper <ngie at FreeBSD.org> ---
$ gdb710 ~/fmemopen2_test fmemopen2_test.core 
GNU gdb (GDB) 7.10 [GDB v7.10 for FreeBSD]
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd11.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/ngie/fmemopen2_test...done.
[New process 100105]
Core was generated by `fmemopen2_test'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00000008008dd2ca in thr_kill () from /lib/libc.so.7
(gdb) bt
#0  0x00000008008dd2ca in thr_kill () from /lib/libc.so.7
#1  0x00000008008dd29b in raise () from /lib/libc.so.7
#2  0x00000008008dd209 in abort () from /lib/libc.so.7
#3  0x00000008009293d1 in __assert () from /lib/libc.so.7
#4  0x0000000000400d79 in main () at /home/ngie/fmemopen2_test.c:94
(gdb) list 94
89              rc = fseek(fp, 0, SEEK_SET);
90              ATF_REQUIRE(rc == 0);
91
92              /* Make sure we're at the beginning. */
93              pos = ftell(fp);
94              ATF_REQUIRE(pos == 0);
95
96              /* Read the whole buffer. */
97              nofr = fread(str3, 1, sizeof(buf), fp);
98              ATF_REQUIRE(nofr == sizeof(str3));
(gdb) frame 4
(gdb) p *fp                                                                     
$1 = {_p = 0x800bb60b7 "", _r = 0, _w = 0, _flags = 282, _file = -1, _bf =
{_base = 0x800bb60b7 "", _size = 1}, _lbfsize = 0, _cookie = 0x800e15000,
_close = 0x80086dd50, _read = 0x80086dc10, 
  _seek = 0x80086dce0, _write = 0x80086dc60, _ub = {_base = 0x0, _size = 0},
_up = 0x0, _ur = 0, _ubuf = "\000\000", _nbuf = "", _lb = {_base = 0x0, _size =
0}, _blksize = 0, _offset = 0, 
  _fl_mutex = 0x0, _fl_owner = 0x0, _fl_count = 0, _orientation = -1, _mbstate
= {__mbstate8 = '\000' <repeats 127 times>, _mbstateL = 0}, _flags2 = 0}
(gdb) p pos
$2 = 44

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-testing mailing list