All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: alamo hwuang <lovealamo@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Help: What is this in xenomai? rtheap crash?
Date: Wed, 23 Mar 2011 09:01:48 +0100	[thread overview]
Message-ID: <4D89A8EC.1070702@domain.hid> (raw)
In-Reply-To: <AANLkTimFAxy81d7NErKOT0S4esN20DtQbUu4d42K4_8s@domain.hid>

alamo hwuang wrote:
> Hello , I am a new bird using the xemomai! I use my classmate program to run
> on the xenomai and I got the below information .It seems that the rtheap
> crash ??

Nope, this does not seem to have anything to do with rtheap.

> 
> 
> How can I solve this problem ????
> 
> the xenomai is 2.5.4 and the kernel is 2.6.34.5.

Please upgrade to Xenomai 2.5.6 (though the problem is not related).

> 
> 
> 
> 
> 
> thanks for your help.
> 
> linux-xkps1:~/Desktop/linux # Bin/APP_LTE_DEMO config.txt
> Noise Generated
> *** glibc detected *** Bin/APP_LTE_DEMO: malloc(): memory corruption:
> 0x00000000176fbba0 ***

This is the real error message, the heap (malloc heap, not rtheap) is
corrupted.

> ======= Backtrace: =========
> /lib64/libc.so.6(+0x75018)[0x7f6ae8eb6018]
> /lib64/libc.so.6(+0x77f7f)[0x7f6ae8eb8f7f]
> /lib64/libc.so.6(__libc_malloc+0x77)[0x7f6ae8ebb057]
> Bin/APP_LTE_DEMO[0x41f284]
> /usr/xenomai/lib/libnative.so.3(+0x728c)[0x7f6ae961328c]
> /lib64/libpthread.so.0(+0x75f0)[0x7f6ae981e5f0]
> /lib64/libc.so.6(clone+0x6d)[0x7f6ae8f1584d]

This backtrace shows that the error is detected by glibc malloc.

> ======= Memory map: ========
> (...)
> 7f6aea15a000-7f6aea15d000 rw-s 00000000 00:0e 2199
> /dev/rtheapAborted

This is a list of the mapped areas which show that the rtheap is mapped,
which is normal, but the rtheap has nothing to do with the normal heap
corruption.

Heap corruption is a sign that something misbehaves, and write on memory
that is not currently allocated, or some block was freed twice, things
like that. The most probable culprit is the application itself and it is
what should be investigated first.

Same remark as previous mail: you should use xenomai-help for such
questions, not xenomai-core.

-- 
                                                                Gilles.


      reply	other threads:[~2011-03-23  8:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-23  3:40 [Xenomai-core] Help: What is this in xenomai? rtheap crash? alamo hwuang
2011-03-23  8:01 ` Gilles Chanteperdrix [this message]

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=4D89A8EC.1070702@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=lovealamo@domain.hid \
    --cc=xenomai@xenomai.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.