All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] segfault
@ 2015-02-09  2:20 Mathew Benson
  2015-02-09 13:08 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Mathew Benson @ 2015-02-09  2:20 UTC (permalink / raw)
  To: xenomai@xenomai.org

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, 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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] segfault
  2015-02-09  2:20 [Xenomai] segfault Mathew Benson
@ 2015-02-09 13:08 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2015-02-09 13:08 UTC (permalink / raw)
  To: Mathew Benson; +Cc: xenomai@xenomai.org

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-09 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09  2:20 [Xenomai] segfault Mathew Benson
2015-02-09 13:08 ` Gilles Chanteperdrix

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.