status access violation

Enrico Bernardini enrico@adm.Unipi.IT
Fri Jan 11 04:17:00 GMT 2002


Hi,
my program hav a strange beaviour:
It is like this example:
main
{
...
setuid(client_uid);
...

switch(fork())
case default:
...
break;

case 0: /* child */
...
execle(...);
break;
}

well, it works but when I remove a stupid unrelated piece of code
(setuid(client_uid);) 
in the main, the process crashes with:

Exception: STATUS_ACCESS_VIOLATION at eip=61008D0E
eax=0070FB38 ebx=03090309 ecx=00000000 edx=03090309 esi=00E90AD8
edi=00000000
ebp=0070FB0C esp=0070FAF4
program=C:\CYGWIN\USR\LOCAL\LIBEXEC\AMANDAD.EXE
cs=0167 ds=016F es=016F fs=408F gs=37A6 ss=016F
Stack trace:
Frame     Function  Args
0070FB0C  61008D0E  (03090309, 0070FB38, 00408004, 00000004)
0070FB3C  61008D86  (03090309, 00405AAA, 00000004, 6105B8DD)
0070FB7C  00405B02  (00000004, 61099368, 00000001, 00000000)
0074FD2C  00401C6E  (00000001, 61552998, 00E90278, 00000000)
0074FD88  61003FA2  (00000000, 00000000, 4D088DCE, 00000002)
0074FDB8  610041B9  (00401448, 00000000, 81640760, 00000000)
0074FDD8  610041F9  (00000000, 00000000, FFFFFFFF, 00000001)
0074FE08  004073AB  (00401448, 0074FC8C, BFFC9490, 0074FF68)
0074FE38  0040103D  (00000000, 81676734, 00000000, 6E616D41)
0074FF78  BFF8B560  (8164071C, 00000008, 81676734, 00000000)
      0 [main] amandad 258517 handle_exceptions: Error while dumping
state (prob
ably corrupted stack)

The process forks but it crashes during the execle call.

Can anybody please help me?

Thanks a lot
Enrico
-- 

Enrico Bernardini
System Administrator

Servizio Sistema Bibliotecario
Universita' di Pisa

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list