This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Perplexed about building bash


On Fri, Feb 02, 2001 at 05:36:13PM -0500, Earnie Boyd wrote:
>  Can some one
> suggest a method of debugging this?  Can some one say that they can

The only way I can see is using gdb. How do you want to get
reliable information otherwise? Using Insight is somewhat
easier if you are not that familar with gdb.

> Can some one say that they can
> build bash-2.04 natively using Cygwin and execute it?

I can. The current bash in latest is a native build in a
Cygwin environment created by setup.exe. gcc-2.95.2-6, cygwin
1.1.8 (currently 1.3.0). I'm using the following config script:

======= SNIP ========
#!/bin/sh

#DEBUG=echo

SRCDIR=../src

HOST=i686-pc-cygwin
BUILD=${HOST}
TARGET=i686-pc-cygwin

PREFIX=/usr
EXECPREFIX=${PREFIX}
BINDIR=/bin
SYSCONFDIR=/etc
LIBEXECDIR=${EXECPREFIX}/sbin

OPTS=--enable-haifa

${DEBUG} ${SRCDIR}/configure \
        ${OPTS} \
        --prefix=${PREFIX} \
        --exec-prefix=${EXECPREFIX} \
        --bindir=${BINDIR} \
        --sysconfdir=${SYSCONFDIR} \
        --libexecdir=${LIBEXECDIR} \
        --host=${HOST} \
        --build=${BUILD} \
        --target=${TARGET}
======= SNAP ========

> Exception: STATUS_ACCESS_VIOLATION at eip=6104678E

This is the spawn_guts function, called by some exec(2) call

> eax=0000012E ebx=0258FDD0 ecx=00000001 edx=FFFFFFFF esi=00000000 edi=0000012E
> ebp=0258FA5C esp=0258FCFC program=c:\cygmnt\prj\esys\pkg\bld\app\bash\2.04\bash.exe
> cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
> Stack trace:
> Frame     Function  Args
> 0258FA5C  6104678E  (00000000, 00000000, 00000000, 00000000)
> 0258FD14  6104678E  (FFFFFFFF, 0258FD68, 00001000, 6100D22B)
> 0258FD54  6100D25A  (FFFFFFFF, FFFFFFFF, 0A010000, 00001000)
> 0258FD84  6103EB51  (00000001, 0258FDD0, 0258FDCC, 00001000)
> 0258FDD4  00468C05  (00000003, 77F1C6C8, 0258FE04, 00468D97)
> 0258FE04  00468EA2  (00000010, 00000000, 00000000, 61083EE0)
> 0258FE24  6102463C  (00000010, 0258FE60, 61024A53, 61083EE0)
> 0258FE60  61024A82  (000000AC, 12010618, 0258FF40, 610315AB)
> 0258FEB0  6102212C  (00000001, 77F013AC, 0258FF10, 61003546)
> 0258FF10  61003558  (00000000, 00000000, 77F76387, 77F7638F)
> 0258FF40  61003AAD  (00401208, 00000000, 80DDA068, 7FFDD000)
> 0258FF60  61003AEC  (00000000, 00000000, 809D8053, 80D1F100)
> 0258FF90  0046A7E3  (00401208, 00000000, 00000246, 8011748B)
> 0258FFC0  0040103D  (00000000, 00000000, 7FFDF000, 7FFDF000)
> 0258FFF0  77F1BA06  (00401000, 00000000, 000000B0, 00000100)
> End of stack trace

> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]