Skip to content

Segfault when applying LocationFunc to a function created with SYNTAX_TREE_CODE #4507

Closed
@zickgraf

Description

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

  1. This also occurs with GAP 4.11.1 (I assume this never worked).
  2. FilenameFunc, StartlineFunc, and EndlineFunc do not cause a segfault.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    kind: bugIssues describing general bugs, and PRs fixing themkind: bug: crashIssues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions