public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: gdb received signal SIGSEGV before even entering main!
       [not found] <200211290518.gAT5IoP02480@mx1.redhat.com>
@ 2002-11-29  2:31 ` cygwin
  0 siblings, 0 replies; 2+ messages in thread
From: cygwin @ 2002-11-29  2:31 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: cygwin

Wrong mailing list.  Redirected.

On Fri, Nov 29, 2002 at 05:43:13AM +0000, jing.dong@attbi.com wrote:
>The program I ran gdb on a very standard hello world program, it crashes even 
>before main is entered. 
>Anybody have an idea how to solve this problem?
>Any help is appreciated.
>
>The following is a running script:
>
>/home/john> gdb -nw a
>GNU gdb 5.0 (20010428-3)
>Copyright 2001 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB.  Type "show warranty" for details.
>This GDB was configured as "i686-pc-cygwin"...
>(gdb) b main
>Breakpoint 1 at 0x4010b6: file hello.c, line 3.
>(gdb) r
>Starting program: /home/john/a.exe
>
>Program received signal SIGSEGV, Segmentation fault.
>0x77e75a3d in _libkernel32_a_iname ()
>(gdb) q
>The program is running.  Exit anyway? (y or n) y
>
>/home/john> a
>Hello
>
>/home/john> gcc -v
>Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
>Configured with: /netrel/src/gcc-3.2-1/configure --enable-
>languages=c,c++,f77,ja
>va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --
>with
>out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-
>ve
>rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-
>pc
>-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr
>--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --
>libexecd
>ir=/usr/sbin
>Thread model: posix
>gcc version 3.2 20020818 (prerelease)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* gdb received signal SIGSEGV before even entering main!
@ 2002-11-29  2:42 jing.dong
  0 siblings, 0 replies; 2+ messages in thread
From: jing.dong @ 2002-11-29  2:42 UTC (permalink / raw)
  To: cygwin

The program I ran gdb on a very standard hello world program, it crashes even 
before main is entered. 
Anybody have an idea how to solve this problem?
Any help is appreciated.

The following is a running script:

/home/john> gdb -nw a
GNU gdb 5.0 (20010428-3)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) b main
Breakpoint 1 at 0x4010b6: file hello.c, line 3.
(gdb) r
Starting program: /home/john/a.exe

Program received signal SIGSEGV, Segmentation fault.
0x77e75a3d in _libkernel32_a_iname ()
(gdb) q
The program is running.  Exit anyway? (y or n) y

/home/john> a
Hello

/home/john> gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure --enable-
languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --
with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-
ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-
pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --
libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-29  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200211290518.gAT5IoP02480@mx1.redhat.com>
2002-11-29  2:31 ` gdb received signal SIGSEGV before even entering main! cygwin
2002-11-29  2:42 jing.dong

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