Skip to contentSkip to conversation

libnetfilter conntrack: problem in nfct_callback_register

DISCUSSION Julien VEHENT 3 participants 5 messages Nov 15, 2007 – Nov 28, 2007

lore
Share & tools
lore
#0 lore raw

Hi All,

I'm coding with the libnetfilter-conntrack in C and, for some unexpected reasons, my program use to crash (could be after a few minutes or a few hours) with the following message:

Quoted 1 line

api.c:137: nfct_callback_register: Assertion `h != ((void *)0)' failed.

AFAIK, "h" is the library handler defined by nfct_open(CONNTRACK, 0) and used in nfct_callback_register, nfct_query and nfct_close.

But I have no idea how to debug that....

I'm using the following libs on Debian Lenny:

Quoted 2 lines

libnetfilter-conntrack-dev    0.0.50-1
libnetfilter-conntrack1       0.0.50-1

I pasted my code here: http://rafb.net/p/nz33XI27.html

This drives me crazy... It's probably just a stupid mistake but I don't see it...

Thanks for your help,

Julien

#2 lore raw
Quoted 11 lines · Eric Leblond

Hi,

Quoted 3 lines

I'm using the following libs on Debian Lenny:

Quoted 2 lines

libnetfilter-conntrack-dev 0.0.50-1
libnetfilter-conntrack1 0.0.50-1

First of all, please update the libs. A major rewrite has occur and lots of bug have been fixed. Please also nota that the API has changed.

Last version can be downloaded from:
http://netfilter.org/projects/libnetfilter_conntrack/downloads.html

Hi,

I'm probably asking too much, but do you have any .deb version of the library ?
I would rather prefer to keep the integrity of my system.

Thanks,

Julien

#3 lore raw
Quoted 10 lines · Julien VEHENT
Quoted 9 lines · Eric Leblond

Hi,

Quoted 3 lines

I'm using the following libs on Debian Lenny:

Quoted 2 lines

libnetfilter-conntrack-dev 0.0.50-1
libnetfilter-conntrack1 0.0.50-1

First of all, please update the libs. A major rewrite has occur and lots of bug have been fixed. Please also nota that the API has changed.

Quoted 8 lines
Quoted 2 lines

Last version can be downloaded from:
http://netfilter.org/projects/libnetfilter_conntrack/downloads.html

Hi,

I'm probably asking too much, but do you have any .deb version of the library ?
I would rather prefer to keep the integrity of my system.

It looks like the packages are getting close to being in 'sid', however as of right now, are not. Once they are, you can use apt pinning to pull them in, or wait for them to migrate from 'sid' to 'lenny'.

Otherwise, you could build from source and install to /usr/local/, which is what I would do.

Signature · 9 lines
Matt Zagrabelny - [email protected] - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 1024D/84E22DA2 2005-11-07
Fingerprint: 78F9 18B3 EF58 56F5 FC85  C5CA 53E7 887F 84E2 2DA2

He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot
#4 lore raw
In reply to Julien VEHENT

Hi,

Quoted 7 lines · Julien VEHENT
Quoted 1 line · Eric Leblond

Hi,

Hi,

I'm probably asking too much, but do you have any .deb version of the library ?
I would rather prefer to keep the integrity of my system.

Sorry for the delay but the library are now available for etch from
http://packages.inl.fr/ in their latest release.

You can add to your sources.list:
deb http://packages.inl.fr/ stable/

BR,

Signature · 2 lines
Eric Leblond <[email protected]>
INL