public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* With the latest snapshot, cygrunsrv segfaults but works after it's recompiled
@ 2011-11-29  8:38 Daniel Colascione
  0 siblings, 0 replies; only message in thread
From: Daniel Colascione @ 2011-11-29  8:38 UTC (permalink / raw)
  To: cygwin

With the latest cygwin1.dll snapshot, the existing cygrunsrv binary
(version 1.34-1, the latest version from setup.exe) segfaults on
startup, sending a message to the Windows Application log or syslog,
depending on whether syslog is running. This segfault happens only when
I try to run the service as my domain user; running my service as
cyg_server works fine. The crash happens with all service binaries, even
/bin/true and whoami.exe. The crash persists after I run rebaseall and
peflagsall.

I can't get a stack trace because I can't attach a debugger to cygrunsrv
before it crashes, and the program doesn't leave any stack dumps behind,
or at least I couldn't find any. I tried using gflags to get windbg to
attach to cygrunsrv.exe on startup, but using this option seemed to have
no effect.

The program does sometimes spit out interesting log messages: "poorman:
PID 6016: starting service `' failed: redirect_fd: open (1, /dev/null):
17, File exists" This message was generated when I registered the
service with -1 /dev/null. The program outputs a similar message for any
log file supplied at registration time.

(Sometimes the program crashes with signal 11; other times, it prints
out an odd message about failing to open a log file, then exits with
status 1. I haven't recognized any pattern.)

If I build cygrunsrv myself from the source package (again for 1.34-1),
however, and replace /bin/cygrunsrv.exe with the one I built, the
service starts and runs fine. Did the ABI change?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-29  7:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29  8:38 With the latest snapshot, cygrunsrv segfaults but works after it's recompiled Daniel Colascione

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).