WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] xentop segfault -- xenstat_domain_name returning a null poin

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xentop segfault -- xenstat_domain_name returning a null pointer?
From: Charles Duffy <cduffy@xxxxxxxxxxx>
Date: Sun, 13 Nov 2005 20:55:40 -0600
Delivery-date: Mon, 14 Nov 2005 03:04:02 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.4 (Windows/20050908)
# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      512     1 r-----    41.8
demo-1                             1     1024     1 -b----    23.5
demo-2                             2     1024     1 -b----    23.1
demo-db                            3     2048     1 -b----    18.3
demo-vnc                           4      768     1 -b----     8.2
# gdb ./xentop
...
(gdb) run
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 9196)]
0x00002aaaaae9253f in strcasecmp () from /lib/libc.so.6
(gdb) bt
#0  0x00002aaaaae9253f in strcasecmp () from /lib/libc.so.6
#1  0x0000000000401f51 in compare_name (domain1=0x5248d0, domain2=0x524920)
    at xentop.c:351
#2 0x0000000000401f1e in compare_domains (domain1=0x524a70, domain2=0x524a78)
    at xentop.c:343
#3  0x00002aaaaae541ed in bsearch () from /lib/libc.so.6
#4  0x00002aaaaae540e4 in bsearch () from /lib/libc.so.6
#5  0x00002aaaaae543c9 in qsort () from /lib/libc.so.6
#6  0x00000000004030aa in top () at xentop.c:788
#7  0x0000000000403346 in main (argc=1, argv=0x7fffffe4dd38) at xentop.c:873
(gdb) up
#1  0x0000000000401f51 in compare_name (domain1=0x5248d0, domain2=0x524920)
    at xentop.c:351
351 return strcasecmp(xenstat_domain_name(domain1), xenstat_domain_name(domain2));
(gdb) print xenstat_domain_name(domain1)
$5 = 0
(gdb) print xenstat_domain_name(domain2)
$6 = 5393056
(gdb) print (char*)xenstat_domain_name(domain2)
$7 = 0x524aa0 "demo-1"


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>