Your message dated Sat, 11 Apr 2009 12:02:16 +0000
with message-id <[email protected]>
and subject line Bug#518435: fixed in wireshark 1.0.7-1
has caused the Debian Bug report #518435,
regarding /usr/bin/dumpcap: erroneously dies with error message on ^C
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
518435: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518435
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wireshark-common
Version: 1.0.2-3+lenny4
Severity: normal
File: /usr/bin/dumpcap
Tags: patch

When dumpcap is interrupted with ^C it erroneously believes a packet
capturing error has occurred:

  # dumpcap
  File: /tmp/etherXXXXbg3xVx
  Packets: 44 ^CError while capturing packets: 
  Please report this to the Wireshark developers.
  (This is not a crash; please do not report it as such.)
  Packets: 59 Packets dropped: 0

The problem is a failure to properly check the return value from
pcap_dispatch().  The attached patch corrects this problem.


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages wireshark-common depends on:
ii  libadns1              1.4-2              Asynchronous-capable DNS client li
ii  libc6                 2.7-18             GNU C Library: Shared libraries
ii  libcap2               2.11-2             support for getting/setting POSIX.
ii  libcomerr2            1.41.3-1           common error description library
ii  libgcrypt11           1.4.1-1            LGPL Crypto library - runtime libr
ii  libglib2.0-0          2.16.6-1           The GLib library of C routines
ii  libgnutls26           2.4.2-6+lenny1     the GNU TLS library - runtime libr
ii  libkrb53              1.6.dfsg.4~beta1-5 MIT Kerberos runtime libraries
ii  liblua5.1-0           5.1.3-1            Simple, extensible, embeddable pro
ii  libpcap0.8            0.9.8-5            system interface for user-level pa
ii  libpcre3              7.6-2.1            Perl 5 Compatible Regular Expressi
ii  zlib1g                1:1.2.3.3.dfsg-12  compression library - runtime

Versions of packages wireshark-common recommends:
ii  tshark                    1.0.2-3+lenny4 network traffic analyzer (console)
ii  wireshark                 1.0.2-3+lenny4 network traffic analyzer

wireshark-common suggests no packages.

-- no debconf information
>From 30fcd744088ca92dd8a6a2bd49c9ef662c4d6644 Mon Sep 17 00:00:00 2001
From: Rob Leslie <[email protected]>
Date: Wed, 4 Mar 2009 15:48:04 -0800
Subject: [PATCH] Fix dumpcap believing error on ^C i.e. pcap_breakloop()

When ^C was pressed during a packet capture, dumpcap believed a pcap
error had occurred.  We check the return value more closely to avoid
this problem.
---
 dumpcap.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dumpcap.c b/dumpcap.c
index b052f59..aaebc7b 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1511,7 +1511,10 @@ capture_loop_dispatch(capture_options *capture_opts _U_, 
loop_data *ld,
         inpkts = pcap_dispatch(ld->pcap_h, 1, capture_loop_packet_cb,
                                (u_char *)ld);
         if (inpkts < 0) {
-          ld->pcap_err = TRUE;
+         if (inpkts == -1) {
+           /* Error, rather than pcap_breakloop(). */
+           ld->pcap_err = TRUE;
+         }
           ld->go = FALSE; /* error or pcap_breakloop() - stop capturing */
         }
       } else {
-- 
1.6.0.2.GIT


--- End Message ---
--- Begin Message ---
Source: wireshark
Source-Version: 1.0.7-1

We believe that the bug you reported is fixed in the latest version of
wireshark, which is due to be installed in the Debian FTP archive:

tshark_1.0.7-1_amd64.deb
  to pool/main/w/wireshark/tshark_1.0.7-1_amd64.deb
wireshark-common_1.0.7-1_amd64.deb
  to pool/main/w/wireshark/wireshark-common_1.0.7-1_amd64.deb
wireshark-dev_1.0.7-1_amd64.deb
  to pool/main/w/wireshark/wireshark-dev_1.0.7-1_amd64.deb
wireshark_1.0.7-1.diff.gz
  to pool/main/w/wireshark/wireshark_1.0.7-1.diff.gz
wireshark_1.0.7-1.dsc
  to pool/main/w/wireshark/wireshark_1.0.7-1.dsc
wireshark_1.0.7-1_amd64.deb
  to pool/main/w/wireshark/wireshark_1.0.7-1_amd64.deb
wireshark_1.0.7.orig.tar.gz
  to pool/main/w/wireshark/wireshark_1.0.7.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joost Yervante Damad <[email protected]> (supplier of updated wireshark package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 11 Apr 2009 10:06:45 +0200
Source: wireshark
Binary: wireshark-common wireshark tshark wireshark-dev
Architecture: source amd64
Version: 1.0.7-1
Distribution: unstable
Urgency: low
Maintainer: Frederic Peters <[email protected]>
Changed-By: Joost Yervante Damad <[email protected]>
Description: 
 tshark     - network traffic analyzer (console)
 wireshark  - network traffic analyzer
 wireshark-common - network traffic analyser (common files)
 wireshark-dev - network traffic analyser (development tools)
Closes: 518435
Changes: 
 wireshark (1.0.7-1) unstable; urgency=low
 .
   * New upstream release 1.0.7
     - release notes:
       http://www.wireshark.org/docs/relnotes/wireshark-1.0.7.html
     - security fixes:
       - The PROFINET dissector was vulnerable to a format string
         overflow. (CVE-2009-1210)
       - The LDAP dissector could crash on Windows. (CVE-2009-1267)
       - The Check Point High-Availability Protocol (CPHAP) dissector
         could crash. (CVE-2009-1268)
       - Wireshark could crash while loading a Tektronix .rf5 file
         (CVE-2009-1269)
   * update standards-version to 3.8.1
   * add 21_dumpcap.dpatch with patch from Rob Leslie <[email protected]>
     that should avoid dumpcap seeing stop on CTRL-C as an error
     (Closes: #518435)
Checksums-Sha1: 
 0ad989040eb961654e7ce9090c8552ebb851254a 1468 wireshark_1.0.7-1.dsc
 bd43d286b89c6665e99915497ed24b4156251118 17284541 wireshark_1.0.7.orig.tar.gz
 f36a4e4907558d9f2533015cd5d5ce49e0b749bf 51639 wireshark_1.0.7-1.diff.gz
 626a944cc50b474c6f3054919181716ffdf16498 12038098 
wireshark-common_1.0.7-1_amd64.deb
 5cf33ac0241dc2df14b254697bda0c1d24721081 658932 wireshark_1.0.7-1_amd64.deb
 fd75d775cecf67462ace4eb3870de375d06f0e8b 119570 tshark_1.0.7-1_amd64.deb
 de3a4d153ae8f370460ee6a4154c6df67a752320 585524 wireshark-dev_1.0.7-1_amd64.deb
Checksums-Sha256: 
 4a1d2b73efb7680fbbcfcc3ad83159a2bf7579d51436d57f003636e93afec4bb 1468 
wireshark_1.0.7-1.dsc
 097fef1f5c3a06842d5bc727c6e6a3f2afbf3dce20b8f756112b4807267046cc 17284541 
wireshark_1.0.7.orig.tar.gz
 fe2306bfc95960a0bff6ba0a72bbda777a1d239691898deaaaf9174860107024 51639 
wireshark_1.0.7-1.diff.gz
 864babf4095fe431b422a9b064b93a230d35e4bd5d280cd5cd5de9482f7f1495 12038098 
wireshark-common_1.0.7-1_amd64.deb
 c38123017c2de4b894cad617fe243c48880fbc7df2ad7ecfe3339bbbf7aac6c2 658932 
wireshark_1.0.7-1_amd64.deb
 f34e258881971da4941bfa41c24045dfee857209983129472541d5176e193efb 119570 
tshark_1.0.7-1_amd64.deb
 ea3762e4e46dbfeea48f478932614492a20f40916ae39d3db870efe9c79daa68 585524 
wireshark-dev_1.0.7-1_amd64.deb
Files: 
 4bf176df1d7d6987f4336697d1f988ea 1468 net optional wireshark_1.0.7-1.dsc
 7536fba99df811688aa9c1405764dc7c 17284541 net optional 
wireshark_1.0.7.orig.tar.gz
 9744272d6462fdcaab0717c9525ed147 51639 net optional wireshark_1.0.7-1.diff.gz
 9a680ba7e09a7b016ab9bdfc223b3535 12038098 net optional 
wireshark-common_1.0.7-1_amd64.deb
 ea7d2d57d8d59e07d0b55a0a009caf9e 658932 net optional 
wireshark_1.0.7-1_amd64.deb
 b1d8cd492bcd2456222ca0945772c90e 119570 net optional tshark_1.0.7-1_amd64.deb
 01efd34e206ce218a2852cf934c076f0 585524 devel optional 
wireshark-dev_1.0.7-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkngeRkACgkQ0/r2+3z8lN0ojACgnTUnQf5DEfYzn8mR95YoHXGj
+ckAoL7oICdrRQJa9GQBGk+N+Zs5buaU
=f0mu
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to