Opened 13 years ago

Closed 12 years ago

#3375 closed Bugs (wontfix)

The thread hang up on managed_mapped_file::shrink_to_fit() call

Reported by: Kirill.Ierusalimov@… Owned by: Ion Gaztañaga
Milestone: Boost 1.41.0 Component: interprocess
Version: Boost 1.39.0 Severity: Problem
Keywords: shrink_to_fit managed_mapped_file hang up Cc:

Description

Hello! I found some bug in the interprocess library. I use boost::interprocess::managed_mapped_file class and managed_mapped_file::shrink_to_fit() method to decrease the size of file on the disk. It works good but the thread hang up on shrink_to_fit() call if the file exists already and it's size is zero. It makes me check the file existance and it's size before shrink_to_fit() call. Thank you!

Change History (2)

comment:1 by Ion Gaztañaga, 13 years ago

How can you get a managed_mapped file with size 0? That's a corrupted file. Interprocess could check this case but in general is programmers responsibility that the mapped file should not be corrupted.

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

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.