mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Build on linux 2.6 and run on linux 2.4?
Date: Fri, 21 Mar 2014 12:40:07 -0400	[thread overview]
Message-ID: <20140321164007.GI26358@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAGDMk9EuenwuaPsw4Sq2GvogZo5F9y+2e7AFdw43x8ZqNTFpOw@mail.gmail.com>

On Fri, Mar 21, 2014 at 09:02:09AM -0400, John Mudd wrote:
> Thanks for your reply.
> 
> I ran a test using an example thread app. I compiled the cond1.c example
> from http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html using
> musl-gcc on Ubuntu 13.04, 2.6 kernel obviously. The executable runs on 2.6
> as well as 2.4. I actually expected some kind of failure on 2.4. Did I pick
> a poor example or am I not understanding still?

Yes, I did too; the intent is that pthread_create is supposed to
return failure on kernels where things are not going to work right
(i.e. clone does not support the necessary flags to provide threads);
this is in turn supposed to result from a failure in pthread_self.

Could you provide the output of running the program under strace on
2.4?

Rich


  reply	other threads:[~2014-03-21 16:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 20:58 John Mudd
2014-03-20 23:14 ` Rich Felker
2014-03-21  0:51   ` Rich Felker
2014-03-26  6:22     ` Rich Felker
2014-03-21 13:02   ` John Mudd
2014-03-21 16:40     ` Rich Felker [this message]
2014-03-21 17:54     ` John Mudd
2014-03-21 18:02       ` Rich Felker
2014-03-21 18:24         ` John Mudd
2014-03-21 19:09           ` Rich Felker
2014-03-21 19:48           ` John Mudd
2014-03-21 19:53             ` Rich Felker
2014-03-21 20:16               ` John Mudd
2014-03-22 11:12                 ` Szabolcs Nagy

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=20140321164007.GI26358@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).