Modify

Opened 7 years ago

Closed 4 years ago

#8406 closed defect (fixed)

iwinfo.scanlist() segfaults

Reported by: koniu <gkusnierz@…> Owned by: jow
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: libiwinfo iwinfo nl80211 segfault Cc:

Description

With v13 of libiwinfo I'm experiencing occasional segfaults whilst scanning:

root@marvin:~# strace -o segv lua -l iwinfo -e 'while true do iwinfo.nl80211.scanlist("wlan1") end'
Segmentation fault

strace output attached.

Attachments (1)

segv (13.4 KB) - added by koniu <gkusnierz@…> 7 years ago.
strace output

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by koniu <gkusnierz@…>

strace output

comment:1 Changed 7 years ago by jow

  • Owner changed from developers to jow
  • Status changed from new to accepted

comment:2 Changed 7 years ago by koniu <gkusnierz@…>

<bump>

been a while, i'm still interested in sorting this out - it's getting in my way for some good reasons ;)

comment:3 Changed 7 years ago by koniu <gkusnierz@…>

backtrace:
Using target mips_r2 (uClibc-0.9.31)
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i486-linux-gnu --target=mips-openwrt-linux-uclibc"...
[New Thread 11684]
0x2aaa8a50 in _start () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/lib/ld-uClibc.so.0
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x2abb4a20 in strstr () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/lib/libc.so.0
(gdb) backtrace
#0 0x2abb4a20 in strstr () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/lib/libc.so.0
#1 0x2abfce14 in nl80211_wpactl_info () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/lua/iwinfo.so
#2 0x2abfdf40 in nl80211_get_scanlist () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/lua/iwinfo.so
#3 0x2abfaa14 in iwinfo_L_scanlist () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/lua/iwinfo.so
#4 0x2aac9cb0 in luaD_precall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#5 0x2aad782c in luaV_execute () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#6 0x2aac9e8c in luaD_call () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#7 0x2aac939c in luaD_rawrunprotected () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#8 0x2aac9424 in luaD_pcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#9 0x2aac3a0c in lua_pcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#10 0x00401264 in docall ()
#11 0x00401348 in dostring ()
#12 0x00401dd4 in pmain ()
#13 0x2aac9cb0 in luaD_precall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#14 0x2aac9e74 in luaD_call () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#15 0x2aac939c in luaD_rawrunprotected () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#16 0x2aac9424 in luaD_pcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#17 0x2aac396c in lua_cpcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#18 0x00401164 in main ()

comment:4 Changed 7 years ago by koniu <gkusnierz@…>

crap, here it is

Using target mips_r2 (uClibc-0.9.31)
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i486-linux-gnu --target=mips-openwrt-linux-uclibc"...
[New Thread 11684]
0x2aaa8a50 in _start () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/lib/ld-uClibc.so.0
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x2abb4a20 in strstr () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/lib/libc.so.0
(gdb) backtrace
#0  0x2abb4a20 in strstr () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/lib/libc.so.0
#1  0x2abfce14 in nl80211_wpactl_info () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/lua/iwinfo.so
#2  0x2abfdf40 in nl80211_get_scanlist () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/lua/iwinfo.so
#3  0x2abfaa14 in iwinfo_L_scanlist () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/lua/iwinfo.so
#4  0x2aac9cb0 in luaD_precall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#5  0x2aad782c in luaV_execute () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#6  0x2aac9e8c in luaD_call () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#7  0x2aac939c in luaD_rawrunprotected () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#8  0x2aac9424 in luaD_pcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#9  0x2aac3a0c in lua_pcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#10 0x00401264 in docall ()
#11 0x00401348 in dostring ()
#12 0x00401dd4 in pmain ()
#13 0x2aac9cb0 in luaD_precall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#14 0x2aac9e74 in luaD_call () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#15 0x2aac939c in luaD_rawrunprotected () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#16 0x2aac9424 in luaD_pcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#17 0x2aac396c in lua_cpcall () from /home/koniu/data/kit/git/openwrt/scripts/../staging_dir/target-mips_r2_uClibc-0.9.31/root-ar71xx/usr/lib/liblua.so.5.1.4
#18 0x00401164 in main ()

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:6 Changed 4 years ago by jow

  • Resolution set to fixed
  • Status changed from accepted to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.