Segfault when applying LocationFunc to a function created with SYNTAX_TREE_CODE #4507
Closed
Description
opened on May 22, 2021
Steps to reproduce
Enter the following code in a REPL:
LocationFunc(SYNTAX_TREE_CODE(SYNTAX_TREE(x->x)));
Observed behaviour
Segfault
Expected behaviour
Not a segfault :D
Copy and paste GAP banner (to tell us about your setup)
┌───────┐ GAP 4.12dev-890-gae742ec built on 2021-05-22 17:28:02+0200
│ GAP │ https://www.gap-system.org
└───────┘ Architecture: x86_64-pc-linux-gnu-default64-kv8
Configuration: gmp 6.2.1, GASMAN, readline
Loading the library and packages ...
Packages: Browse 1.8.9, GAPDoc 1.dev, IO 4.7.0dev, PrimGrp 3.4.0, SmallGrp 1.4.1, TransGrp 2.0.5
Try '??help' for help. See also '?copyright', '?cite' and '?authors'
Notes
- This also occurs with GAP 4.11.1 (I assume this never worked).
FilenameFunc
,StartlineFunc
, andEndlineFunc
do not cause a segfault.
Activity