OpenWrt Forum Archive

Topic: HTTPD segfaults when I access webif

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Using OpenWRT 10077, and the busybox http server.  I installed webif, but whenever I try to access the interface from my browser the httpd segfaults:

Unable to handle kernel paging request at virtual address 00000000, epc == 80011                                                                             1b8, ra == 80007da4
Oops in fault.c::do_page_fault, line 206:
$0 : 00000000 1000fc00 80c11e50 1000fc01 80c1bad0 80c11e48 00000000 81026034
$8 : 00000001 80194b78 00000000 80194b40 00000dd2 1000fc01 00000000 00000001
$16: 80c1bac8 80c1bad0 81026034 80c1ba5c 00000000 00000000 80c1b9a0 00000000
$24: ba2e8ba3 801aa5d4                   80c10000 80c11e38 80c11ee0 80007da4
Hi : ffffd68a
Lo : 00000dd2
epc   : 800111b8    Tainted: P
Status: 1000fc02
Cause : 0000000c
PrId  : 00029006
Process httpd (pid: 998, stackpage=80c10000)
Stack:    80194dec 00000000 81bea820 00000000 00000001 80c10000 80c1bad0
 00000000 80c1b9a0 80c1bac8 800724bc 00000000 81bea820 80c1ba5c 00000000
 00000000 8107e030 81026034 81bea820 80027108 00000000 80044fb4 ffffffe9
 00030002 80c11f20 800279b0 00000001 00000286 81b1c7c0 00000000 81bea820
 7fff0000 81bea840 80c11f20 004a7820 00000000 7fff7af8 80027be0 800433b8
 7fff7a68 ...
Call Trace:   [<800724bc>] [<80027108>] [<80044fb4>] [<800279b0>] [<80027be0>]
 [<800433b8>] [<8001eb0c>] [<80027d24>] [<80008a60>] [<8005b9ec>]

Code: 24a20008  aca40008  ac820004 <acc20000> ac460004  40016000  30630001  3421                                                                             0001  38210001

I tried using Apache instead of the busybox server, but I couldn't get it to run the .awx scripts.  Anyone know how to either fix busybox/httpd, or get awx working on Apache?

Thanks in advance!

nvm,
found a solution here:
http://forum.openwrt.org/viewtopic.php?pid=61126#p61126

Disabling sendfile in the busybox httpd section of menuconfig did the trick.

Hrm...  The main page loads, and I can get to the about page as well, but all the other sections just present me with a blank page.  Probably something to do with missing packages though, as I don't see any errors in dmesg.

(Last edited by Zacpod on 2 Jan 2008, 07:57)

The discussion might have continued from here.