From: Davide Libenzi <davidel@xmailserver.org>
To: David Sanchez <dsanchez@veloxia.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Possible bug; latest kernels with LinuxThreads
Date: Sat, 17 Nov 2001 18:36:27 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.40.0111171834100.1011-100000@blue1.dev.mcafeelabs.com> (raw)
In-Reply-To: <5.1.0.14.2.20011118025147.035feb08@pop.veloxia.com>
On Sun, 18 Nov 2001, David Sanchez wrote:
> #0 0x40053f0f in __pthread_create_2_1 (thread=0x40244fc4, attr=0x40244fc8,
> start_routine=0x804ae20 <gMantThread(void *)>, arg=0x40244fc4) at pthread.c:488
In that case a look at the code always helps :
int __pthread_create_2_1(pthread_t *thread, const pthread_attr_t *attr,
void * (*start_routine)(void *), void *arg)
{
pthread_descr self = thread_self();
struct pthread_request request;
if (__pthread_manager_request < 0) {
if (__pthread_initialize_manager() < 0) return EAGAIN;
}
request.req_thread = self;
request.req_kind = REQ_CREATE;
request.req_args.create.attr = attr;
request.req_args.create.fn = start_routine;
request.req_args.create.arg = arg;
sigprocmask(SIG_SETMASK, (const sigset_t *) NULL,
&request.req_args.create.mask);
__libc_write(__pthread_manager_request, (char *) &request,
sizeof(request));
suspend(self);
if (THREAD_GETMEM(self, p_retcode) == 0)
>>>> *thread = (pthread_t) THREAD_GETMEM(self, p_retval);
return THREAD_GETMEM(self, p_retcode);
}
The line marked >>>> is line 488 in pthread.c , are you plain sure that
you're not passing a NULL thread id ptr ?
- Davide
next prev parent reply other threads:[~2001-11-18 2:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.40.0111171834100.1011-100000@blue1.dev.mcafeela bs.com>
2001-11-18 2:20 ` David Sanchez
2001-11-18 2:36 ` Davide Libenzi [this message]
2001-11-18 2:41 ` David Sanchez
2001-11-18 3:11 ` Davide Libenzi
2001-11-18 4:30 ` David Sanchez
2001-11-18 18:29 ` Davide Libenzi
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=Pine.LNX.4.40.0111171834100.1011-100000@blue1.dev.mcafeelabs.com \
--to=davidel@xmailserver.org \
--cc=dsanchez@veloxia.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®