All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: niklaus.giger@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Xenomai v2.2-rc2
Date: Sat, 27 May 2006 15:50:36 +0200	[thread overview]
Message-ID: <17528.22828.865403.975935@domain.hid> (raw)
In-Reply-To: <200605261944.18514.niklaus.giger@domain.hid>

Niklaus Giger wrote:
 > posix->tthread:: tthread.c:91 pthread_join(child1, &tmp) == ESRCH
 > tthread.c:91 pthread_join(child1, &tmp) == ESRCH
 > 
 > Running libtool --mode=execute gdb ./tthread I can give you the following call 
 > stack:
 > tthread.c:89 TEST passed.
 > tthread.c:91 pthread_join(child1, &tmp) == ESRCH
 > 
 > Program received signal SIGSEGV, Segmentation fault.
 > 0x1000e81c in pse51_thread_join (thread=0x6061ff71, value_ptr=0x100f9f00) 
 > at ../../../ksrc/skins/posix/thread.c:409
 > 409         if (!pse51_obj_active(thread, PSE51_THREAD_MAGIC, struct 
 > pse51_thread)
 > (gdb) info stack
 > #0  0x1000e81c in pse51_thread_join (thread=0x6061ff71, value_ptr=0x100f9f00) 
 > at ../../../ksrc/skins/posix/thread.c:409
 > #1  0x10006734 in root_thread (cookie=0x0) at tthread.c:91
 > #2  0x1000d728 in thread_trampoline (cookie=0x100d1838) 
 > at ../../../ksrc/skins/posix/thread.c:56
 > #3  0x10050f78 in mvm_thread_trampoline_kroot_ ()
 > #4  0x0ffd10b4 in XenoThread::trampoline_kroot_ () 
 > from /home/buildslave/buildbot/quick-sim/build/sim/vm/.libs/libmvm.so.2
 > #5  0x0ffd1150 in XenoThread::body () 
 > from /home/buildslave/buildbot/quick-sim/build/sim/vm/.libs/libmvm.so.2
 > #6  0x0ffd2c58 in MvmThread::life () 
 > from /home/buildslave/buildbot/quick-sim/build/sim/vm/.libs/libmvm.so.2
 > #7  0x0fba6ad0 in makecontext () from /lib/tls/libc.so.6
 > Previous frame inner to this frame (corrupt stack?)
 > (gdb)                                                
 > 
 > Do you have any clue? (Doubling the stack in vm/thread.cc didn't help.)

This test is really questionable, it tests that pthread_join returns
ESRCH when passed a pthread_t argument that is not yet initialized. But
if the not yet initialized pthread_t value is an invalid address, it
may cause a segmentation fault. The best thing to do is to remove this
test.

-- 


					    Gilles Chanteperdrix.


  parent reply	other threads:[~2006-05-27 13:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 21:07 [Xenomai-core] Xenomai v2.2-rc2 Philippe Gerum
2006-05-21 14:42 ` Niklaus Giger
2006-06-04 20:36   ` Philippe Gerum
2006-05-21 14:50 ` Niklaus Giger
2006-05-22 11:38   ` Gilles Chanteperdrix
2006-05-24  5:21     ` Niklaus Giger
2006-05-26 16:27       ` Gilles Chanteperdrix
2006-05-26 17:44         ` Niklaus Giger
2006-05-26 17:49           ` Gilles Chanteperdrix
2006-05-26 18:03             ` Niklaus Giger
2006-05-27 13:50           ` Gilles Chanteperdrix [this message]
2006-05-22 11:48 ` [Xenomai-core] Re: Xenomai v2.2-rc2. PowerPC 405GPr board does not start up Niklaus Giger
2006-05-22 15:40   ` Philippe Gerum
2006-05-22 16:08     ` Niklaus Giger
2006-05-22 16:47       ` Philippe Gerum
2006-05-22 20:08         ` Niklaus Giger
2006-05-22 21:31           ` Philippe Gerum
2006-05-24  5:10             ` Niklaus Giger
2006-06-12  5:08             ` Niklaus Giger
2006-06-12  9:39               ` Philippe Gerum
2006-05-24 19:28 ` [Xenomai-core] Xenomai v2.2-rc2 Hannes Mayer

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=17528.22828.865403.975935@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=niklaus.giger@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.