[lldb-dev] Windows crash after D9056
colin at codeplay.com
Thu May 21 08:57:15 PDT 2015
Zachary, do you see this on windows at all? Tip for us results in
crashes when releasing file descriptors without the below fix.
On 19/05/2015 12:52, Aidan Dodds wrote:
> We have been seeing a crash on windows when connecting to an android
> target using lldb-server.
> I am not sure if this affects other platforms too.
> I think this was introduced with http://reviews.llvm.org/D9056.
> I tracked the crash back to the workings of ModuleCache::GetAndPut().
> The crash seems to be due to a file descriptor being released twice,
> once by the original "File lock_file" and again by the "LockFile lock"
> who share the same file descriptor.
> The file descriptor sharing happens because of this line:
> ModuleCache.cpp @ 164
> LockFile lock (lock_file.GetDescriptor ());
> Both destructors attempt to release effectively the same file
> descriptor. I was able to fix the crash by duplicating the file
> handle in the lock file constructor using _dup(). (patch attached)
> I wasn't sure if this was the right fix however. Has anyone else seen
> Should "File lock_file" perhaps transfer its file descriptor
> completely rather then share it?
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
- Colin Riley
Parallel/Graphics Debugger Systems
Codeplay Software Ltd
45 York Place, Edinburgh, EH1 3HP
Tel: 0131 466 0503
Fax: 0131 557 6600
This email and any attachments may contain confidential and /or privileged information and is for use by the addressee only. If you are not the intended recipient, please notify Codeplay Software Ltd immediately and delete the message from your computer. You may not copy or forward it,or use or disclose its contents to any other person. Any views or other information in this message which do not relate to our business are not authorized by Codeplay software Ltd, nor does this message form part of any contract unless so stated.
As internet communications are capable of data corruption Codeplay Software Ltd does not accept any responsibility for any changes made to this message after it was sent. Please note that Codeplay Software Ltd does not accept any liability or responsibility for viruses and it is your responsibility to scan any attachments.
Company registered in England and Wales, number: 04567874
Registered office: 81 Linkfield Street, Redhill RH1 6BY
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev