<DIV>
<DIV>
<DIV>
<DIV>
<DIV> </DIV>
<DIV>I have been so far unable to generate a core file after wpa_supplicant exits with a </DIV>
<DIV>"Segmentation fault" message (even though I checked that other processes do generate </DIV>
<DIV>one when they receive a SIGSEGV signal). </DIV>
<DIV> </DIV>
<DIV>The output of GDB is included below -- unfortunately, it does not seem to have any </DIV>
<DIV>useful debug information. What I can add that might be of relevance is that</DIV>
<DIV> </DIV>
<DIV>* After crashing for the first time, the exit code for wpa_supplicant is 139. </DIV>
<DIV>* Any attempt at rerunning wpa_supplicant after the first crash freezes the shell. </DIV>
<DIV>The associated process enters state D+ (Uninterruptable sleep), and the only way to kill it is by rebooting. </DIV>
<DIV> </DIV>
<DIV>Any suggestions as to how to force the system to generate a core dump or any other useful debug information?</DIV>
<DIV> </DIV>
<DIV>Many thanks in advance! </DIV>
<DIV> </DIV>
<DIV><A href="mailto:pete_r880@yahoo.com">pete_r880@yahoo.com</A></DIV>
<DIV><FONT size=1><FONT size=1></FONT></FONT> </DIV>
<DIV><FONT size=1><FONT size=1></FONT></FONT> </DIV>
<DIV><FONT size=1><FONT size=1>[root@localhost ~]# gdb wpa_supplicant</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=1>(gdb) run -D ndiswrapper -i wlan0 -c /etc/wpa_supplicant.conf -dd</FONT></FONT></DIV>
<DIV>
<DIV><FONT size=1><FONT size=1>Starting program: /usr/local/bin/wpa_supplicant -D ndiswrapper -i wlan0 -c /etc/wpa_supplicant.conf -dd</FONT></FONT></DIV>
<DIV><FONT size=1>Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper'</FONT></DIV>
<DIV><FONT size=1>Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'</FONT></DIV>
<DIV><FONT size=1>Reading configuration file '/etc/wpa_supplicant.conf'</FONT></DIV>
<DIV><FONT size=1>ctrl_interface='/var/run/wpa_supplicant'</FONT></DIV>
<DIV><FONT size=1>Line: 2 - start of a new network block</FONT></DIV>
<DIV><FONT size=1>ssid - hexdump_ascii(len=8):</FONT></DIV>
<DIV><FONT size=1>56 61 6c 68 61 6c 6c 61 mywnet</FONT></DIV>
<DIV><FONT size=1>PSK (ASCII passphrase) - hexdump_ascii(len=31): [REMOVED]</FONT></DIV>
<DIV><FONT size=1>key_mgmt: 0x2</FONT></DIV>
<DIV><FONT size=1>proto: 0x1</FONT></DIV>
<DIV><FONT size=1>PSK (from passphrase) - hexdump(len=32): [REMOVED]</FONT></DIV>
<DIV><FONT size=1>Priority group 0</FONT></DIV>
<DIV><FONT size=1>id=0 ssid='mywnet'</FONT></DIV>
<DIV><FONT size=1>Initializing interface (2) 'wlan0'</FONT></DIV>
<DIV><FONT size=1>ioctl[SIOCSIWPMKSA]: No such device</FONT></DIV>
<DIV><FONT size=1>Own MAC address: 00:a0:c5:92:f8:ed</FONT></DIV>
<DIV><FONT size=1>Setting scan request: 0 sec 100000 usec</FONT></DIV>
<DIV><FONT size=1>Using existing control interface directory.</FONT></DIV>
<DIV><FONT size=1>Wireless event: cmd=0x8b06 len=8</FONT></DIV>
<DIV><FONT size=1>State: DISCONNECTED -> SCANNING</FONT></DIV>
<DIV><FONT size=1>Starting AP scan (broadcast SSID)</FONT></DIV>
<DIV><FONT size=1>Scan timeout - try to get results</FONT></DIV>
<DIV><FONT size=1>Received 489 bytes of scan results (2 BSSes)</FONT></DIV>
<DIV><FONT size=1>Scan results: 2</FONT></DIV>
<DIV><FONT size=1>Selecting BSS from priority group 0</FONT></DIV>
<DIV><FONT size=1>0: 00:a0:c5:cc:27:42 ssid='mywnet' wpa_ie_len=24 rsn_ie_len=0 caps=0x11</FONT></DIV>
<DIV><FONT size=1>selected</FONT></DIV>
<DIV><FONT size=1>Trying to associate with 00:a0:c5:cc:27:42 (SSID='mywnet' freq=2447 MHz)</FONT></DIV>
<DIV><FONT size=1>Cancelling scan request</FONT></DIV>
<DIV><FONT size=1>WPA: clearing own WPA/RSN IE</FONT></DIV>
<DIV><FONT size=1>Automatic auth_alg selection: 0x1</FONT></DIV>
<DIV><FONT size=1>WPA: using IEEE 802.11i/D3.0</FONT></DIV>
<DIV><FONT size=1>WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2</FONT></DIV>
<DIV><FONT size=1>WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02</FONT></DIV>
<DIV><FONT size=1>WPA: clearing AP RSN IE</FONT></DIV>
<DIV><FONT size=1>WPA: using GTK TKIP</FONT></DIV>
<DIV><FONT size=1>WPA: using PTK TKIP</FONT></DIV>
<DIV><FONT size=1>WPA: using KEY_MGMT WPA-PSK</FONT></DIV>
<DIV><FONT size=1>WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 </FONT><FONT size=1>50 f2 02</FONT></DIV>
<DIV><FONT size=1>No keys have been configured - skip key clearing</FONT></DIV>
<DIV><FONT size=1>State: SCANNING -> ASSOCIATING</FONT></DIV>
<DIV><FONT size=1>Program terminated with signal SIGSEGV, Segmentation fault.</FONT></DIV>
<DIV><FONT size=1>The program no longer exists.</FONT></DIV>
<DIV><FONT size=1>(gdb) bt</FONT></DIV>
<DIV><FONT size=1>No stack.</FONT></DIV>
<DIV><FONT size=1>(gdb) run -D ndiswrapper -i wlan0 -c /etc/wpa_supplicant.conf -dd</FONT></DIV>
<DIV><FONT size=1>Starting program: /usr/local/bin/wpa_supplicant -D ndiswrapper -i wlan0 -c /etc/wpa_supplicant.conf -dd</FONT></DIV>
<DIV><FONT size=1>Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper'</FONT></DIV>
<DIV><FONT size=1>Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'</FONT></DIV>
<DIV><FONT size=1>Reading configuration file '/etc/wpa_supplicant.conf'</FONT></DIV>
<DIV><FONT size=1>ctrl_interface='/var/run/wpa_supplicant'</FONT></DIV>
<DIV><FONT size=1>Line: 2 - start of a new network block</FONT></DIV>
<DIV><FONT size=1>ssid - hexdump_ascii(len=8):</FONT></DIV>
<DIV><FONT size=1>56 61 6c 68 61 6c 6c 61 mywnet</FONT></DIV>
<DIV><FONT size=1>PSK (ASCII passphrase) - hexdump_ascii(len=31): [REMOVED]</FONT></DIV>
<DIV><FONT size=1>key_mgmt: 0x2</FONT></DIV>
<DIV><FONT size=1>proto: 0x1</FONT></DIV>
<DIV><FONT size=1>PSK (from passphrase) - hexdump(len=32): [REMOVED]</FONT></DIV>
<DIV><FONT size=1>Priority group 0</FONT></DIV>
<DIV><FONT size=1>id=0 ssid='mywnet'</FONT></DIV>
<DIV><FONT size=1>Initializing interface (2) 'wlan0'</FONT></DIV>
<DIV><STRONG>[freezes]</STRONG></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV>
<DIV><B><I>
<P>Jouni Malinen <jkmaline@cc.hut.fi></B></I> wrote:</P>
<DIR>
<P>On Mon, Aug 22, 2005 at 01:48:13PM -0700, Pete R wrote:<BR><BR>> [root@localhost ~]# wpa_supplicant -D ndiswrapper -i wlan0 -c /etc/wpa_supplicant.conf -dd<BR><BR>> State: SCANNING -> ASSOCIATING<BR>> Segmentation fault<BR><BR>Could you please try to run wpa_supplicant under a debugger to get a<BR>backtrace of that segmentation fault? Following steps should provide the<BR>information I'm looking for assuming the wpa_supplicant binary was built<BR>with debugging information:<BR><BR>gdb wpa_supplicant<BR>run -D ndiswrapper -i wlan0 -c /etc/wpa_supplicant.conf -dd<BR>bt<BR><BR>('run' and 'bt' commands are run in gdb; I'm interested in the output of<BR>the 'bt' command)<BR><BR>Alternatively, enable core dumps with 'ulimit -c 3000000' and run<BR>wpa_supplicant again. This should generate a 'core' file when the<BR>segmentation fault happens. After this, send me a copy of the core file<BR>and the wpa_supplicant binary you
used.</P></DIR></DIV></DIV></DIV></DIV></DIV></DIV></DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com