Operating system: Windows 10 Home
Graphics card: Intel HD Graphics 505
Broken: 2.79 and 2.79b
Worked: Untested on other Blender versions
**Short description of error**
When a Python script creates a node tree in bpy.data.node_groups, creates nodes in that tree using node_tree.nodes.new(), and attempts to create a link between nodes using node_tree.links.new(), there is a 5-10% chance that the link creation step fails. During such a failure, Blender crashes, and the console prints Error: EXCEPTION_ACCESS_VIOLATION. This can happen when the script is run from Blender's text editor or from an add-on. This is confirmed to occur in Blender 2.79 and 2.79b.
**Exact steps for others to reproduce the error**
Repeatedly open the attached file, run the Python script named Text, and close Blender. One out of every 10-20 attempts doing these steps will crash Blender.