libvirtd assert failure: *** glibc detected *** /usr/sbin/libvirtd: realloc(): invalid next size: 0x00007f289004d5e0 ***

Bug #726099 reported by Roland Dreier
80
This bug affects 7 people
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
Invalid
Undecided
Unassigned
libpciaccess (Ubuntu)
Invalid
Undecided
Unassigned
libvirt (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

This popped up on boot...

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: libvirt-bin 0.8.8-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic x86_64
Architecture: amd64
AssertionMessage: *** glibc detected *** /usr/sbin/libvirtd: realloc(): invalid next size: 0x00007f289004d5e0 ***
Date: Sun Feb 27 09:23:39 2011
ExecutablePath: /usr/sbin/libvirtd
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101206)
ProcAttrCurrent: /usr/sbin/libvirtd (enforce)
ProcCmdline: /usr/sbin/libvirtd -d
ProcEnviron: PATH=(custom, no user)
Signal: 6
SourcePackage: libvirt
StacktraceTop:
 raise () from /lib/libc.so.6
 abort () from /lib/libc.so.6
 ?? () from /lib/libc.so.6
 ?? () from /lib/libc.so.6
 ?? () from /lib/libc.so.6
Title: libvirtd assert failure: *** glibc detected *** /usr/sbin/libvirtd: realloc(): invalid next size: 0x00007f289004d5e0 ***
UserGroups:

Revision history for this message
Roland Dreier (roland.dreier) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
 abort () at abort.c:92
 __libc_message (do_abort=2, fmt=0x7f28998945d0 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
 malloc_printerr (action=3, str=0x7f28998918e7 "realloc(): invalid next size", ptr=<value optimized out>) at malloc.c:6283
 _int_realloc (av=0x7f2890000020, oldp=0x7f289004d5d0, oldsize=<value optimized out>, nb=96816) at malloc.c:5238

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in libvirt (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
visibility: private → public
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug and helping to make Ubuntu better.

Does this still happen? Do you have any VM's set to autostart with libvirt?

Changed in libvirt (Ubuntu):
status: New → Incomplete
Revision history for this message
Roland Dreier (roland.dreier) wrote :

I do have some virt manager VMs set up, but none of them set up to autostart.

So far I've only seen this pop up once.

Revision history for this message
Roland Dreier (roland.dreier) wrote :

er, "pop up once recently."

It seems to happen very intermittently, maybe once every 10 boots or more.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks, Roland. When it happens next could you attach a new stack trace? (perhaps just 'apport-collect 726099' will upload the info). The stacktrace attached so far suggests that libc's malloc is at fault, so we may want to mark this bug as affecting libc as well. But I'd like to see if another stacktrace is identical, or randomly different.

Revision history for this message
Roland Dreier (roland.dreier) wrote :

Sure, will do.

To be honest, the first time around happened long enough ago that I didn't even realize that the second crash was a duplicate...

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Two of the duplicates are from lucid, have the same eglibc signature as this one (bad old size in realloc), but those don't show where that was called. This bug (the original) and the other dup from natty both show libpcialloc to be the one which called realloc when it failed.

Changed in libvirt (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi,

could everyone please install the amd64 packages in comment #11 and shout if it happens again with these packages?

many thanks.

Revision history for this message
Joshua R. Poulson (jrp) wrote :

I'm not 64bit, I'm pae.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Please collect a full backtrace - see http://wiki.ubuntu.com/X/Backtracing for directions.

Or, if the libvirt fix solves it sufficiently, and no action is needed for libpciaccess you can close out the libpciaccess task.

Changed in libpciaccess (Ubuntu):
status: New → Incomplete
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Can anyone who has installed the proposed packages please comment to let us know how long they've been using it? We'd like an idea of wether (a) noone is using it or (b) people using it are just not seeing the issue any more.

many thanks.

Revision history for this message
Joshua R. Poulson (jrp) wrote :

I only saw it once.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

closing for libpciaccess

Changed in libpciaccess (Ubuntu):
status: Incomplete → Invalid
Changed in libvirt (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
dino99 (9d9) wrote :

This is no more a supported version now

Changed in libvirt (Ubuntu):
status: Confirmed → Invalid
Changed in eglibc (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.