This is the mail archive of the
mailing list for the eCos project.
Re: Synth environment malloc seg faults under Fedora Linux
- From: Dan Jakubiec <djakubiec at yahoo dot com>
- To: Bart Veer <bartv at ecoscentric dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 30 Jan 2004 12:04:11 -0800 (PST)
- Subject: Re: [ECOS] Synth environment malloc seg faults under Fedora Linux
Thanks for the suggestions. I went ahead and built a synth executable
under the older RH9 system using the older toolchain. I used the same
eCos code base I've been working with under Fedora. I then copied the
resulting executable to my Fedora box and sure enough: it worked! Good
So it appears that the new GNU toolchain is causing me some strange
problems with the synth environment build. Just FYI, my gcc versions
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
I suppose the "quick" solution for me is to install the gcc 3.2.2
compiler on my Fedora box and use that for synth builds. This should
be fine for my purposes.
Is there someone in particular who deals with the compiler version
migration issues? Can I provide any more information about this or
help out in some way?
--- Bart Veer <email@example.com> wrote:
> >>>>> "Dan" == Dan Jakubiec <firstname.lastname@example.org> writes:
> Dan> We've been running the eCos synthetic environment under
> Dan> RedHat Linux 9.0 for quite awhile now. Recently, I installed
> Dan> a new development system running Fedora Core 1 (the new
> Dan> RedHat; RedHat 10?), rebuilt everything on the new machine,
> Dan> and the synth environment no longer runs.
> Dan> When I run the synth environment (with --io) it keeps
> Dan> segmentation faults down in
> Dan> Cyg_Mempool_dlmalloc_Implementation::try_alloc() at the last
> Dan> call to set_head(). This function is called in response to
> Dan> init-time malloc() requests.
> Dan> I'm about to start in on figuring out what the problem is,
> Dan> but I wanted to check if anyone has run into this yet. Our
> Dan> code based is mostly based on the eCos v2.0 release with
> Dan> miscellaneous patches.
> Dan> Any ideas?
> Nothing definite. After a major upgrade it could be toolchain changes
> causing the problem. If you build an executable under RH9 and then
> to run it under Fedora, does that work?
> The other thing worth trying is to look at _linux_entry() in the
> module synth_entry.c in the architectural HAL. Specifically the
> initial call to cyg_hal_sys_brk() which should make sure that all of
> the synthetic target's memory is actually accessible. A SEGV in the
> heap code could indicate that this is no longer working. After the
> call you should be able to access all memory from 0x02000000 to
> Bart Veer eCos Configuration Architect
> http://www.ecoscentric.com/ The eCos and RedBoot experts
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss