Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_close crashes on windows 10 #188

Closed
helgemathee opened this issue Mar 30, 2017 · 4 comments
Closed

_close crashes on windows 10 #188

helgemathee opened this issue Mar 30, 2017 · 4 comments

Comments

@helgemathee
Copy link

Description of Issue

When running USD on windows 10 there is a crash in atomicOfStreamWrapper and possibly other places calling _close on a temporary file. the use of _sopen_s and _close seems to be causing crashes on Windows 10, Visual Studio 2015.

I've tested using GetTempFileName instead (see attached patch) and that works.
fileSystem.cpp.txt

Steps to Reproduce

  1. Build on Windows 10, Visual Studio 2015
  2. try to create a stage in C++

System Information (OS, Hardware)

Windows 10, Visual Studio 2015

Package Versions

latest dev branch

Build Flags

@jtran56
Copy link

jtran56 commented Mar 30, 2017

Filed as internal issue #144797.

@sunyab
Copy link
Contributor

sunyab commented Mar 31, 2017

Hi @helgemathee, we haven't seen this in any of our local testing here -- any chance you could send us a stack trace of the crash? Thanks!

@helgemathee
Copy link
Author

helloworld.zip

here's a minimalistic repro - you can use scons or just build the arch into a dll and the main into an exe - it crashes during execution.

I'll dig a bit deeper today and will keep you posted - also with a stacktrace.

@helgemathee
Copy link
Author

so this was related to two runtimes fighting - linking with /MT on windows causes this issue. closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants