From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 02:41:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A21EC106564A for ; Tue, 1 Feb 2011 02:41:00 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3648D8FC0C for ; Tue, 1 Feb 2011 02:40:59 +0000 (UTC) Received: by wwf26 with SMTP id 26so6298457wwf.31 for ; Mon, 31 Jan 2011 18:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=InQ4QOFMcveho5CN9ayO0VEyV64fKG3knkUi+bST/jg=; b=bm4TilO7Qy9Tv5rHV9CVX9giFGlSsuNv/H5suooaH8XA/MsMbfwf8/dkQTTEiIENaX PoaMJGSUskI7iHeH6BbCoqrJYWnwaCMaxZE7HqIlLxwIoiBlo/by26Ds8GW2LR/9CsLl d7tcqVDt7e4OAklB0kCrG9yM0hlZu44wslc8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=YXkVvsNq8JjWkraPc+IRuzbSoXINysfUGLBYSW19sPetv/mbB2v8cbvi5OHrZ8Fngj 2FsYbdvz2qoQFdOFNnq1ATE+ABmd/6S8AXrZpTyRtJjoNlWOxtuvP+Ai6EPiC/y6n0Um Ak2gqAjzkHeCqmCIPIDiPm5EXomu8o3uMK7QY= MIME-Version: 1.0 Received: by 10.216.154.83 with SMTP id g61mr7267618wek.87.1296526340134; Mon, 31 Jan 2011 18:12:20 -0800 (PST) Received: by 10.216.36.71 with HTTP; Mon, 31 Jan 2011 18:12:19 -0800 (PST) In-Reply-To: References: Date: Mon, 31 Jan 2011 20:12:19 -0600 Message-ID: From: Brandon Gooch To: Axel Barnabas Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" Subject: Re: Ettercap segmentation fault.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 02:41:00 -0000 On Tue, Jul 6, 2010 at 11:21 PM, Axel Barnabas wrote: > Hello, > > I have compiles ettercap from ports without incident. However, when I att= empt to run ettercap in any way, after a short while the program crashes an= d I am presented with an error message which is as follows: > > > Ooops ! This shouldn't happen... > Segmentation Fault... > > Please recompile in debug mode, reproduce the bug and send a bugreport > > > I have deinstalled and recompiled to program twice, yielding no results. > Some additional information which may be useful- > > #pkg_info | grep ettercap > ettercap-gtk2-0.7.3_10,1 A network sniffer/interceptor/injector/logger fo= r switched > > #uname -a > FreeBSD =A08.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 20= 09 =A0 =A0 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC =A0amd64 > > If anyone wishes me to recompile in debug mode, you will have to tell me = how; I am not familiar with the process. > > Axel Try this: Before building the port (if you're starting from scratch), run: Code: # cd /usr/ports/net-mgmt/ettercap # make fetch # make extract In the file "/usr/ports/net-mgmt/ettercap/work/ettercap-NG-0.7.3/src/protoc= ols/ec_tcp.c" on line 119, change the following line from: Code: opt_end =3D (u_char *)((int)tcp + tcp->off * 4); To: Code: opt_end =3D (u_char *)(tcp + tcp->off * 4); ...using your favorite text editor. Then, run the typical: Code: # make config # make build # make install After all of that, give the program a run or two, and see if it's working. Let us all know. -Brandon [Refer to FreeBSD Forum Thread: http://forums.freebsd.org/showthread.php?t=3D15719]