Operating system: Windows 10
Graphics card: GeForce GTX 1070
Short description of error
Blender --background execution with a script that bakes a scene that has objects with (some?) modifiers will crash with 'EXCEPTION_ACCESS_VIOLATION'. Baking the same scene in interactive mode with same settings works without issue.
Exact steps for others to reproduce the error
I'm no longer sure exactly how this can be reproduced as it seems to be an interaction between two objects. Removing/apply modifiers causes the problem to go away however. I am attaching a very simple scene that demonstrates the crash and a basic script that will try to bake the scene.
Run blender on the command line with: crash1.blend --background --python crash.py