Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 510222

Summary: net-analyzer/netsniff-ng-0.5.8_rc3: crashes at startup because libpcap links against libnl-1
Product: Gentoo Linux Reporter: Benjamin Block <mageta>
Component: Current packagesAssignee: Michael Weber (RETIRED) <xmw>
Status: RESOLVED FIXED    
Severity: normal CC: netmon
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 469176    
Bug Blocks:    
Attachments: emerge --info

Description Benjamin Block 2014-05-13 11:26:04 UTC
Netsniff-ng links among others against libnl-3, libnl-genl-3 and libpcap. But the current stable libpcap links against libnl-1 (the ebuild is slotted). So, upon starting netsniff-ng, it loads both version of libnl which in turn will cause a segfault because of the several abi-breaks between these versions.

As soon as you unmerge libnl-1 and force libpcap to link only against libnl-3 (tested with 1.5.3 of libpcap with useflag netlink enabled) this will go away.

You may want to depend on dev-libs/libnl:3 alone with slot 1.1 blocked.

Foolishly I don't have the core and strace-file left on my machine. But I can reproduce these if you want.

Reproducible: Always

Steps to Reproduce:
1. Merge current stable libpcap with netlink-useflag enabled (it should depend on dev-libs/libnl:1.1)
2. Merge net-analyzer/netsniff-ng-0.5.8_rc3
3. Run netsniff-ng
Actual Results:  
Segfault

Expected Results:  
No Segfault :)
Comment 1 Benjamin Block 2014-05-13 11:28:02 UTC
Created attachment 376814 [details]
emerge --info
Comment 2 Michael Weber (RETIRED) gentoo-dev 2014-09-01 15:55:34 UTC
Does this still persist on net-libs/libpcap-1.6* ?