Linux Netfilter development
 help / color / mirror / Atom feed
From: Pierre Chifflier <p.chifflier@inl.fr>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Harald Welte <laforge@netfilter.org>,
	Pablo Neira Ayuso <pablo@netfilter.org>,
	netfilter-devel@vger.kernel.org
Subject: Re: [ANNOUNCE] ulogd 2.0.0beta3
Date: Sun, 8 Mar 2009 10:53:19 +0100	[thread overview]
Message-ID: <20090308095318.GA4009@piche.inl.fr> (raw)
In-Reply-To: <alpine.LSU.2.00.0903071542590.26625@fbirervta.pbzchgretzou.qr>

On Sat, Mar 07, 2009 at 03:43:47PM +0100, Jan Engelhardt wrote:
> 
> On Saturday 2009-03-07 11:34, Harald Welte wrote:
> >On Fri, Mar 06, 2009 at 07:09:36PM +0100, Pablo Neira Ayuso wrote:
> >>       Link ulogd2 with libpthread
> >
> >I was just reading this and all alarm sirens went on.  I don't know
> >why that is neccessary, and I hope it is just due to some library dependency.

Hi,

I plead guilty, I'm the one who did the commit ;)

The commit message explains why:
Explicitly link with libpthread. This allows to run ulogd within gdb,
else it fails with message: Cannot find new threads: generic error

I don't know why, but gdb fails on some configs if not linked with
libpthread. Maybe this is related to some other parameters (32/64 bits ?
libc version ?), yet adding -lpthread solves the problem.
One could argue that gdb should be fixed, though.

> >
> >When I created ulogd and ulogd2, I never intended them to become some kind of
> >multi-threaded monster with a complex locking and synchronization nightmare.

Yep, we did not change anything regarding to that (and share the same
view for the multi-thread beast).

> 
> Yeah there seems to be not a single pthread_ call or type in use,
> so I wonder why it was done.

Threads are not used, the -lpthread could even be dropped without
any other effect than causing problems again with gdb.

Pierre


  reply	other threads:[~2009-03-08 10:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06 18:09 [ANNOUNCE] ulogd 2.0.0beta3 Pablo Neira Ayuso
2009-03-07 10:34 ` Harald Welte
2009-03-07 14:43   ` Jan Engelhardt
2009-03-08  9:53     ` Pierre Chifflier [this message]
2009-03-08 12:33       ` Pablo Neira Ayuso
2009-03-08 13:24       ` Harald Welte
2009-03-08 12:45   ` Pablo Neira Ayuso

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=20090308095318.GA4009@piche.inl.fr \
    --to=p.chifflier@inl.fr \
    --cc=jengelh@medozas.de \
    --cc=laforge@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.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