Bug 197509 - net/ettercap 0.8.1 crashes
Summary: net/ettercap 0.8.1 crashes
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 08:49 UTC by Rafał Grzeszczuk
Modified: 2015-04-05 20:25 UTC (History)
1 user (show)

See Also:
rafi.root: maintainer-feedback+


Attachments
The core file. (578.01 KB, application/gzip)
2015-02-10 08:49 UTC, Rafał Grzeszczuk
no flags Details
Make's output. (321.49 KB, text/plain)
2015-02-22 11:16 UTC, Rafał Grzeszczuk
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Grzeszczuk 2015-02-10 08:49:14 UTC
Created attachment 152834 [details]
The core file.

Ettercap 0.8.1 on FreeBSD 10.1-RELEASE crashes after printing the version number. On the Ethernet interface (ale0) the commands behave as follows:
ettercap -T -i ale0
ettercap 0.8.1 (...)
Could not open device for mtu query

ettercap -T -i ale0 -M arp /192.168.0.10// /192.168.0.1//
ettercap 0.8.1 (...)
Using ettercap on the lo0 interface makes it produce the "core dumped, submit a bug report" message.
(all were started as root)

FIX: The newest git of ettercap fixes the issue.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2015-02-10 20:35:02 UTC
Fix Summary and assign.
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-02-18 19:36:41 UTC
(In reply to Rafał Grzeszczuk from comment #0)

Could you please point out which commit fixes this issue? Thanks!
Comment 3 Rafał Grzeszczuk 2015-02-18 19:51:45 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #2)
https://github.com/Ettercap/ettercap/commit/42600aada0ba56b9c63dabcc2b0cb1417fa27863
Here you go!
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-02-21 15:12:30 UTC
A commit references this bug:

Author: sunpoet
Date: Sat Feb 21 15:11:29 UTC 2015
New revision: 379520
URL: https://svnweb.freebsd.org/changeset/ports/379520

Log:
  - Import upstream patches:
    - Fix when determine MTU on BSD system [1]
    - Reset logfile ownership upon dropping privileges [2]
  - Bump PORTREVISION for package change

  PR:		197509 [2]
  Submitted by:	Rafal Grzeszczuk <rafi.root@gmail.com> [2]
  Obtained from:	https://github.com/Ettercap/ettercap/commit/00f864d7dd2d82b640064db81aad065794b9b11b [1]
  		https://github.com/Ettercap/ettercap/commit/42600aada0ba56b9c63dabcc2b0cb1417fa27863 [2]

Changes:
  head/net-mgmt/ettercap/Makefile
  head/net-mgmt/ettercap/files/
  head/net-mgmt/ettercap/files/patch-include-ec_log.h
  head/net-mgmt/ettercap/files/patch-src-ec_log.c
  head/net-mgmt/ettercap/files/patch-src-ec_utils.c
  head/net-mgmt/ettercap/files/patch-src-os-ec_bsd.c
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-02-21 15:14:47 UTC
Committed. Thanks!
Comment 6 Rafał Grzeszczuk 2015-02-22 11:16:12 UTC
Created attachment 153310 [details]
Make's output.
Comment 7 Rafał Grzeszczuk 2015-02-22 11:16:30 UTC
Actually, this might be a more complex issue.
I applied the update and it fixed nothing. Ettercap installed from ports still creates a .core file and crashes. It is not the case if I use ettercap's cmake system. However the program is unable to route packets (this is being addressed by the ettercap team), so I am beginning to suspect the fault might be in a library used to
I attach make's output.
Comment 8 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-03-22 13:14:41 UTC
This port has been updated to 0.8.2 (latest). Please confirm if it solves your problem. Thanks!