This is the mail archive of the
mailing list for the Cygwin project.
- From: Pavel Tsekov <ptsekov at syntrex dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 4 Jul 2002 15:09:27 +0200
- Subject: Re: vmstat
- Organization: Syntrex, Inc.
- References: <OF9302AC86.0EB950DE-ON85256BE4.005579C2@isn.instinet.com><00b901c21df9$1c9e3df0$0100a8c0@advent02> <20020627163750.GA27819@redhat.com><010901c21dfa$de6d74e0$0100a8c0@advent02> <3D1B5A59.email@example.com><3D1B92A6.firstname.lastname@example.org < <00be01c22359$b9e7c170$0100a8c0@advent02>
- Reply-to: Pavel Tsekov <cygwin-apps at cygwin dot com>
Thursday, July 04, 2002, 2:52:59 PM, you wrote:
CJ> This is caused by the default alignment changing from 4 bytes to 8 bytes, as
CJ> far as i can tell. Basically the size of structure passed to the NT system
CJ> calls is not the size of structure the call expects, so it fails and the
CJ> program (top, uptime, etc.) gets stuck in a loop trying to read data.
CJ> I did add macros to ntdll.h to make sure the structures were aligned
CJ> correctly, but then Chris changed the alignment back so I removed them. I
CJ> shall let Chris comment on this.
I was replying to your previous mail as I got this one. It's good that
you already found the cause for this problem.
Btw I tried to set a breakpoint in uptime, but unfortunatly gdb hits it
only, if it is set on main() - if i try to step the code from there, it
just stucks ... Weird thing...