[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Debugging XAPI daemon crash


  • To: "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • From: Ranjeet R <rranjeet@xxxxxxxxxxx>
  • Date: Sat, 22 Mar 2014 03:45:20 +0000
  • Accept-language: en-US
  • Delivery-date: Sat, 22 Mar 2014 03:45:59 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: Ac9FeZIEEGyvK3fqS5+yO9kiSTP+fw==
  • Thread-topic: Debugging XAPI daemon crash

Hello all

I am trying to bring a DevCloud setup which has an XCP Kronos based XAPI 
daemon. I had changed the underlying network implementation (it is not a 
bridge, but an openvswitch-like network implementation) and the XAPI daemon 
crashes during bootup. Please find the XAPI logs below. 


starting up database engine D:72969b3eaf8e|redo_log] Flushing database to all 
active redo-logs
starting up database engine D:72969b3eaf8e|xapi] About to flush database: 
/var/lib/xcp/state.db
starting up database engine D:72969b3eaf8e|redo_log] Flushing database to all 
active redo-logs
starting up database engine D:72969b3eaf8e|xapi] Performing initial DB GC
thread_zero|dbsync (update_env) D:fd0aec7399c9|dbsync] Sync: 
sync_create_localhost
dbsync (update_env) D:fd0aec7399c9|dbsync] creating localhost

dmesg logs seem to suggest that xapi is crashing during startup.

[    9.092377] xapi[2813]: segfault at 0 ip 085bc286 sp bf80ae30 error 4 in 
xapi[8048000+59f000]
[    9.869971] xapi[2943]: segfault at 0 ip 085bc286 sp bf8ec450 error 4 in 
xapi[8048000+59f000]

I looked the XAPI code to see where it fails and I don't see any logs after the 
following code point in ocaml / xapi / dbsync_slave.ml

let create_localhost ~__context info =
  let ip = get_my_ip_addr ~__context in

I confirmed to see that "ifconfig xenbr0" has a valid management IP address and 
should not fail. 

How do I debug this crash further. Are there any ways to look at the stack 
trace where XAPI crashed. Any pointers to debug this further will be very 
helpful.

-Ranjeet


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.