This is the mail archive of the
mailing list for the eCos project.
Re: Synth environment malloc seg faults under Fedora Linux
- From: Bart Veer <bartv at ecoscentric dot com>
- To: djakubiec at yahoo dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 30 Jan 2004 16:37:39 +0000 (GMT)
- Subject: Re: [ECOS] Synth environment malloc seg faults under Fedora Linux
- References: <email@example.com>
>>>>> "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 getting
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 some
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 try
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 brk
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
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss