Structure in a bad state can crash ChimeraX
Reported by: |
tic20@… |
Owned by: |
Eric Pettersen |
Priority:
|
normal
|
Milestone:
|
|
Component:
|
Core
|
Version:
|
|
Keywords:
|
|
Cc:
|
|
Blocked By:
|
|
Blocking:
|
|
Notify when closed:
|
|
Platform:
|
all
|
Project:
|
ChimeraX
|
|
|
The following bug report has been submitted:
Platform: Linux-3.10.0-957.12.2.el7.x86_64-x86_64-with-centos-7.6.1810-Core
ChimeraX Version: 0.91 (2019-06-28)
Description
This is pure user-error on my part and probably difficult to guard against, but if a Python error is raised between creating a new atom with Model.new_atom() and actually adding it to a residue, then everything crashes and burns with a segmentation fault.
Log:
Startup Messages
---
warning | 'clip' is a prefix of an existing command 'clipper'
UCSF ChimeraX version: 0.91 (2019-06-28)
© 2016-2019 Regents of the University of California. All rights reserved.
How to cite UCSF ChimeraX
OpenGL version: 3.3.0 NVIDIA 415.27
OpenGL renderer: TITAN Xp/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
Change History
(5)
Component: |
Unassigned → Core
|
Owner: |
set to Eric Pettersen
|
Platform: |
→ all
|
Project: |
→ ChimeraX
|
Status: |
new → accepted
|
Summary: |
ChimeraX bug report submission → Structure in a bad state can crash ChimeraX
|
Resolution: |
→ wontfix
|
Status: |
accepted → closed
|
I am open to suggestions, but I have no inclination to guard every use of atom.residue in the C++ layer with a test against null. My advice would be to put the absolute minimum amount of code possible between creating the atom and adding it to a residue.