public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@cygnus.co.uk>
To: Christian Plessl <cplessl@ee.ethz.ch>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] GDB Download on i386 target hangs
Date: Mon, 09 Oct 2000 06:40:00 -0000	[thread overview]
Message-ID: <wwgu2am5e0b.fsf@balti.cygnus> (raw)
In-Reply-To: <5.0.0.25.0.20001006175309.009ee650@imap.ee.ethz.ch>

Christian Plessl <cplessl@ee.ethz.ch> writes:

> Hi Nick and others
> 
> >Have you built the test programs in a separate build tree from the
> >floppy monitor? If not, then it is very easy to get
> >cross-contamination and, for example, end up with you executables being
> >linked to the same memory locations as the monitor. The symptoms you
> >describe are consistent with the monitor being overwritten by the
> >download.
> 
> Thanks a lot. You guessed right. Now I've built the tests in a different 
> directory, using a i386 target configuration without stubs (is this right?).
>

Probably not, see later.

> Now I'm able to download the excecutables. But immediately after the 
> download, when I start the program on the target, I get an SIGILL on the 
> target:
> 
> GDB Warning:
> 
> Program received signal SIGILL, Illegal instruction
> 0x3270 in ?? () at /usr/local/pack/ecoscvs/ecos/packages/services/memalloc
> /common/current/src/dlmalloc.cxx:1257

What program are you actually running? Do any of the standard test
programs run? Do not take too much notice of what GDB says the
location is here. It is confused by the address being outside it's
known range and is making a guess.

> 
> It's alway the same address, where the debugger claims to find a illegal 
> instruction. But if I try to disassemble the code at this address in gdb, 
> gdb complains:
> 
> (gdb) disassemble 0x3270
> Error: No function contains specified address.
>

Try "x/1i 0x3270". On my machine this gives

0x3270: fild   (%edx)

which looks like it is halfway through an instruction in the stub
monitor. 


> When looking at the symboltable of the elf binary using nm, there is no 
> code located at 3270.
> 
> I'm somewhat confused and have the following questions:
> 
> a) Do I have to activate gdb stubs for my application?

You have to have GDB stubs included in the executable, there is not
sufficient support in the monitor for it to work. This should
happen by default, unless you have changed the configuration in any
way. Initially, just build the default RAM startup configuration
without changing anything, and make sure that something like the
kernel tm_basic test works.

> b) Whats the matter with this error in dlmalloc? Do I need additional 
> configuration for my dynamic allocatable memory on the heap?
>

As I said above, the problem is (probably) not in dlmalloc, that's
just GDB's guess at where it is.

> 
> A suggestion: Unfortunately there is AFAIK no FAQ on ECOS on i386, but when 
> reading the mailing list, I get the impression, that a lot of people do 
> have some trouble, when starting devolopment with the ECOS on i386. What 
> about collecting these questions and answers in a FAQ.
> 

That would be a good idea.


-- 
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK

  reply	other threads:[~2000-10-09  6:40 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Fred>
     [not found] ` <Fierling's>
     [not found]   ` <message>
     [not found]     ` <of>
     [not found]       ` <"Fri,>
     [not found]         ` <17>
     [not found]       ` <"Sat,>
     [not found]         ` <07>
     [not found]       ` <"Tue,>
     [not found]         ` <05>
     [not found]         ` <10>
     [not found]           ` <Jan>
     [not found]             ` <2001>
     [not found]       ` <Tue,>
     [not found]         ` <04>
     [not found]           ` <May>
     [not found]             ` <99>
     [not found]               ` <12:35:31>
     [not found]                 ` <PDT>
1999-05-04 13:51                   ` [ECOS] TCP/IP Stack for eCos Jay Lepreau
1999-05-04 17:06                     ` Fred Fierling
1999-05-04 17:43                       ` Brendan Simon
1999-05-05  5:15                       ` [ECOS] " Bart Veer
1999-05-05  1:54                     ` [ECOS] " Fernando D. Mato Mira
     [not found]       ` <"Wed,>
     [not found]         ` <5>
     [not found]           ` <Jul>
     [not found]             ` <2000>
     [not found]               ` <11:39:46>
     [not found]                 ` <+0200>
     [not found]                   ` <"Mon,>
     [not found]                     ` <09>
2000-07-05  2:40                   ` [ECOS] Connecting gdb to AEB Andreas.Karlsson
2000-07-05  2:53                     ` Jesper Skov
2000-07-05  3:12                       ` Robert Erskine
2000-10-05 12:33                   ` [ECOS] GDB Download on i386 target hangs Christian Plessl
2000-10-06  5:15                     ` Nick Garnett
2000-10-07  0:55                       ` Christian Plessl
2000-10-09  6:40                         ` Nick Garnett [this message]
2000-10-09 12:50                           ` Christian Plessl
2000-10-10  2:46                             ` Nick Garnett
2000-10-10  3:49                             ` Jesper Skov
     [not found]                             ` <5.0.0.25.0.20001010121538.009f5e30@imap.ee.ethz.ch>
     [not found]                               ` <wwg8zrwkiht.fsf@balti.cygnus>
2000-10-10  7:28                                 ` Christian Plessl
2000-10-10  7:58                                   ` Nick Garnett
2000-10-11  7:11                                     ` Christian Plessl
2000-10-11  7:20                                       ` Nick Garnett
2000-10-12  0:45                                         ` Jesper Skov
     [not found]               ` <11:11:19>
     [not found]                 ` <+0100>
     [not found]                   ` <Jesper>
2000-11-17  2:11                   ` [ECOS] forwarded message from Peter Graf Jesper Skov
2000-11-19 23:43                     ` Jesper Skov
2000-11-20  5:36                       ` [ECOS] Hitachi SH7709A problems Peter Graf
2000-11-20  6:58                         ` Jesper Skov
2000-11-20  7:20                           ` Peter Graf
2001-01-03  2:48                             ` Jesper Skov
2001-01-12  3:45                               ` Peter Graf
     [not found]               ` <20:29:19>
     [not found]                 ` <+0900>
2000-11-20  3:28                   ` [ECOS] Help me !!, Hello world on out target °íÀç¿ë
2000-11-20  3:43                     ` Jesper Skov
2000-11-20  5:54                       ` Lewin A.R.W. Edwards
2000-11-20  6:43                         ` Jesper Skov
2000-11-21 22:00                           ` Jonathan Larmour
     [not found]               ` <09:24:40>
     [not found]                 ` <-0500>
2000-12-05  6:26                   ` [ECOS] gdb/insight questions Lewin A.R.W. Edwards
2000-12-05  7:22                     ` Jesper Skov
2000-12-05  7:32                       ` Lewin A.R.W. Edwards
2000-12-05 20:15                     ` Jonathan Larmour
2000-12-06  4:13                       ` Lewin A.R.W. Edwards
2000-12-05 22:43                   ` Natarajan, Mekala (CTS)
2000-12-06  1:42                     ` Jesper Skov
2000-12-06  4:47                       ` Lewin A.R.W. Edwards
2001-01-10 16:42 [ECOS] Really dumb newbie question Tim Noell
2001-01-10 17:48 ` Lewin A.R.W. Edwards
2001-01-10 23:58   ` Jesper Skov
2001-01-11  6:05     ` Lewin A.R.W. Edwards
2001-01-11  7:26       ` Gary Thomas
2001-01-11  7:41         ` Grant Edwards
2001-01-11  7:51           ` Julian Smart
2001-01-11  8:01             ` Grant Edwards
2001-01-11  7:56           ` Gary Thomas
2001-01-11  8:36         ` Sergei Organov
     [not found] <Natarajan,>
     [not found] <Christian>
     [not found] <Lewin>
     [not found] ` <A.R.W.>

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wwgu2am5e0b.fsf@balti.cygnus \
    --to=nickg@cygnus.co.uk \
    --cc=cplessl@ee.ethz.ch \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).