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

javascript: segmentation fault #4005

Closed
idoganzer opened this issue May 19, 2024 · 1 comment · Fixed by #4008
Closed

javascript: segmentation fault #4005

idoganzer opened this issue May 19, 2024 · 1 comment · Fixed by #4008
Assignees

Comments

@idoganzer
Copy link

The name of the parser: jscript

The command line you used to run ctags:

$ ctags --options=NONE -R

The content of input file:

test = ({}
) => {}

Error response:

segmentation fault  ctags --options=NONE -R

It works for:

test = ({}) => {}

The version of ctags:

$ ctags --version
Universal Ctags 6.1.0, Copyright (C) 2015-2023 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: May 12 2024, 01:01:34
  URL: https://ctags.io/
  Output version: 0.0
  Optional compiled features: +wildcards, +regex, +gnulib_fnmatch, +gnulib_regex, +iconv, +option-directory, +xpath, +json, +interactive, +yaml, +case-insensitive-filenames, +packcc, +optscript, +pcre2

How do you get ctags binary:

$ brew install universal-ctags
@jafl jafl self-assigned this May 19, 2024
@b4n
Copy link
Member

b4n commented May 19, 2024

@jafl I forgot to self-assign, and I have a fix. I'll PR.

b4n added a commit to b4n/fishman-ctags that referenced this issue May 19, 2024
Also fill in representation when emitting a held token, e.g. after an
implicit semicolon.

Fixes universal-ctags#4005.
@b4n b4n assigned b4n and unassigned jafl May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants