X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org To: Cygwin List Subject: segmentation fault in /sbin/init from sysvinit package under 1.7.1 From: "Dr. Volker Zell" Date: Mon, 22 Feb 2010 11:57:34 +0100 Message-ID: <7ziq9pzgf5.fsf@vzell-de.de.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi When running the cygwin 1.5 version under 1.7.1 there is a segmentation violation showing up INIT: version 2.86 booting INIT: Entering runlevel: 3 INIT: no more processes left in this runlevel INIT: PANIC: segmentation violation! sleeping for 30 seconds. INIT: PANIC: segmentation violation! sleeping for 30 seconds. INIT: PANIC: segmentation violation! sleeping for 30 seconds. ... and the rc.d scripts do not get executed also it seems init is still running. Recompiling the sysvinit package under 1.7.1 doesn't help. I tried to debug the situation and the culprit seems to be line 2075 in the function call check_init_fifo in init.c: main init_main check_init_fifo /* Wait for data to appear, _if_ the pipe was opened. */ if (pipe_fd >= 0) while(!quit) { /* Do select, return on EINTR. */ FD_ZERO(&fds); FD_SET(pipe_fd, &fds); tv.tv_sec = 5; tv.tv_usec = 0; n = select(pipe_fd + 1, &fds, NULL, NULL, &tv); <----------- 2075 if (n <= 0) { if (n == 0 || errno == EINTR) return; continue; } I'm lost here and would need a little help. init.exe is just one source code file. init runs fine under 1.5 Ciao Volker -- 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