Bug 1147600 - [abrt] wireshark-gnome: gen_linktype(): wireshark killed by SIGABRT
Summary: [abrt] wireshark-gnome: gen_linktype(): wireshark killed by SIGABRT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libpcap
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Sekletar
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:141aaa4d0b343b2b8b3dc6d6832...
: 1061830 1096453 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-29 14:42 UTC by Peter Ludikovsky
Modified: 2014-12-20 08:32 UTC (History)
10 users (show)

Fixed In Version: libpcap-1.5.3-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-20 08:32:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (29.14 KB, text/plain)
2014-09-29 14:42 UTC, Peter Ludikovsky
no flags Details
File: cgroup (180 bytes, text/plain)
2014-09-29 14:42 UTC, Peter Ludikovsky
no flags Details
File: core_backtrace (7.30 KB, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
File: dso_list (12.25 KB, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
File: environ (2.03 KB, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
File: limits (1.29 KB, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
File: maps (57.67 KB, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
File: open_fds (372 bytes, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
File: proc_pid_status (912 bytes, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
File: var_log_messages (848 bytes, text/plain)
2014-09-29 14:43 UTC, Peter Ludikovsky
no flags Details
Proposed fix (1.95 KB, patch)
2014-10-17 11:51 UTC, Peter Hatina
no flags Details | Diff

Description Peter Ludikovsky 2014-09-29 14:42:54 UTC
Description of problem:
Started wireshark GUI as root (using sudo). Selected to capture all devices, and started to input the capture filter.

Version-Release number of selected component:
wireshark-gnome-1.10.10-1.fc20

Additional info:
reporter:       libreport-2.2.3
backtrace_rating: 4
cmdline:        wireshark
crash_function: gen_linktype
executable:     /usr/sbin/wireshark
kernel:         3.16.3-200.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (8 frames)
 #2 gen_linktype at ./gencode.c:3426
 #3 gen_proto at ./gencode.c:5835
 #4 gen_proto_abbrev at ./gencode.c:4780
 #5 pcap_parse at grammar.y:419
 #6 pcap_compile at ./gencode.c:471
 #7 pcap_compile_nopcap at ./gencode.c:508
 #8 check_capture_filter_syntax at capture_dlg.c:632
 #9 g_thread_proxy at gthread.c:798

Comment 1 Peter Ludikovsky 2014-09-29 14:42:58 UTC
Created attachment 942357 [details]
File: backtrace

Comment 2 Peter Ludikovsky 2014-09-29 14:42:59 UTC
Created attachment 942358 [details]
File: cgroup

Comment 3 Peter Ludikovsky 2014-09-29 14:43:01 UTC
Created attachment 942359 [details]
File: core_backtrace

Comment 4 Peter Ludikovsky 2014-09-29 14:43:03 UTC
Created attachment 942360 [details]
File: dso_list

Comment 5 Peter Ludikovsky 2014-09-29 14:43:05 UTC
Created attachment 942361 [details]
File: environ

Comment 6 Peter Ludikovsky 2014-09-29 14:43:06 UTC
Created attachment 942362 [details]
File: limits

Comment 7 Peter Ludikovsky 2014-09-29 14:43:09 UTC
Created attachment 942363 [details]
File: maps

Comment 8 Peter Ludikovsky 2014-09-29 14:43:10 UTC
Created attachment 942364 [details]
File: open_fds

Comment 9 Peter Ludikovsky 2014-09-29 14:43:12 UTC
Created attachment 942365 [details]
File: proc_pid_status

Comment 10 Peter Ludikovsky 2014-09-29 14:43:13 UTC
Created attachment 942366 [details]
File: var_log_messages

Comment 11 Jeremy Harris 2014-10-16 20:20:30 UTC
Another user experienced a similar problem:

sudo wireshark
(password)
dismiss the running-as-root warning window
reposition main window
select "Capture Options"
tick "Capture on all interfaces"
enter into Capture Filter box:  "tcp &&"

- box background goes red on 1st character
- after a varying number of characters, crash.   On 3 tries I've gotten as far as the second '&', and as little as "tc".

Window-manager: xfce.
Laptop with external screen active as well as builtin.

reporter:       libreport-2.2.3
backtrace_rating: 4
cmdline:        wireshark
crash_function: gen_linktype
executable:     /usr/sbin/wireshark
kernel:         3.16.4-200.fc20.x86_64
package:        wireshark-gnome-1.10.10-1.fc20
reason:         wireshark killed by SIGABRT
runlevel:       N 5
type:           CCpp
uid:            0

Comment 12 Peter Hatina 2014-10-17 11:51:45 UTC
Created attachment 947864 [details]
Proposed fix

abort() is caused by gen_linktype() in libpcap, when off_linktype == (u_int) -1.

gen_linktype() lacks case jump for DLT_NFLOG.

Attached patch fixes the issue.

Comment 13 Michal Sekletar 2014-11-27 14:41:56 UTC
*** Bug 1061830 has been marked as a duplicate of this bug. ***

Comment 14 Michal Sekletar 2014-11-27 14:43:33 UTC
*** Bug 1096453 has been marked as a duplicate of this bug. ***

Comment 15 Fedora Update System 2014-11-27 15:28:36 UTC
libpcap-1.5.3-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/libpcap-1.5.3-3.fc20

Comment 16 Paul Wouters 2014-11-27 15:58:09 UTC
note that while this fixes the crasher (and seems to be what upstream does too), it does not resolve the actual issue of not being able to fully use nflog interfaces with these tools :/

Comment 17 Michal Sekletar 2014-11-27 16:29:24 UTC
Sure, but this bug was about the crash. If you need some other features backported please file a new bug.

Comment 18 Fedora Update System 2014-12-01 19:05:38 UTC
Package libpcap-1.5.3-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libpcap-1.5.3-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-16032/libpcap-1.5.3-3.fc20
then log in and leave karma (feedback).

Comment 19 Fedora Update System 2014-12-20 08:32:36 UTC
libpcap-1.5.3-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.