From: "Krzysztof Błaszkowski" <kb@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork()
Date: Tue, 17 Aug 2010 14:54:23 +0200 [thread overview]
Message-ID: <1282049663.5255.99.camel@domain.hid> (raw)
In-Reply-To: <4C6A8332.5050308@domain.hid>
On Tue, 2010-08-17 at 14:40 +0200, Gilles Chanteperdrix wrote:
> Krzysztof Błaszkowski wrote:
> > On Tue, 2010-08-17 at 14:33 +0200, Gilles Chanteperdrix wrote:
> >> Krzysztof Błaszkowski wrote:
> >>> Hello,
> >>>
> >>> I found recently that large application uses to segfault before fork()
> >>> leaves its glibc wrapper.
> >>>
> >>> I included here a test suite which can be easily used to verify what
> >>> goes wrong. It may be necessary to adjust makefile to compile the code.
> >>> So, the console is missing output from line #89. We can see instead a
> >>> message that getpid couldn't be linked which is 1st sign of memory
> >>> corruption.
> >>>
> >>> i used to think that this issue could be related to not unbinding heap
> >>> before fork() but it turned out that it is enough to link userspace with
> >>> xenomai libraries.
> >>>
> >>> I wonder if this is known issue and if there is any fix, does 2.5.4 work
> >>> same ? or maybe there is something wrong with the kernel i use (or adeos
> >>> patch)
> >>>
> >>> Another question is why rt_task_create() is marked deprecated in native
> >>> skin. Does it mean that native skin is going to be removed from source
> >>> tree ?
> >> The libc on the system you run the test is not the same as the one of
> >> the compiler. Please re-run the test when using the same libc on the
> >> test board as on the machine where you are compiling.
> >
> >
> > I reckon you missed the clue. On the other hand: how can you explain
> > that main process even started ? and only child failed ?
> >
> > and indeed i compile code on one box but run on another anyway both
> > rootfs'es are "bit equal".
>
> No. As witnessed by the message:
> ./xeno-shmem-fork: relocation error: ./xeno-shmem-fork: symbol getpid,
> version GLIBC_2.0 not defined in file libc.so.6 with link time reference
have you seen that main process started ? and linker didn't complain
about wrong symbol version. This happened only in child process after
line 88, have you seen output from line 89 ?
furthermore you can find commented out line in makefile which compiles
userland without linking with xenomai libraries.
this executable works as expected.
>
> The run-time glibc is not the same as the compile-time glibc. The glibc
> are mostly ABI compatible, but maybe not the fork wrapper, so, to rule
> this out, please re-run the test with the correct glibc.
>
this is from libc on box i compile code:
GNU C Library stable release version 2.9 (20081117), by Roland McGrath
et al.
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Configured for i686-suse-linux.
Compiled by GNU CC version 4.3.2 [gcc-4_3-branch revision 141291].
Compiled on a Linux 2.6.27 system on 2008-12-03.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
NoVersion patch for broken glibc 2.0 binaries
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
CHroot linux-e9um:/lib #
and this is from target box:
atest:/lib # ./libc-2.9.so
GNU C Library stable release version 2.9 (20081117), by Roland McGrath
et al.
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Configured for i686-suse-linux.
Compiled by GNU CC version 4.3.2 [gcc-4_3-branch revision 141291].
Compiled on a Linux 2.6.27 system on 2008-12-03.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
NoVersion patch for broken glibc 2.0 binaries
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
atest:/lib #
these libcs are same and i wonder whats wrong with you.
How many times do i need to make you sure that these libcs are binary
same ?
--
Krzysztof Blaszkowski
next prev parent reply other threads:[~2010-08-17 12:54 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-17 12:25 [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork() Krzysztof Błaszkowski
2010-08-17 12:33 ` Gilles Chanteperdrix
2010-08-17 12:34 ` Krzysztof Błaszkowski
2010-08-17 12:40 ` Gilles Chanteperdrix
2010-08-17 12:54 ` Krzysztof Błaszkowski [this message]
2010-08-17 13:06 ` Gilles Chanteperdrix
2010-08-17 13:19 ` Krzysztof Błaszkowski
2010-08-17 13:27 ` Gilles Chanteperdrix
2010-08-17 13:57 ` Krzysztof Błaszkowski
2010-08-17 14:08 ` Gilles Chanteperdrix
2010-08-17 14:12 ` Krzysztof Błaszkowski
2010-08-17 14:17 ` Gilles Chanteperdrix
2010-08-17 16:07 ` Krzysztof Błaszkowski
2010-08-17 12:35 ` Krzysztof Błaszkowski
2010-08-17 12:40 ` Gilles Chanteperdrix
2010-08-17 14:41 ` Philippe Gerum
2010-08-17 16:09 ` Krzysztof Błaszkowski
2010-08-17 22:59 ` Gilles Chanteperdrix
2010-08-18 10:22 ` Krzysztof Błaszkowski
2010-08-18 11:00 ` Gilles Chanteperdrix
2010-08-18 11:40 ` Krzysztof Błaszkowski
2010-08-18 12:00 ` Gilles Chanteperdrix
2010-08-18 12:17 ` Krzysztof Błaszkowski
2010-08-18 12:37 ` Gilles Chanteperdrix
2010-08-18 12:55 ` Krzysztof Błaszkowski
2010-08-18 13:39 ` Gilles Chanteperdrix
2010-08-18 14:04 ` Krzysztof Błaszkowski
2010-08-18 14:10 ` Gilles Chanteperdrix
2010-08-18 14:25 ` Krzysztof Błaszkowski
2010-08-18 14:30 ` Gilles Chanteperdrix
2010-08-18 15:09 ` Krzysztof Błaszkowski
2010-08-18 15:13 ` Gilles Chanteperdrix
2010-08-18 15:16 ` Krzysztof Błaszkowski
2010-08-18 15:43 ` Gilles Chanteperdrix
2010-08-18 16:30 ` Krzysztof Błaszkowski
2010-08-18 16:51 ` Krzysztof Błaszkowski
2010-08-18 17:17 ` Krzysztof Błaszkowski
2010-08-20 9:47 ` Krzysztof Błaszkowski
2010-08-20 9:54 ` Gilles Chanteperdrix
2010-08-20 15:50 ` Krzysztof Błaszkowski
2010-08-21 17:06 ` Gilles Chanteperdrix
2010-08-21 17:36 ` Gilles Chanteperdrix
2010-08-22 15:13 ` Philippe Gerum
2010-08-22 23:34 ` Gilles Chanteperdrix
2010-08-18 15:13 ` Krzysztof Błaszkowski
2010-08-18 11:05 ` Gilles Chanteperdrix
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=1282049663.5255.99.camel@domain.hid \
--to=kb@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.