All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roberto Nibali <ratz@tac.ch>
To: Amin Azez <azez@ufomechanic.net>
Cc: Netfilter Developers <netfilter-devel@lists.netfilter.org>,
	ratz@drugphish.ch
Subject: Re: Fixed Re: iptables 1.3.1 crashes on iptables-restore
Date: Mon, 08 Aug 2005 18:46:51 +0200	[thread overview]
Message-ID: <42F78C7B.6060808@tac.ch> (raw)
In-Reply-To: <42F78829.2050700@ufomechanic.net>

>>>GNU C Library stable release version 2.3.2, by Roland McGrath et al.
>>>Copyright (C) 2003 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.
>>>Compiled by GNU CC version 3.2.2 20030222 (Red Hat Linux 3.2.2-5).
>>>Compiled on a Linux 2.4.20 system on 2003-03-13.
>>>Available extensions:
>>>       GNU libio by Per Bothner
>>>       crypt add-on version 2.1 by Michael Glad and others
>>>       linuxthreads-0.10 by Xavier Leroy
>>>       BIND-8.2.3-T5B
>>>       libthread_db work sponsored by Alpha Processor Inc
>>>       NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
>>>Thread-local storage support included.
   ^^^^^^^^^^^^^^^^^^^^
To me this indicates that TLS is included which is strange. The libc I
use for our 2.4.x kernel stuff looks as follows:

GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 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.
Compiled by GNU CC version 3.4.4.
Compiled on a Linux 2.6.11 system on 2005-07-26.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

The one I use on 2.6.x kernels is as follows:

GNU C Library stable release version 2.3.2 (20030827), by Roland McGrath
et al.
Copyright (C) 2003 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 3.3.1 (SuSE Linux).
Compiled on a Linux 2.6.0-test3 system on 2003-09-23.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        NoVersion patch for broken glibc 2.0 binaries
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <bugs@gnu.org>.

So I wonder how TLS has slipped into your libc.

>>
>>I'm by no means a libc expert but how did you get infected with this
>>libc version? :). 
>> 
> er.. I inherited it on my development box.

Ok. I see that's a RH box so I presume they certainly know what they
did. I vaguely rememeber that someone of RH once backported the NPTL
stuff to 2.4.x kernels, so this would explain your crippled libc :).

>>I was under the impression that TLS support wasn't
>>functional until NPTL was introduced in the 2.6.x era. 
>> 
> I'm not sure that this glibc is providing TLS, can you see that it is?

The output of /lib/libc.so.6 tells me.

> Certainly I can't see that iptables needs any, although maybe some of
> the libc stuff does(all the getnameby stuff maybe wants per-thread
> static buffers instead of per-process?)

iptables has no influence on this, it's how the linker will put it
together. Obviously it has added the TLS enabled c-library to your
iptables binary which could have provoked this issue. Also when you
LD_ASSUME*'d iptables it wouldn't show the defect anymore. So the
problem must be related to your libc or the toolchain you use to compile
binaries.

>>To my knowledge
>>this could explain the TLS related crashes you were seeing. Any chance
>>of upgrading this libc of yours?
>> 
>>
> I hope so. Are you sure they are TLS related?

No, I'm afraid. In my normal life I thankfully almost never have to deal
with libc issues.

>>I could of course be totally wrong.
>>
> It's more than I've had to go on so far, so keep talking.

I'm off now and I think we should continue this discussion privately,
since the added value for netfilter developers is getting slimmer with
each reply :). We can always post the result of our findings back to
this list, IMHO.

Cheers,
Roberto Nibali, ratz
-- 
-------------------------------------------------------------
addr://Rathausgasse 31, CH-5001 Aarau  tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
terreActive AG                       Wir sichern Ihren Erfolg
-------------------------------------------------------------

      reply	other threads:[~2005-08-08 16:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30  3:46 iptables 1.3.1 crashes on iptables-restore Alexander Samad
2005-03-31  8:18 ` Roberto Nibali
2005-08-04 16:24   ` Amin Azez
2005-08-05 10:08     ` Amin Azez
2005-08-05 12:57       ` Fixed " Amin Azez
2005-08-05 13:22         ` Roberto Nibali
2005-08-08 15:45           ` Amin Azez
2005-08-08 15:56             ` Roberto Nibali
2005-08-08 16:03               ` Amin Azez
2005-08-08 16:19                 ` Roberto Nibali
2005-08-08 16:28                   ` Amin Azez
2005-08-08 16:46                     ` Roberto Nibali [this message]

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=42F78C7B.6060808@tac.ch \
    --to=ratz@tac.ch \
    --cc=azez@ufomechanic.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=ratz@drugphish.ch \
    /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.