View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1555
|
Posted: Mon Dec 09, 2024 4:41 pm Post subject: iptables symbox has different size in shared object |
|
|
this started happening after my world update, I have not changed any use flags
Code: | t14 ~ # iptables -L
iptables: Symbol `xtables_chain_protos' has different size in shared object, consider re-linking
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
free(): invalid pointer
Aborted (core dumped)
t14 ~ # emerge iptables -pv
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 0.83 s (backtrack: 0/20).
[ebuild R ] net-firewall/iptables-1.8.11:0/1.8.3::gentoo USE="-conntrack -netlink -nftables -pcap -static-libs -test" 0 KiB
|
|
|
Back to top |
|
|
nox23 n00b
Joined: 15 Jul 2012 Posts: 41
|
Posted: Tue Dec 10, 2024 1:16 am Post subject: |
|
|
It could be kernel related. (incomplete, missing symbol, ...)
Are your kernel, kernel's modules, initrd, ... synchronized to the same version ?
Is it custom kernel ? If so, consider recompiling, reinstalling, regenerate initramfs ?
Beforehand backup your kernel's config and run make distclean or don't forget to run make clean between config changes. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5215 Location: Bavaria
|
Posted: Tue Dec 10, 2024 1:38 am Post subject: |
|
|
Hmmm ... maybe sync portage and update iptables again, because "eix" tells me there is a version 1.8.11-r1 now available _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1555
|
Posted: Wed Dec 11, 2024 7:08 pm Post subject: |
|
|
one kernel and sytem update later and the problem persists:
Code: | t14 /usr/src/linux # uname -a
Linux t14 6.12.4-gentoo #1 SMP PREEMPT_DYNAMIC Wed Dec 11 20:40:16 EET 2024 x86_64 12th Gen Intel(R) Core(TM) i7-1270P GenuineIntel GNU/Linux
t14 /usr/src/linux # eselect kernel list
Available kernel symlink targets:
[1] linux-6.12.4-gentoo *
t14 /usr/src/linux # iptables -L
iptables: Symbol `xtables_chain_protos' has different size in shared object, consider re-linking
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT iptables -- anywhere anywhere
ACCEPT iptables -- anywhere anywhere
ACCEPT iptables -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
free(): invalid pointer
Aborted |
|
|
Back to top |
|
|
nox23 n00b
Joined: 15 Jul 2012 Posts: 41
|
Posted: Thu Dec 12, 2024 1:39 am Post subject: |
|
|
Maybe it's time to file a bug.
- Try safer CFLAGS
- Install app-portage/gentoolkit and run revdep-rebuild -pv to see eventual linking consistency problem
- Run strace iptables -L and see if you can get a more detailed error
- Try a previous version of iptables
- Provide iptables ruleset
- Report to bugs.gentoo.org |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9617 Location: beyond the rim
|
Posted: Thu Dec 12, 2024 3:56 pm Post subject: |
|
|
Kernel should not impact this. xtables_chain_protos is a variable defined in libxtables which maps the names of various IP protocols to their internal IDs.
libxtables is part of iptables as far as upstream is concerned, not sure how things are packages in Gentoo these days though.
Maybe you can find some useful information at https://stackoverflow.com/questions/15054973/c-symbol-has-different-size-in-shared-object which describes the same error in a different situation. |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5931
|
Posted: Sat Dec 14, 2024 7:50 pm Post subject: |
|
|
rebuild iptables, it should solve your issue _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|