From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Mathew Benson <mathew.benson@gmail.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] segfault
Date: Mon, 9 Feb 2015 14:08:59 +0100 [thread overview]
Message-ID: <20150209130859.GA3200@hermes.click-hack.org> (raw)
In-Reply-To: <CA+C+_XRGJinM4nkPutZMO5ZUOEz9tFKhQww2_DOuM+PJquvVXQ@mail.gmail.com>
On Sun, Feb 08, 2015 at 08:20:54PM -0600, Mathew Benson wrote:
> I have a program thats segfaulting when I add additional real time threads
> that each take up resources. By themselves or in small groups, they're
> fine. But as I scale it up, it crashes. I haven't got gdb to work right
> yet,
What happens when you run the application inside gdb ?
> so it crashes in such a way that prevent me from pulling any debug
> information out. I ran dmesg, but don't see anything meaningful. Are
> there other logs I can look at?
In your application, check all the return values of all the services
you use, especially functions like malloc returning pointers.
Also, what is the stack size of the threads you create, is it
sufficient? Is not it too much? See:
https://xenomai.org/troubleshooting-a-dual-kernel-configuration/#the_application_overconsumes_system_memory
--
Gilles.
prev parent reply other threads:[~2015-02-09 13:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-09 2:20 [Xenomai] segfault Mathew Benson
2015-02-09 13:08 ` 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=20150209130859.GA3200@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=mathew.benson@gmail.com \
--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.