Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

wireshark fails to open .pcap

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
moment92
n00b
n00b
Posts: 33
Joined: Tue Jul 06, 2010 6:49 am

wireshark fails to open .pcap

  • Quote

Post by moment92 » Thu Aug 12, 2010 5:46 pm

Hello!
I have a strange problem. A week ago I installed wireshark and everything worked well. Then, for some pointless reasons, I reinstalled it. After that it is not able to open .pcap files. When I try to open them, wireshark just exits. I have tried to reinstall it again, but the problem remains. It is probably some strange configuration problem in my system.
What should I do to fix the problem?
Top
msalerno
Veteran
Veteran
User avatar
Posts: 1338
Joined: Tue Dec 17, 2002 6:20 pm
Location: Sweating in South Florida

  • Quote

Post by msalerno » Thu Aug 12, 2010 8:48 pm

When I try to open them, wireshark just exits.
As in crashes? Try launching it from a terminal to see if it prints any errors. Not sure if there is a debug switch.

Does it exit on when you try to open any .pcap file? Have you tried creating a new cap and then opening that one?
Top
moment92
n00b
n00b
Posts: 33
Joined: Tue Jul 06, 2010 6:49 am

  • Quote

Post by moment92 » Fri Aug 13, 2010 12:32 am

Does it exit on when you try to open any .pcap file?
Yes, it crashes when I try to open any .pcap file. I have tried many different files. Actually I even tested the files with wireshark on Ubuntu, the files are definitely OK.
Try launching it from a terminal to see if it prints any errors.
When I open a .pcap file, it crashes and gives me:
Segmentation fault

When I try to start capturing, it also crashes and gives me:
wireshark: symbol lookup error: wireshark: undefined symbol: wtap_cleareof
Top
moment92
n00b
n00b
Posts: 33
Joined: Tue Jul 06, 2010 6:49 am

  • Quote

Post by moment92 » Fri Aug 13, 2010 5:08 pm

I used gdb debugger for some additional information.

When trying to open .pcap, it gives me:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0xb7fad2c3 in libpcap_seek_read (wth=0x8ae02a8, seek_off=40, 
    pseudo_header=0xb6249ff4, pd=0x81c1300 "", length=136057744, err=0x2a, 
    err_info=0xbfffda1c) at libpcap.c:1424
1424	libpcap.c: No such file or directory.
	in libpcap.c
When trying to start capturing, it trows:

Code: Select all

/usr/bin/wireshark: symbol lookup error: /usr/bin/wireshark: undefined symbol: wtap_cleareof

Program exited with code 0177.
Top
msalerno
Veteran
Veteran
User avatar
Posts: 1338
Joined: Tue Dec 17, 2002 6:20 pm
Location: Sweating in South Florida

  • Quote

Post by msalerno » Fri Aug 13, 2010 5:25 pm

What's the output of "emerge -pv wireshark" ?

Try rebuilding net-libs/libpcap and wireshark? or maybe remove the pcap use flag from wireshark and then try opening a cap?
Top
moment92
n00b
n00b
Posts: 33
Joined: Tue Jul 06, 2010 6:49 am

  • Quote

Post by moment92 » Fri Aug 13, 2010 6:11 pm

I have tried rebuilding wireshark and libpcap many times
Now I tried to rebuild without pcap USE flag, but the problem remains exactly the same.

emerge -pv wireshark

Code: Select all

Calculating dependencies... done!
[ebuild   R   ] net-analyzer/wireshark-1.2.10  USE="caps gtk ipv6 pcap pcre zlib -adns -ares -gcrypt -geoip -gnutls -kerberos -lua -portaudio -profile (-selinux) -smi -threads" 0 kB
Top
mv
Watchman
Watchman
User avatar
Posts: 6795
Joined: Wed Apr 20, 2005 12:12 pm

  • Quote

Post by mv » Fri Aug 13, 2010 6:39 pm

moment92 wrote:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0xb7fad2c3 in libpcap_seek_read (wth=0x8ae02a8, seek_off=40, 
    pseudo_header=0xb6249ff4, pd=0x81c1300 "", length=136057744, err=0x2a, 
    err_info=0xbfffda1c) at libpcap.c:1424
1424	libpcap.c: No such file or directory.
	in libpcap.c
I am not sure what "length" means here exactly, but it looks too large: Do you really have a 136MB file?
If not, some arguments are mangled. Maybe some library was not compiled with -D_FILE_OFFSET_BITS=64 or D_LARGEFILE_SOURCE kompiliert (or vice versa: was compiled with it but called from a program not compiled with it). Do you use amd64 or x86?

Code: Select all

/usr/bin/wireshark: symbol lookup error: /usr/bin/wireshark: undefined symbol: wtap_cleareof
This might also point to a mismatch of program and library in some CFLAGS or LDFLAGS. But you said that you recompiled libpcap and wireshark? (I suppose in this order, and with the same *FLAGS).
Top
moment92
n00b
n00b
Posts: 33
Joined: Tue Jul 06, 2010 6:49 am

  • Quote

Post by moment92 » Fri Aug 13, 2010 7:01 pm

Non of my files are 136MB, they are max 10MB, smaller ones 3MB.
I have x86.

CFLAGS="-O2 -march=i686 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"

Yes, I have recompiled wireshark and libpcap numerous times both with same flags and with different flags.
Top
moment92
n00b
n00b
Posts: 33
Joined: Tue Jul 06, 2010 6:49 am

  • Quote

Post by moment92 » Sun Aug 15, 2010 11:19 am

I installed an older wireshark release (1.0.15) and it works great. I have no idea why the new version doesn't work.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy