public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* NT 4.0 exception trap for elvis.exe
@ 1997-09-28 20:30 Anthony Tuininga
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Tuininga @ 1997-09-28 20:30 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

I compiled and installed without any trouble the ncurses 1.9.0 package under cygwin b18 (with Sergey's patches). I then compiled and linked the elvis binary without any trouble. However, executing the binary causes the following trap.... If someone could explain what the problem is I could look into what exactly is causing it (perhaps). Any help would be appreciated. Thanks.

(d:\opt\src\elvis-2.0\elvis.exe 1003) In cygwin_except_handler exc C0000005 at 42DCA6 sp 244F25C
(d:\opt\src\elvis-2.0\elvis.exe 1003) Exception trapped!
(d:\opt\src\elvis-2.0\elvis.exe 1003) exception C0000005 at 42DCA6
(d:\opt\src\elvis-2.0\elvis.exe 1003) exception: ax 0 bx 0 cx 0 dx 2EB3804
(d:\opt\src\elvis-2.0\elvis.exe 1003) exception: si 2EB403C di 42DBEE bp 244F268 sp 244F25C
(d:\opt\src\elvis-2.0\elvis.exe 1003) exception is: STATUS_ACCESS_VIOLATION
(d:\opt\src\elvis-2.0\elvis.exe 1003) Stack trace:
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 0: sp = 0x244F090, pc = 0x1000D140
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 1: sp = 0x244F0AC, pc = 0x77F94492
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 2: sp = 0x244F0D0, pc = 0x77F88E93
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 3: sp = 0x244F15C, pc = 0x77F76202
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 4: sp = 0x244F268, pc = 0x42A144
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 5: sp = 0x244F284, pc = 0x42B7FE
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 6: sp = 0x244F2A0, pc = 0x401FE3
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 7: sp = 0x244F2BC, pc = 0x4022DB
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 8: sp = 0x244F33C, pc = 0x402477
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 9: sp = 0x244F354, pc = 0x1000C2B0
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 10: sp = 0x244FF94, pc = 0x1000C2C3
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 11: sp = 0x244FFA0, pc = 0x43CB29
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 12: sp = 0x244FFB0, pc = 0x40103B
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 13: sp = 0x244FFC0, pc = 0x77F1B26B
(d:\opt\src\elvis-2.0\elvis.exe 1003) frame 14: sp = 0x244FFF0, pc = 0x0
(d:\opt\src\elvis-2.0\elvis.exe 1003) End of stack trace
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: NT 4.0 exception trap for elvis.exe
@ 1997-09-29 20:21 Anthony Tuininga
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Tuininga @ 1997-09-29 20:21 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

Thanks to a few people who responded to me privately I moved forward on this problem a little. I did a little more checking into my problem and found a bug in Sergeys patches. So I downloaded the latest version and that problem went away. :-) However, another problem appeared instead. :-( Apparently user privileges are not set properly? The following code is the source of the problem:

			if (stat(dir, &st) != 0
			 || !S_ISDIR(st.st_mode)
			 || !(st.st_uid == geteuid()
			 	? (st.st_mode & S_IRWXU) == S_IRWXU
			 	: st.st_gid == getegid()
			 		? (st.st_mode & S_IRWXG) == S_IRWXG
			 		: (st.st_mode & S_IRWXO) == S_IRWXO))
			{
				*dir = '\0';
			}
The "stat" call passes; the file is a directory check passes; st_uid is set to 544 (on my system as administrator) but the geteuid call returns 500. The check for user privileges passes but because the UID and EUID do not match it goes to the group level and then to the other level, both of which return 0 to indicate that the privilege is not there. Any idea on what is going on? At the moment I have commented out the above code -- all directories are writable on my system so its not a big problem but I would like to fix this more permanently. :-)

Anthony
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-29 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-28 20:30 NT 4.0 exception trap for elvis.exe Anthony Tuininga
1997-09-29 20:21 Anthony Tuininga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).