Simple program results in core dump
Open
Nobody has claimed this yet.
bug :bug:
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 358
- Avg merge
- 1d 58m
- Merged PRs (30d)
- 4
Description
Pre-Report Checklist
- I am running the latest versions of pyQuil and the Forest SDK
- I checked to make sure that this bug has not already been reported
Issue Description
When running a simple program which parses and prints a Quil program, an error message is printed after the program.
How to Reproduce
Code Snippet
from pyquil import get_qc, Program
qc = get_qc("Aspen-M-3")
p = Program("""
DEFCAL I %q:
DELAY q 4e-8
""")
print(p)
Error Output
DEFCAL I %q:
DELAY q 4e-8
FATAL: exception not rethrown
[2] 20258 IOT instruction (core dumped) python test-defcal.py
Environment Context
Operating System: Ubuntu
Python Version (python -V): 3.8.16
Quilc Version (quilc --version): 1.26
QVM Version (qvm --version): 1.17.2
Pyquil Version: 4.0.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python snippet with the listed pyQuil, quilc, and QVM versions on Ubuntu to reproduce the fatal error and core dump. Trace the path used when parsing and printing the DEFCAL program; done means the program prints without the fatal message or crash, with a regression test covering this example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100