Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289516 - net.ath0 crashes system at start with mode_ath0="master" in conf.d/net and do not start without it
Summary: net.ath0 crashes system at start with mode_ath0="master" in conf.d/net and do...
Status: RESOLVED DUPLICATE of bug 224467
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
: 295581 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-17 19:56 UTC by Alexandr
Modified: 2009-12-05 09:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr 2009-10-17 19:56:58 UTC
I'm running 2 kernels - 2.6.27-openvz-briullov.1-r2 and 2.6.30-gentoo-r5.
hostapd v0.6.9.

Configured as described in http://en.gentoo-wiki.com/wiki/Madwifi_Wireless_Access_Point

/etc/init.d/net.ath0 -> net.lo

With /etc/conf.d/net containing
config_ath0="null"
mode_ath0="master"

/eth/init.d/net.ath0 start results in full system crash on both kernels. No logs are written.

Removal of mode_ath0="master" string results in the following error:
 * Starting ath0
 *   Configuring wireless network for ath0
 *     no access points found
 *   Couldn't find any access points on ath0
 *   Failed to configure wireless for ath0                                              [ !! ]

But ifconfig ath0 up && /etc/init.d/hostapd start works normally.

Reproducible: Always

Steps to Reproduce:
1. Install system via Handbook for amd64
2. Configure wireless as in http://en.gentoo-wiki.com/wiki/Madwifi_Wireless_Access_Point

Actual Results:  
In description.

Expected Results:  
ath0 interface and hostapd started
Comment 1 Alexandr 2009-10-17 19:59:35 UTC
Portage 2.1.6.13 (hardened/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.27-openvz-briullov.1-r2 x86_64)
=================================================================
System uname: Linux-2.6.27-openvz-briullov.1-r2-x86_64-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 17 Oct 2009 08:00:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cgi cli cracklib crypt dri gdbm gpm hardened iconv isdnlog justify madwifi mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session spl sse sse2 ssl sysfs tcpd urandom xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 antonio martiradonna 2009-11-17 10:05:37 UTC
This has to be somehow related to madwifi driver

removing the 
"options autocreate=ap" 
in /etc/modprobe.d/ath_pci.conf

The system doesn't crash and the instructions in /etc/conf.d/net are executed correctly.

executing the commands
ifconfig ath0 down
iwconfig ath0 destroy
iwconfig ath0 create wlandev wifi0 wlanmode ap

makes the system become completely unresponsive as soon as the card led signalize it has switched again to master mode.

Strangely enough I have traces of the madwifi driver in my /var/log/messages after hard reset, which makes me think about some memory corruption somewhere.

I'm running kernel 2.6.30-gentoo-r8

more details provided at will
Comment 3 Steev Klimaszewski (RETIRED) gentoo-dev 2009-12-02 15:49:55 UTC
I can't seem to reproduce this on my Efika, my Thinkpad, or my VIA machines - none are running hardened though, not that I really think that matters.  Antonio could you provide the output of emerge --info (or paludis --whatever-the-option-is if you use paludis) 
Thanks!
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2009-12-03 13:44:13 UTC

*** This bug has been marked as a duplicate of bug 224467 ***
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2009-12-05 09:51:03 UTC
*** Bug 295581 has been marked as a duplicate of this bug. ***