delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/29/02:05:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_DB
X-Spam-Check-By: sourceware.org
Message-ID: <4ED48413.5090000@gmail.com>
Date: Mon, 28 Nov 2011 23:04:51 -0800
From: Daniel Colascione <dan DOT colascione AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: With the latest snapshot, cygrunsrv segfaults but works after it's recompiled
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019