X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <081020144229 DOT ZM1710 AT adobe DOT com> <20081023135451 DOT GB21067 AT calimero DOT vinschen DOT de> <20081023140902 DOT GR9289 AT calimero DOT vinschen DOT de> Subject: RE: cygwin bash crashes on Win Serv 2008 Date: Thu, 23 Oct 2008 16:40:26 +0100 Message-ID: <010e01c93525$ab77b160$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20081023140902.GR9289@calimero.vinschen.de> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Corinna Vinschen wrote on 23 October 2008 15:09: >> The crashes don't occur in Cygwin, but in the application code. As I >> said, one of the crashing apps is bash. I created a full debug bash >> version and a special debug version of GDB which, for some reason, runs >> fine, in contrast to the net release version of GDB. What happens is >> that some arbitrary application function is called from main() and the >> first instruction in this function is the opcode for storing the frame >> pointer on the stack, `push %ebp'. > > I seem to have missed the point here. The point is, this `push %ebp' > instruction is the one crashing, producing a segmentation violation. What's the underlying windows exception (i.e. before cygwin translates that into SEGV)? > >> This is, in theory, an entirely >> harmless operation. The stack and register content before and after the >> crash are looking absolutely normal. The push does neither operate on >> an invalid address nor on a page boundary, nor is it misaligned. It's >> just a push to some arbitrary address within an existing stack page. Only thing I can think of is "Not if %ss has been mucked around with it isn't". I'd use windbg on this, take a look at the exception record and selectors and stuff. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/