Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: uisimulator segfaults on winnt 4.0
From: for_spam_at_gmx.de
Date: 2003-06-24


Hello Daniel,
it bangs before main!
I have no clue about debugging, but i was digging the net and found some
infos - so i set another
breakpoint at mainCRTStartup, as this was suggested somewhere.

this is what I get:
Administrator_at_IS030-VM3 ~/build
$ gdb uisw32.exe
GNU gdb 2003-01-28-cvs (cygwin-special)
Copyright 2003 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) break mainCRTStartup
Breakpoint 1 at 0x401006
(gdb) break main
Breakpoint 2 at 0x419ffa: file ../../firmware/drivers/lcd-recorder.c, line
848.
(gdb) run
Starting program: /home/rockbox/build/uisw32.exe

Breakpoint 1, 0x00401006 in mainCRTStartup ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00000024 in ?? ()
(gdb) bt
#0 0x00000024 in ?? ()
Cannot access memory at address 0x17100fe
(gdb)

So it seems to crash somewhere between mainCRTStartup()? (eeerrrr - what is
that?) and main(). What is executed before main() ?
Whatelse can I do ? I`m happily if I can learn something about debugging....

regards
roland

> On Tue, 24 Jun 2003 for_spam_at_gmx.de wrote:
>
> > (gdb) run
> > Starting program: /home/rockbox/build/uisw32.exe
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x00000024 in ?? ()
> > (gdb) bt
> > #0 0x00000024 in ?? ()
> > Cannot access memory at address 0x2900ce
> > (gdb)
>
> This (lack of info) indicates one of the following:
>
> o it dies very early in an address where we have no debug info
>
> o this is a stack overflow that ruined the stack trace and gdb is lost
>
> I'd suggest that you do the slightly more tedious approach instead: set a
> break-point in main and single-step forward until it bangs...
>
> --
> Daniel Stenberg -- http://rockbox.haxx.se/ -- http://daniel.haxx.se/
>

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa