Opened 9 years ago

Last modified 9 years ago

#9097 new Bugs

directory_iterator crash with intel release builds on windows

Reported by: Nils Gladitz <gladitz@…> Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.54.0 Severity: Regression
Keywords: Cc:

Description

#include <boost/filesystem.hpp>

int main()
{
    boost::filesystem::directory_iterator i1("C:\\");
    boost::filesystem::directory_iterator i2("C:\\Windows");
}

Crashes in Intel (12.1 included in Composer XE 2011 SP1) release builds. Construction of i1 works but construction of i2 gives: Exception at 0x77a0320e, code: 0xc0000005: read access violation at: 0x0, flags=0x0 (first chance)

The crash (according to the debugger) happens in operations.cpp:2150. This used to work with Boost 1.48.0 and also isn't a problem with Debug or MSVC10 builds.

Change History (1)

comment:1 by Nils Gladitz <gladitz@…>, 9 years ago

This is a stack trace which seem to suggest that the crash may be due to a call to free():

0	RtlFreeHeap	ntdll		0x779c320e	
1	HeapFree	kernel32		0x7787300a	
2	free	MSVCR100		0x73c98d94	
3	boost::filesystem::detail::directory_iterator_construct	operations.cpp	2150	0x13fe4050b	
4	main	bfs_test.cpp	6	0x13fe31426	
5	__tmainCRTStartup	crtexe.c	555	0x13fe6cefa	
6	BaseThreadInitThunk	kernel32		0x7786652d	
7	RtlUserThreadStart	ntdll		0x7799c541	

Note: See TracTickets for help on using tickets.