This is the mail archive of the cygwin@sourceware.cygnus.com 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]

fork in win95 osr2


Hi all,
    I've just installed b18 of the developer packaged and tried a simple fork program in win95 osr 2 and win nt 4.0 SP3.
the following is the code...
 
#include <stdio.h>
 
void main()
{
 fork();
 printf("hello");
}
 
It worked fine on nt, but went cukoo with 95. The following is what 95 returned...
 
C:\tmp>a
hellohello(C:\TMP\A.EXE 1001) In cygwin_except_handler
(C:\TMP\A.EXE 1001) Exception trapped!
(C:\TMP\A.EXE 1001) exception C0000005 at BFF76F09
(C:\TMP\A.EXE 1001) exception: ax 81602049 bx 0 cx 7E9F227F dx 0
(C:\TMP\A.EXE 1001) exception: si 7E9F227F di 1000B8B3 bp 253F3A4 sp 253F360
(C:\TMP\A.EXE 1001) exception is: STATUS_ACCESS_VIOLATION
(C:\TMP\A.EXE 1001) Stack trace:
(C:\TMP\A.EXE 1001) frame 0: sp = 0x253F178, pc = 0x1000CEC2
(C:\TMP\A.EXE 1001) frame 1: sp = 0x253F194, pc = 0xBFF76780
(C:\TMP\A.EXE 1001) frame 2: sp = 0x253F1B8, pc = 0xBFF858F3
(C:\TMP\A.EXE 1001) frame 3: sp = 0x253F250, pc = 0xFFECBAD7
(C:\TMP\A.EXE 1001) frame 4: sp = 0x253F3A4, pc = 0x10027BEA
(C:\TMP\A.EXE 1001) frame 5: sp = 0x253F3B4, pc = 0x1000C223
(C:\TMP\A.EXE 1001) frame 6: sp = 0x253F3C8, pc = 0x1002DFF3
(C:\TMP\A.EXE 1001) frame 7: sp = 0x253F3DC, pc = 0x1000C108
(C:\TMP\A.EXE 1001) frame 8: sp = 0x253FE0C, pc = 0x1000C113
(C:\TMP\A.EXE 1001) frame 9: sp = 0x253FE18, pc = 0x4011BD
(C:\TMP\A.EXE 1001) frame 10: sp = 0x253FE28, pc = 0x40103B
(C:\TMP\A.EXE 1001) frame 11: sp = 0x253FE38, pc = 0xBFF88E93
(C:\TMP\A.EXE 1001) frame 12: sp = 0x253FF78, pc = 0xBFF88D41
(C:\TMP\A.EXE 1001) frame 13: sp = 0x253FFF4, pc = 0xBFF87759
(C:\TMP\A.EXE 1001) frame 14: sp = 0x8164AB7C, pc = 0x3
(C:\TMP\A.EXE 1001) In cygwin_except_handler
(C:\TMP\A.EXE 1001) Error while dumping state (probably corrupted stack)
Fork seems to work(managed to print 'twice'), but i dunno y it stuffs up after.
both these program were run on the same machine. is this a bug??
any info/pinters will be greatly appreaciate.
 
Cheers
 
William

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