Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when getting syntax tree of function with nested sublist extraction of level 3 (or more) #5117

Closed
zickgraf opened this issue Oct 14, 2022 · 0 comments · Fixed by #5165
Labels
kind: bug: crash Issues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes) kind: bug Issues describing general bugs, and PRs fixing them

Comments

@zickgraf
Copy link
Contributor

Observed behaviour

gap> func := function ( x ) return [ [ [ 1 ] ] ]{[ 1 ]}{[ 1 ]}{[ 1 ]}; end;
function( x ) ... end
gap> func( 1 );
[ [ [ 1 ] ] ]
gap> SYNTAX_TREE( func );
zsh: segmentation fault (core dumped)  gap

Expected behaviour

No segfault.

Copy and paste GAP banner (to tell us about your setup)

 ┌───────┐   GAP 4.13dev-80-g4a1b294 built on 2022-10-14 17:39:56+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:   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'
@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them kind: bug: crash Issues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes) labels Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug: crash Issues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes) kind: bug Issues describing general bugs, and PRs fixing them
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants