Opened 9 years ago

Closed 8 years ago

#9729 closed Bugs (fixed)

crash on managed_external_buffer object construction

Reported by: d.khlus@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

An managed_external_buffer object construction coursed "buffer overrun" exception. Exception appeared only in Release x64 build mode, other build configuration work perfectly (e.g. Debug x64).

Environment: boost 1.55

Microsoft Visual Studio Ultimate 2013 Version 12.0.21005.1 REL

#include <boost/interprocess/managed_external_buffer.hpp>
#include <boost/aligned_storage.hpp>

#include <iostream>

int main()
{
	using namespace boost::interprocess;

	const int memsize = 65536;
	static boost::aligned_storage<memsize>::type static_buffer;
	managed_external_buffer objects_in_static_memory(create_only, &static_buffer, memsize);

	return 0;
}

Change History (4)

comment:1 by d.khlus@…, 9 years ago

Additionally, if code optimization is disabled - everything works perfectly and bug is not reproduced.

comment:2 by Ion Gaztañaga, 9 years ago

This was fixed in current Git develop and master branches. Can you test if your problem goes away with that code?

comment:3 by d.khlus@…, 9 years ago

I successfully test it on dev branch. Bug is not reproduced. Issue resolved. Thank you for quick response and your help.

comment:4 by Ion Gaztañaga, 8 years ago

Resolution: fixed
Status: newclosed

This was fixed in:

SHA-1: cdda0f1854ebd90997b6a2375283afd6edf921fa

  • Workaround for MSVC2013 x64
Note: See TracTickets for help on using tickets.