From: Philippe Gerum <rpm@xenomai.org>
To: Ronny Meeus <ronny.meeus@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [xenomai-forge] psos: crash while stressing event timers
Date: Wed, 05 Jun 2013 11:38:03 +0200 [thread overview]
Message-ID: <51AF06FB.6020707@xenomai.org> (raw)
In-Reply-To: <51AEF87A.8060506@xenomai.org>
On 06/05/2013 10:36 AM, Philippe Gerum wrote:
> On 06/05/2013 10:28 AM, Ronny Meeus wrote:
>
>> the testcode is attached to the initial mail.
>> The issue can be reproduced in all kinds of environments.
>>
>
> Ok, I overlooked the link. I'll have a look and let you know, thanks.
>
I can reproduce this bug as well, at least a bug with the same symptoms.
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./settime --cpu-affinity=0,1,2 --silent -s -t 1
-b 30 -o 1'.
Program terminated with signal 11, Segmentation fault.
#0 malloc_consolidate (av=av@entry=0x7f6f7c000020) at malloc.c:4143
4143 unlink(av, p, bck, fwd);
(gdb) bt
#0 malloc_consolidate (av=av@entry=0x7f6f7c000020) at malloc.c:4143
#1 0x0000003d7147c988 in _int_free (av=0x7f6f7c000020, p=0x7f6f7c000990,
have_lock=0) at malloc.c:4043
#2 0x00007f6fe6d14f3a in pvfree (ptr=0x7f6f7c0009a0)
at /home/rpm/git/xenomai-forge/include/copperplate/heapobj.h:156
#3 0x00007f6fe6d15062 in delete_timer (tm=0x7f6f7c0009a0)
at /home/rpm/git/xenomai-forge/lib/psos/tm.c:67
#4 0x00007f6fe6d150d5 in post_event_once (tmobj=0x7f6f7c0009b8)
at /home/rpm/git/xenomai-forge/lib/psos/tm.c:80
#5 0x00007f6fe6adbd99 in timerobj_server (arg=0x0)
at /home/rpm/git/xenomai-forge/lib/copperplate/timerobj.c:205
#6 0x0000003d71c07d15 in start_thread (arg=0x7f6fe67a3700)
at pthread_create.c:308
#7 0x0000003d714f248d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114
(gdb) q
However, I have to allow multiple CPUs for running the test, pinning it
with --cpu-affinity on a single processor papers over the issue it
seems. Ok, digging it.
--
Philippe.
next prev parent reply other threads:[~2013-06-05 9:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-04 20:26 [Xenomai] [xenomai-forge] psos: crash while stressing event timers Tom Philips
2013-06-05 8:02 ` Philippe Gerum
2013-06-05 8:28 ` Ronny Meeus
2013-06-05 8:36 ` Philippe Gerum
2013-06-05 9:38 ` Philippe Gerum [this message]
2013-06-05 9:51 ` Tom Philips
2013-06-05 9:59 ` Philippe Gerum
2013-06-05 10:11 ` Ronny Meeus
2013-06-05 10:25 ` Philippe Gerum
2013-06-05 20:50 ` Philippe Gerum
2013-06-07 10:39 ` Ronny Meeus
2013-06-11 10:10 ` Ronny Meeus
2013-06-11 10:21 ` Philippe Gerum
-- strict thread matches above, loose matches on Subject: below --
2013-06-04 10:56 Ronny Meeus
2013-06-04 12:41 ` Philippe Gerum
2013-06-04 12:57 ` Ronny Meeus
2013-06-04 14:04 ` Philippe Gerum
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=51AF06FB.6020707@xenomai.org \
--to=rpm@xenomai.org \
--cc=ronny.meeus@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.