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
Can you please test if this issue is still present in 0.10.10?
still the same problem
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....
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.
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.
Seems to be present in 0.10.11 too.
Created attachment 63525 [details, diff] fifo.patch patch obtained from diffing SVN 14441 and SVN 14442 from the ethereal repository
Created attachment 63526 [details, diff] ethereal-0.10.11-r1.ebuild new ebuild
Works for me.
@oliver thanks for the bug report and for your help @netmon I can commit this one if you want
please go for it
InCVS