This is the mail archive of the cygwin mailing list for the Cygwin 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] | |
Hello,
I wrote a small program in order to get an idea of context switch
times of the Linux kernel. The program runs fine on Linux. Valgrind
2.2.0 does report the program to be clean. Just out of curiosity, I
tried to compile and run the same program with Cygwin. However, on
cygwin it segfaults. Did I do anything wrong, or is this a cygwin bug
?
$ ./ctxtsw.exe
Iterations: 5
Segmentation fault (core dumped)
$ cat ctxtsw.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=00000001
eax=00000000 ebx=00446048 ecx=00000004 edx=00000000 esi=00000001 edi=18ACEF78
ebp=18ACEF88 esp=18ACEF70
program=C:\cygwin\home\B\test\ctxtsw\ctxtsw.exe, pid 2044, thread
unknown (0x884)
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
18ACEF88 00000001 (00000000, FFFFFFFF, 18ACEFC8, 61003B7D)
18ACEFC8 6109D17E (004D07B0, 18ACF000, 6109D110, 00000000)
18ACEFF8 61003E94 (00000000, 00000000, 00000000, 00000000)
18ACFF98 61003EDA (00000000, 00000000, 00000000, 00000000)
End of stack trace
$
Cygwin DLL version info:
DLL version: 1.5.18
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 132
Shared data: 4
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Sat Jul 2 20:30:04 EDT 2005
Shared id: cygwin1S4
Attachment:
ctxtsw.cpp
Description: Text document
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |