Debian Bug report logs - #285441
Segmentation fault on aircrack

version graph

Package: aircrack; Maintainer for aircrack is (unknown);

Reported by: Lorenzo Milesi <lorenzo.milesi@gmail.com>

Date: Mon, 13 Dec 2004 09:48:11 UTC

Severity: normal

Found in version 2.1-1

Fixed in version aircrack/2.1-2

Done: David Martínez Moreno <ender@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, David Martínez Moreno <ender@debian.org>:
Bug#285441; Package aircrack. (full text, mbox, link).


Acknowledgement sent to Lorenzo Milesi <lorenzo.milesi@gmail.com>:
New Bug report received and forwarded. Copy sent to David Martínez Moreno <ender@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Lorenzo Milesi <lorenzo.milesi@gmail.com>
To: submit@bugs.debian.org
Subject: Segmentation fault on aircrack
Date: Mon, 13 Dec 2004 10:44:29 +0100
Package: aircrack
Version: 2.1-1

Error:
# aircrack Kismet-Dec-04-2004-15.dump
Opening pcap file Kismet-Dec-04-2004-15.dump
Segmentation fault


I've tried the same pcap file on a Ubuntu 32bit and the program starts. 


Accordingly with program author, I replaced
   if( fread( &pfh, 1, n, f_cap ) != (size_t) n )
with
   if( fread( &pfh, 1, (size_t) n, f_cap ) != (size_t) n )

but didn't solve.
We couldn't go further because he hadn't a 64bit test machine.
Here's the debug I produced for him after the modification

(gdb) run
Starting program: /home/maxxer/download/gzipped/aircrack-2.1/aircrack
Kismet-Dec-04-2004-15.dump
(no debugging symbols found)
(no debugging symbols found)
Opening pcap file Kismet-Dec-04-2004-15.dump
Program received signal SIGSEGV, Segmentation fault.
0x0000002a956ebcd4 in memcpy () from /lib/libc.so.6

(gdb) where
#0  0x0000002a956ebcd4 in memcpy () from /lib/libc.so.6
#1  0x0000002a956df7c8 in _IO_file_xsputn () from /lib/libc.so.6
#2  0x0000002a956e069e in _IO_sgetn () from /lib/libc.so.6
#3  0x0000002a956d4d91 in fread () from /lib/libc.so.6
#4  0x0000000000401024 in ?? ()
#5  0x000000000040315d in ?? ()
#6  0x0000002a956893c1 in __libc_start_main () from /lib/libc.so.6


I'm using Debian-amd64.
Libc 2.3.2.ds1-19
Custom 2.6.9 Kernel (from debian repository)



Information forwarded to debian-bugs-dist@lists.debian.org, David Martínez Moreno <ender@debian.org>:
Bug#285441; Package aircrack. (full text, mbox, link).


Acknowledgement sent to Stephane Jourdois <kwisatz@rubis.org>:
Extra info received and forwarded to list. Copy sent to David Martínez Moreno <ender@debian.org>. (full text, mbox, link).


Message #10 received at 285441@bugs.debian.org (full text, mbox, reply):

From: Stephane Jourdois <kwisatz@rubis.org>
To: Debian Bug Tracking System <285441@bugs.debian.org>
Subject: aircrack: patch for 64bits archs
Date: Tue, 12 Apr 2005 15:05:25 +0200
Package: aircrack
Version: 2.1-1
Followup-For: Bug #285441


This patch should do it for 64bits. At least it works here.

--- aircrack.c.orig	2005-04-11 16:59:28.000000000 +0200
+++ aircrack.c	2005-04-11 17:19:14.000000000 +0200
@@ -121,7 +121,12 @@
     unsigned long cnt1;
     unsigned long cnt2;
     unsigned char *h80211;
-    struct pcap_pkthdr pkh;
+    struct {
+        struct {
+	    int tv_sec, tv_usec;
+        } ts;
+	int caplen, len;
+    } pkh;
     struct pcap_file_header pfh;
 
     /* open the file and check the pcap header */


Stéphane Jourdois.

-- 
 ///  Stephane Jourdois     /"\  ASCII RIBBON CAMPAIGN \\\
(((    Consultant securite  \ /    AGAINST HTML MAIL    )))
 \\\   24 rue Cauchy         X                         ///
  \\\  75015  Paris         / \    +33 6 8643 3085    ///

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15) (ignored: LC_ALL set to fr_FR@euro)

Versions of packages aircrack depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, David Martínez Moreno <ender@debian.org>:
Bug#285441; Package aircrack. (full text, mbox, link).


Acknowledgement sent to Gruffi Gummi <debianbugs@detached.be>:
Extra info received and forwarded to list. Copy sent to David Martínez Moreno <ender@debian.org>. (full text, mbox, link).


Message #15 received at 285441@bugs.debian.org (full text, mbox, reply):

From: Gruffi Gummi <debianbugs@detached.be>
To: Debian Bug Tracking System <285441@bugs.debian.org>
Subject: aircrack: the 64bit patch posted by Stephane Jourdois works for me
Date: Wed, 13 Apr 2005 18:59:31 +0200
Package: aircrack
Version: 2.1-1
Followup-For: Bug #285441


i have successfully aplied the patch and tested it with a dump file.
The key i was looking for was found.

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.8-10-amd64-k8
Locale: LANG=nl_BE@euro, LC_CTYPE=nl_BE@euro (charmap=ISO-8859-15)

Versions of packages aircrack depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information



Reply sent to David Martínez Moreno <ender@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Lorenzo Milesi <lorenzo.milesi@gmail.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #20 received at 285441-close@bugs.debian.org (full text, mbox, reply):

From: David Martínez Moreno <ender@debian.org>
To: 285441-close@bugs.debian.org
Subject: Bug#285441: fixed in aircrack 2.1-2
Date: Mon, 25 Apr 2005 07:17:08 -0400
Source: aircrack
Source-Version: 2.1-2

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

aircrack_2.1-2.diff.gz
  to pool/main/a/aircrack/aircrack_2.1-2.diff.gz
aircrack_2.1-2.dsc
  to pool/main/a/aircrack/aircrack_2.1-2.dsc
aircrack_2.1-2_i386.deb
  to pool/main/a/aircrack/aircrack_2.1-2_i386.deb



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 285441@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Martínez Moreno <ender@debian.org> (supplier of updated aircrack 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 ftpmaster@debian.org)


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

Format: 1.7
Date: Mon, 25 Apr 2005 12:53:45 +0200
Source: aircrack
Binary: aircrack
Architecture: source i386
Version: 2.1-2
Distribution: unstable
Urgency: low
Maintainer: David Martínez Moreno <ender@debian.org>
Changed-By: David Martínez Moreno <ender@debian.org>
Description: 
 aircrack   - wireless WEP cracker
Closes: 285441
Changes: 
 aircrack (2.1-2) unstable; urgency=low
 .
   * Added patch for good behaviour in 64-bit architectures (many thanks,
     Stephane Jourdois!). Closes: #285441.
   * debian/copyright: Stated clearly the copyright.
Files: 
 46ad1d70b4c5c299477005350c3cd00d 567 net extra aircrack_2.1-2.dsc
 0c538ff49fa198d444524f40933ad0ef 2496 net extra aircrack_2.1-2.diff.gz
 374ee4b63305a771edd7aec9eedb9f48 26552 net extra aircrack_2.1-2_i386.deb

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

iD8DBQFCbMy8Ws/EhA1iABsRAnpoAJ4m3zHobo3DmeLZMNeB/GBYRNR0FQCfUdW4
NK7/IM+8FJTJMf13gEOoAmk=
=q3Rm
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jul 15 19:24:16 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.