Reply To: Crash on openSUSE 10.2

#10357
w1ll14m
Participant

I have the same problem here,

It seems that index page triggers something that causes a Segmentation fault somewhere (i think it is only on 64 systems 😥 as i don’t have this problem on my 32bit system…)

rpedde ever seen this before ?


Thread 23: Entering ws_dispatcher (Connection from 127.0.0.1)
Thread 23: got request
Request: GET /xml-rpc?method=stats HTTP/1.1
Thread 23: Read: Host: 127.0.0.1:8080
Thread 23: Adding header *Host=127.0.0.1:8080*
Added *Host=127.0.0.1:8080*
Thread 23: Read: User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; nl; rv:1.8.1.3) Gecko/20070427 Firefox/2.0.0.3
Thread 23: Adding header *User-Agent=Mozilla/5.0 (X11; U; Linux x86_64; nl; rv:1.8.1.3) Gecko/20070427 Firefox/2.0.0.3*
Added *User-Agent=Mozilla/5.0 (X11; U; Linux x86_64; nl; rv:1.8.1.3) Gecko/20070427 Firefox/2.0.0.3*
Thread 23: Read: Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Thread 23: Adding header *Accept=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5*
Added *Accept=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5*
Thread 23: Read: Accept-Language: nl,en-us;q=0.7,en;q=0.3
Thread 23: Adding header *Accept-Language=nl,en-us;q=0.7,en;q=0.3*
Added *Accept-Language=nl,en-us;q=0.7,en;q=0.3*
Thread 23: Read: Accept-Encoding: gzip,deflate
Thread 23: Adding header *Accept-Encoding=gzip,deflate*
Added *Accept-Encoding=gzip,deflate*
Thread 23: Read: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Thread 23: Adding header *Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7*
Added *Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7*
Thread 23: Read: Keep-Alive: 300
Thread 23: Adding header *Keep-Alive=300*
Added *Keep-Alive=300*
Thread 23: Read: Connection: keep-alive
Thread 23: Adding header *Connection=keep-alive*
Added *Connection=keep-alive*
Thread 23: Read: X-Requested-With: XMLHttpRequest
Thread 23: Adding header *X-Requested-With=XMLHttpRequest*
Added *X-Requested-With=XMLHttpRequest*
Thread 23: Read: X-Prototype-Version: 1.4.0
Thread 23: Adding header *X-Prototype-Version=1.4.0*
Added *X-Prototype-Version=1.4.0*
Thread 23: Read: Referer: http://127.0.0.1:8080/index.html
Thread 23: Adding header *Referer=http://127.0.0.1:8080/index.html*
Added *Referer=http://127.0.0.1:8080/index.html*
Thread 23: Read: Authorization: Basic [password-hash]
Thread 23: Adding header *Authorization=Basic [password-hash]*
Added *Authorization=Basic [password-hash]*
Thread 23: Read:
Thread 23: Headers parsed!
Checking to see if connection matches close
And it does NOT
Thread 23: Connection type HTTP/1.1
: Connection: persist
Thread 23: parsing GET args
Thread 23: Entering ws_getgetvars (method=stats)
Thread 23: Adding arg method = stats
Added *method=stats*
Thread 23: Done parsing GET/POST args!
Thread 23: Original URI: /xml-rpc
Thread 23: Translated URI: /xml-rpc
Thread 23: Preparing to find handler
Checking /xml-rpc against handler for /
Thread 23: URI Match!
Thread 23: Time is 1177731934 seconds after epoch
Thread 23: Setting time header
Added *Date=Sat, 28 Apr 2007 03:45:34 GMT*
Added *Connection=keep-alive*
Added *Server=mt-daapd/svn-1549*
Added *Content-Type=text/html*
Added *Content-Language=en_us*
Thread 23: Using non-default handler
in main_auth
Checking url /xml-rpc
Checking url /xml-rpc
Dispatching auth for /xml-rpc to config auth
Checking NULL/NULL for admin
Checking if pw required for /xml-rpc as admin
Yep
Preparing to decode [password-hash]
Decoded firefly:[password]
Decoded user=firefly, pw=[password]
in main_auth
Checking url /xml-rpc
Checking url /xml-rpc
Dispatching auth for /xml-rpc to config auth
Checking firefly/[password] for admin
Added *HTTP_USER=firefly*
Added *HTTP_PASSWD=[password]*
in main_handler
Checking url /xml-rpc
Checking url /xml-rpc
Dispatching /xml-rpc to config handler
Entering config_handler
Entering config_set_status
Exiting config_set_status
Updating Connection from keep-alive to close
Entering config_set_status
Exiting config_set_status
Added *Cache-Control=no-cache*
Added *Expires=-1*
Updating Content-Type from text/html to text/xml; charset=utf-8
Emitting reponse header Expires: -1
Emitting reponse header Cache-Control: no-cache
Emitting reponse header Content-Language: en_us
Emitting reponse header Content-Type: text/xml; charset=utf-8
Emitting reponse header Server: mt-daapd/svn-1549
Emitting reponse header Connection: close
Emitting reponse header Date: Sat, 28 Apr 2007 03:45:34 GMT
Status inquiry
Processing rendezvous message
select(12, 5.000000)
Returning status 0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1107310912 (LWP 10321)]
0x00002b6de0dae031 in ?? () from /lib/libc.so.6
(gdb) kill
Kill the program being debugged? (y or n) y
Processing rendezvous message
Rendezvous socket closed (daap server crashed?) Aborting.
Aborting
(gdb) run -d9 -f -c /etc/mt-daapd.conf -y

Backtrace:


#0 0x00002b280f662031 in ?? () from /lib/libc.so.6
#1 0x00002b280f6474b1 in vfprintf () from /lib/libc.so.6
#2 0x00002b280f66ba1a in vsnprintf () from /lib/libc.so.6
#3 0x00000000004176bc in xml_output (pxml=0x5785e0, section=0x446bdc "name",
fmt=0xffffffffffffffc0
) at xml-rpc.c:307
#4 0x0000000000417993 in xml_get_stats (pwsc=) at xml-rpc.c:549
#5 0x000000000040a7b7 in config_handler (pwsc=0x579e00) at configfile.c:438
#6 0x0000000000408f2f in ws_dispatcher (arg=) at webserver.c:986
#7 0x00002b280e40a135 in start_thread () from /lib/libpthread.so.0
#8 0x00002b280f6c52ce in clone () from /lib/libc.so.6
#9 0x0000000000000000 in ?? ()
(gdb) select(12, 2.164062)
select(12, 0.100585)
select(12, 0.100585)
select(12, 5.000000)

Regards,
William