Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83429 - ethereal-0.10.11 - capture using stdin or fifo does not work
Summary: ethereal-0.10.11 - capture using stdin or fifo does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-02-26 20:04 UTC by Oliver Walter
Modified: 2005-07-19 05:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fifo.patch (fifo.patch,1.11 KB, patch)
2005-07-16 05:36 UTC, petre rodan (RETIRED)
Details | Diff
ethereal-0.10.11-r1.ebuild (ethereal-0.10.11-r1.ebuild,3.58 KB, patch)
2005-07-16 05:36 UTC, petre rodan (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Walter 2005-02-26 20:04:17 UTC
Since ethereal-0.10.9 capturing from stdin and fifo no longer works.


Reproducible: Always
Steps to Reproduce:
1. "tcpdump -i eth0 -w - -s 0 -l|ethereal -i - -k -S"
2. make some traffic
Actual Results:  
Ethereal starts, shows (captures?) nothing, capturing stops after a while with
the message: "Child capture process died: Segmentation violation" and the
messages that no packets were captured.

Expected Results:  
Ethereal should show a live capture as if you were capturing from a network
interface.
This still works with ethereal-0.10.8 and lower.
I need this to do a remote capture on my routers using 'ssh host "tcpdump...'

Portage 2.0.51-r15 (default-linux/x86/2004.2, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 mobile AMD Athlon(tm) XP-M 2600+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 14:07:29)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.du.se/pub/os/gentoo http://ftp.lug.ro/gentoo/"
LANG="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 acpi afs alsa arts avi bash-completion berkdb bidi
bitmap-fonts bonobo bootsplash bzlib cdda cddb cdio cdr crypt cups curl dga
divx4linux doc dts dvd dvdr emboss encode esd ethereal f77 faad fam ffmpeg flac
font-server foomaticdb fortran freetype ftp gdbm ggi gif gnome gnutls gpm gtk
gtk2 gtkhtml httpd icq imagemagick imlib ipv6 jabber java jikes jpeg kde
kerberos krb4 ldap libg++ libwww live mad matroska mikmod mmx motif mozilla mpeg
mppe-mppc ncurses network nls ogg oggvorbisopengl oscar pam pcmcia pdflib perl
png pnp ppds python qt quicktime readline real samba sdl slang spell sse ssl
stream svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts
usb utf8 v4l vcd videos vlm vorbis wxwindows xine xml xml2 xmms xosd xv xvid
zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-03-14 16:54:04 UTC
Can you please test if this issue is still present in 0.10.10?
Comment 2 Oliver Walter 2005-04-14 23:24:19 UTC
still the same problem
Comment 3 Oliver Walter 2005-05-04 16:00:47 UTC
Is no one able to reproduce the bug?
Simply start "tcpdump ... -w -">fifo (create fifo with mknod) and then "ethereal -i fifo".
Make some traffic and tell us if it works.

Tody I was "forced" to ugrade ti 0.10.10 because of kismet....
Comment 4 Daniel Black (RETIRED) gentoo-dev 2005-05-23 14:29:36 UTC
sorry fails for me too. 
 
using strace -fe trace=file ethereal -i /tmp/fifo 
 
shows it isn't reading from the fifo. 
wc -l /tmp/fifo 
shows there is still stuff to read is reading stuff. 
 
http://www.ethereal.com/lists/ethereal-dev/200505/msg00329.html has the 
problem upstream 
 
http://www.ethereal.com/lists/ethereal-dev/200505/msg00326.html 
seems to be fixed in the cvs version. 
 
If you can find the patch we'll fix it. 
Comment 5 Oliver Walter 2005-05-24 10:37:59 UTC
Thanks for your answer.
The only thing I found was this:
http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=125
but I haven't tested it yet.
Comment 6 Marcelo Goes (RETIRED) gentoo-dev 2005-06-18 17:07:47 UTC
Seems to be present in 0.10.11 too.
Comment 7 petre rodan (RETIRED) gentoo-dev 2005-07-16 05:36:00 UTC
Created attachment 63525 [details, diff]
fifo.patch

patch obtained from diffing SVN 14441 and SVN 14442 from the ethereal
repository
Comment 8 petre rodan (RETIRED) gentoo-dev 2005-07-16 05:36:38 UTC
Created attachment 63526 [details, diff]
ethereal-0.10.11-r1.ebuild

new ebuild
Comment 9 Oliver Walter 2005-07-18 11:46:33 UTC
Works for me.
Comment 10 petre rodan (RETIRED) gentoo-dev 2005-07-18 23:06:33 UTC
@oliver 
thanks for the bug report and for your help

@netmon
I can commit this one if you want
Comment 11 Daniel Black (RETIRED) gentoo-dev 2005-07-19 01:58:08 UTC
please go for it 
Comment 12 petre rodan (RETIRED) gentoo-dev 2005-07-19 05:28:19 UTC
InCVS