All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Waschk,Kolja" <xenoka09@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] debug posix skin - pthread_cond_wait return EPERM
Date: Thu, 20 Jan 2011 19:57:19 +0100 (CET)	[thread overview]
Message-ID: <alpine.DEB.2.00.1101201943440.2425@domain.hid> (raw)
In-Reply-To: <4D387148.3030306@domain.hid>

Hi,

> reference, and the program is bogus in the way it handles
> pthread_cond_wait errors, as I already explained,

You're certainly right with that. It's just that I have to deal with foreign
code that contains exactly such tight loops with pthread_cond_wait as its
only brake, and this code I'd like to use unmodified, as far as possible. Now
the test code try.c started as a clone of the original, so it has the same
obvious shortcomings.

> missing a call to mlockall without which it can not possibly run under
> Xenomai.

Oh, you're right (but it's present in the original code)

> program, since you should be using #include <pthread.h>, instead of
> #include <posix/pthread.h>, and more importantly, this program is

Yes. That's an artefact of another problem which seems more toolchain-related
in my case. Already noted in our issue tracking system. However, I tried to
verify that everything is wrapped and linked as supposed;

> So, to settle the matters, could you post here the result of
> "bfin-linux-uclibc-nm -s try".
> ?

The result is

00002158 A ___bss_start
00002158 b _completed.4861
000021ac B _cond
00001f78 d ___CTOR_END__
00001f74 d ___CTOR_LIST__
          w ___deregister_frame_info@domain.hid
00000e5c t ___do_global_ctors_aux
00000a58 t ___do_global_dtors_aux
00002068 D ___dso_handle
00000ea0 R _dt
00001f80 d ___DTOR_END__
0000215c b _dtor_idx.4863
00001f7c d ___DTOR_LIST__
00001f88 d _DYNAMIC
00002158 A __edata
00000f70 r ___EH_FRAME_BEGIN__
000021b8 A __end
00002184 B _errbits
          U ___errno_location
00000e8c T __fini
00000ac4 t _frame_dummy
00000f70 r ___FRAME_END__
000020e0 d __GLOBAL_OFFSET_TABLE_
00000780 T __init
00001f84 d ___JCR_END__
00001f84 d ___JCR_LIST__
          w __Jv_RegisterClasses
00002178 B _loopcount
00000c7c T _main
00002190 B _mutex
00002160 b _object.4883
          U _printf
00000b0c W _pthread_atfork
          U _pthread_attr_init
          U _pthread_join
          w ___register_frame_info@domain.hid
00000f70 R __ROFIXUP_END__
00000f1c R __ROFIXUP_LIST__
000021a8 B _run
000008ec t ___self_reloc
00000b20 W _shm_open
00000b3c W _shm_unlink
          U _sleep
00020000 A __stacksize
00000888 T __start
00000b54 T _test_thread
          U ___uClibc_main
          U ___wrap_pthread_cond_broadcast
          U ___wrap_pthread_cond_init
          U ___wrap_pthread_cond_wait
          U ___wrap_pthread_create
          U ___wrap_pthread_mutex_init
          U ___wrap_pthread_mutex_lock
          U ___wrap_pthread_mutex_unlock
          U ___wrap_pthread_yield


-- 
mr. kolja waschk - haubach-39 - 22765 hh - germany
fon +49 40 889130-34 - fax -35 - http://www.ixo.de



  reply	other threads:[~2011-01-20 18:57 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-20  8:03 [Xenomai-help] debug posix skin - pthread_cond_wait return EPERM Pierre.QUELIN
2011-01-20  8:28 ` Kolja Waschk
2011-01-20 14:55   ` Gilles Chanteperdrix
2011-01-20 16:44     ` Kolja Waschk
2011-01-20 16:56       ` Gilles Chanteperdrix
2011-01-20 17:16         ` Kolja Waschk
2011-01-20 17:30           ` Gilles Chanteperdrix
2011-01-20 18:57             ` Waschk,Kolja [this message]
2011-01-20 19:09               ` Gilles Chanteperdrix
2011-01-20 19:22                 ` Waschk,Kolja
2011-01-21 13:09                 ` Kolja Waschk
2011-01-21 14:12                   ` Philippe Gerum
2011-01-21 11:25             ` Kolja Waschk
2011-01-24 12:31               ` Gilles Chanteperdrix
2011-01-25  8:53                 ` Kolja Waschk
2011-01-25  8:51                   ` Gilles Chanteperdrix
2011-01-25  8:55                     ` Gilles Chanteperdrix
2011-01-25  9:06                     ` Kolja Waschk
2011-01-20 18:36           ` Gilles Chanteperdrix
2011-01-20 19:13             ` Gilles Chanteperdrix
2011-01-21 12:03               ` Kolja Waschk
2011-01-21 14:00                 ` Philippe Gerum
2011-01-21 14:16                   ` Kolja Waschk
2011-01-22 15:07                 ` Gilles Chanteperdrix
2011-01-22 15:20                 ` Gilles Chanteperdrix
2011-01-20 17:33         ` [Xenomai-help] gpio Cagnulein
2011-01-20 17:55           ` Gilles Chanteperdrix
2011-01-21  8:43 [Xenomai-help] debug posix skin - pthread_cond_wait return EPERM Pierre.QUELIN
2011-01-22 14:39 ` Gilles Chanteperdrix
2011-01-24 14:57 Pierre.QUELIN

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=alpine.DEB.2.00.1101201943440.2425@domain.hid \
    --to=xenoka09@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.