From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Peter Soetens <peter@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] xeno_sigwinch_handler causes segfault with readline
Date: Tue, 16 Mar 2010 18:02:37 +0100 [thread overview]
Message-ID: <4B9FB9AD.2040509@domain.hid> (raw)
In-Reply-To: <201003161329.32546.peter@domain.hid>
Peter Soetens wrote:
> I'm testing with (don't shoot me)
> * 2.6.31.1-ipipe-2.4-07 #3 SMP
> * Xenomai 2.4.93 (please!)
>
> But a user reported with:
> * Kernel 2.6.32.7
> * Xenomai 2.5.1
>
> the same issue. When we first shadow the main thread and then call into
> readline code, we get segfaults, pointing to xeno_sigwinch_handler.
>
> According to docs, we need to be careful when installing a signal handler on
> winch after shadowing. Is this still the issue (I suppose so), or why don't we
> get a nice( that's relative) 'abort' explaining what to do instead of a
> segfault ?
>
> I'll delve into libreadline to see on how to override/disable the winching by
> readline, but I hope there is some standard solution, maybe by one of the
> Xenomai users.
We have an awful memory corruption issue with Xenomai 2.5.1, so please
upgrade to Xenomai 2.5 development head, it will be released as 2.5.2
this week-end, except maybe for some additions in analogy. Another
possibility is an issue with stack sizes, it may happen that libreadline
requires some huge stack sizes. We made some work to increase the
default stack size, but libreadline may need even more.
>
> Cheers,
> Peter
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Gilles Chanteperdrix, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2010-03-16 17:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-16 12:29 [Xenomai-help] xeno_sigwinch_handler causes segfault with readline Peter Soetens
2010-03-16 17:02 ` Gilles Chanteperdrix [this message]
2010-03-16 21:32 ` Peter Soetens
2010-03-17 5:14 ` Gilles Chanteperdrix
2010-03-17 9:09 ` Peter Soetens
2010-07-06 19:00 ` Peter Soetens
2010-07-06 19:17 ` Gilles Chanteperdrix
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=4B9FB9AD.2040509@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=peter@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.