[FS#933] Opkg segfault on mt7621

LEDE Bugs lede-bugs at lists.infradead.org
Fri Jul 28 00:16:00 PDT 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - Zhong Jianxin (azuwis) 

Attached to Project - LEDE Project
Summary - Opkg segfault on mt7621
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - High
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - ====Device info====

# cat /etc/openwrt_release 
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r4638-0d4cda8'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r4638-0d4cda8'
DISTRIB_TAINTS='no-all'

# cat /tmp/sysinfo/model 
ZBT-WG3526 (16M)

====Step to reproduce====
# opkg info wpad
Package: wpad
Version: 2016-12-19-ad02e79d-4
Depends: libc, libnl-tiny, hostapd-common, libubus
Status: unknown ok not-installed
Section: net
Architecture: mipsel_24kc
Size: 412144
Filename: wpad_2016-12-19-ad02e79d-4_mipsel_24kc.ipk
Description: This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS
 Authenticator and Supplicant

# opkg update
Downloading http://downloads.lede-project.org/snapshots/targets/ramips/mt7621/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_core
Downloading http://downloads.lede-project.org/snapshots/targets/ramips/mt7621/packages/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_base
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_luci
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_packages
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_routing
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/reboot_telephony
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.

# opkg info wpad
Segmentation fault

Dmsg:

[ 1056.387693] do_page_fault(): sending SIGSEGV to opkg for invalid read access from 00000000
[ 1056.395965] epc = 773c541c in libc.so[77352000+92000]
[ 1056.401021] ra  = 0040d815 in opkg[400000+1b000]


After remove `/tmp/opkg-lists/reboot_packages`, segfault gone.

# rm /tmp/opkg-lists/reboot_packages
# opkg info wpad
Package: wpad
Version: 2016-12-19-ad02e79d-4
Depends: libc, libnl-tiny, hostapd-common, libubus
Status: unknown ok not-installed
Section: net
Architecture: mipsel_24kc
Size: 412144
Filename: wpad_2016-12-19-ad02e79d-4_mipsel_24kc.ipk
Description: This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS
 Authenticator and Supplicant


More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=933



More information about the lede-bugs mailing list