Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492978 - app-emulation/virtualbox-guest-additions-4.2.18 - ../..sandbox-2.6/libsandbox/memory.c:free():59: failure (Invalid argument): sandbox memory corruption with free(0x00002ba06fa00008): Invalid argument
Summary: app-emulation/virtualbox-guest-additions-4.2.18 - ../..sandbox-2.6/libsandbox...
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-30 20:34 UTC by Alexey Mishustin
Modified: 2019-04-20 10:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
buildlog (vblog,583.33 KB, text/plain)
2013-11-30 20:35 UTC, Alexey Mishustin
Details
message_in_shell (vblog_addition,154 bytes, text/plain)
2013-11-30 20:36 UTC, Alexey Mishustin
Details
emerge --info (eminfo,4.42 KB, text/plain)
2013-11-30 20:36 UTC, Alexey Mishustin
Details
screenshot (screenshot-20131201@000929.png,16.09 KB, image/png)
2013-11-30 20:37 UTC, Alexey Mishustin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Mishustin 2013-11-30 20:34:39 UTC
The problem appears in the guest system while compiling app-emulation/virtualbox-guest-additions-4.2.18. Tried 2 times and got the same error. Buildlog attached.

Host system: Gentoo amd64.
Guest system: Gentoo amd64.

Guest configuration: 1024 MB memory, 2048 MB swap, VT-x/AMD-V enabled, Nested Paging disabled (it was very slow with Nested Paging enabled).

I've got no problem with memory on the host system and on another (x86) guest systems.

This case could be related: http://forums-lb.gentoo.org/viewtopic-p-7395278.html?sid=7904ea3cfe04367039bcd09a5845edb1

Reproducible: Always

Steps to Reproduce:
1. emerge -v virtualbox-guest-additions
Comment 1 Alexey Mishustin 2013-11-30 20:35:27 UTC
Created attachment 364288 [details]
buildlog
Comment 2 Alexey Mishustin 2013-11-30 20:36:14 UTC
Created attachment 364290 [details]
message_in_shell
Comment 3 Alexey Mishustin 2013-11-30 20:36:39 UTC
Created attachment 364292 [details]
emerge --info
Comment 4 Alexey Mishustin 2013-11-30 20:37:50 UTC
Created attachment 364294 [details]
screenshot
Comment 5 Alexey Mishustin 2013-12-01 12:56:52 UTC
Unpacked sources of sandbox, looked at memory.c. The error that I get is coded here:
	if (munmap(SB_MALLOC_TO_MMAP(ptr), SB_MALLOC_TO_SIZE(ptr)))
		sb_ebort("sandbox memory corruption with free(%p): %s\n",
			ptr, strerror(errno));

Is there a way to debug it, to understand why munmap fail? My knowledge of C is minimal.

(I don't beleive the memory of my machine is broken. Could it be an error in software?)
Comment 6 aabarkley3 2014-12-16 16:19:51 UTC
Time to close this (RESOLVED WON'T FIX). The oldest version in the tree is 4.2.24.
Comment 7 SpanKY gentoo-dev 2015-09-20 08:20:24 UTC
does this issue still happen with sandbox-2.8 ?  i happened across a bad strdup call in the code and i wonder if this might impact you.