Mailinglist Archive: opensuse-bugs (4661 mails)

< Previous Next >
[Bug 639111] iwevent crash
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 14 Sep 2010 12:21:11 +0000
  • Message-id: <20100914122111.4BF21CC7CE@xxxxxxxxxxxxxxxxxxxxxx>

https://bugzilla.novell.com/show_bug.cgi?id=639111

https://bugzilla.novell.com/show_bug.cgi?id=639111#c7


Harald Koenig <koenig@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|koenig@xxxxxxxx |

--- Comment #7 from Harald Koenig <koenig@xxxxxxxx> 2010-09-14 12:21:10 UTC ---
(In reply to comment #6)
https://api.opensuse.org/build/home:BinLi:branches:openSUSE:11.3:Update:Test/standard/i586/wireless-tools/wireless-tools-30.pre8-14.1.i586.rpm

https://api.opensuse.org/build/home:BinLi:branches:openSUSE:11.3:Update:Test/standard/i586/wireless-tools/libiw30-30.pre8-14.1.i586.rpm

I add a debug patch to output the length of data.

--- wireless_tools.30.orig/iwevent.c
+++ wireless_tools.30/iwevent.c
@@ -512,6 +512,7 @@ print_event_stream(int ifindex,
struct timezone tz;
struct wireless_iface * wireless_data;

+ printf("strlen data is %d, len is %d.\n", strlen(data), len);
/* Get data from cache */
wireless_data = iw_get_interface_data(ifindex);
if(wireless_data == NULL)


Could you try it?

the 32bit rpm doesn't "perfectly" fit into my 64bit system, but there is
--nodeps et voila ;-)

with your 32 bit iwevent image I get two more lines of output before it
crashes: while the 64bit prog crashes after 'Set ESSID:"context"' your 32bit
bianry prints 'Association Response IEs:...' and 'New Access Point/Cell
address' :


12:11:36.053683 wlan0 Set Frequency:2.462 GHz (Channel 11)
strlen data is 1, len is 15.
12:11:36.053737 wlan0 Set ESSID:"context"
Associated with 00:21:29:d3:8c:86
CTRL-EVENT-CONNECTED - Connection to 00:21:29:d3:8c:86 completed (reauth) [id=1
id_str=]
strlen data is 1, len is 173.
12:11:36.065292 wlan0 Association Response
IEs:010882848B962430486C32040C1218602D1A1C181AFFFFFF00000000000000D80007000000000000000000003D160B001700000000000000000000000000000
strlen data is 1, len is 20.
12:11:36.065348 wlan0 New Access Point/Cell address:00:21:29:D3:8C:86

Breakpoint 1, 0xf7ecb690 in __stack_chk_fail () from /lib/libc.so.6
(gdb) c
Continuing.
*** stack smashing detected ***: /usr/sbin/iwevent terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x40)[0xf7ecb6f0]
/lib/libc.so.6(+0xea6a7)[0xf7ecb6a7]
/usr/sbin/iwevent[0x804a082]
/usr/sbin/iwevent[0x804a38c]
/lib/libc.so.6(__libc_start_main+0xfe)[0xf7df7c0e]
/usr/sbin/iwevent[0x8048f71]
======= Memory map: ========


for the 64bit binary len is 181 after output of 'Set ESSID:"context"' and
strlen(data) is 1 too (checked in gdb)

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References