Mail Archives: cygwin-developers/2001/09/23/11:59:53
>>> On Sun, 23 Sep 2001 17:13:57 +0200
>>> Corinna Vinschen <vinschen AT redhat DOT com> said:
> It doesn't happen for me. Could you debug that with gdb?
(gdb) where
#0 0x61002679 in cstrdup (s=0x240ea24 <Address 0x240ea24 out of bounds>)
at ../../../../winsup/cygwin/cygheap.cc:349
#1 0x610a91c8 in fhandler_base::operator= (this=0x6146616c, x=@0x614626fc)
at ../../../../winsup/cygwin/fhandler.cc:41
#2 0x61009255 in dtable::dup_worker (this=0x614600d4, oldfh=0x614626fc)
at ../../../../winsup/cygwin/dtable.cc:353
#3 0x6100a00d in dtable::vfork_child_dup (this=0x614600d4)
at ../../../../winsup/cygwin/dtable.cc:566
#4 0x6102f69b in vfork () at ../../../../winsup/cygwin/fork.cc:721
#5 0x00402a3f in _size_of_stack_reserve__ ()
#6 0x00401d90 in _size_of_stack_reserve__ ()
#7 0x00401ce5 in _size_of_stack_reserve__ ()
...
(gdb) up
#1 0x610a91c8 in fhandler_base::operator= (this=0x6146616c, x=@0x614626fc)
at ../../../../winsup/cygwin/fhandler.cc:41
41 win32_path_name = x.win32_path_name ? cstrdup (x.win32_path_name) : NULL;
(gdb) p x
$3 = (fhandler_base &) @0x614626fc: {status = 1082241040, cb = 60,
access = -2147483648, io_handle = 0x8c, namehash = 259195384,
openflags = 65536, rabuf = 0x0, ralen = 0, raixget = 0, raixput = 0,
rabuflen = 0, unix_path_name = 0x610b1a64 "some disk file",
win32_path_name = 0x240ea24 <Address 0x240ea24 out of bounds>,
open_status = 1082241040, _vptr$ = 0x610af980}
(gdb)
____
| AIST Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
| HOKURIKU Center for Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology
- Raw text -