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

CPreProcessor: Assertion `c >= 0 && c <= 0xff' failed #3771

Closed
masatake opened this issue Jul 10, 2023 · 1 comment · Fixed by #3886
Closed

CPreProcessor: Assertion `c >= 0 && c <= 0xff' failed #3771

masatake opened this issue Jul 10, 2023 · 1 comment · Fixed by #3886
Assignees
Milestone

Comments

@masatake
Copy link
Member

input.java:

{_(

building ctags:

./configure --enable-debugging; make clean;make

Running ctags:

$ ./ctags --options=NONE --kinds-Java=+l  /tmp/input.java
ctags: Notice: No options will be read from files or environment
ctags: ./main/vstring.h:110: vStringPutImpl: Assertion `c >= 0 && c <= 0xff' failed.
ctags: ./main/vstring.h:110: parsing /tmp/input.java:1 as Java
zsh: IOT instruction (core dumped)  ./ctags --options=NONE --kinds-Java=+l /tmp/input.java
@masatake masatake self-assigned this Jul 10, 2023
@masatake masatake added this to the 6.1 milestone Jul 10, 2023
@masatake
Copy link
Member Author

masatake commented Jul 25, 2023

Related to #3449.

The following files must be inspected.

This may be a chance toremove c.c that includes OldC and OldC++.

A fix can be:

@@ -2310,7 +2310,9 @@ static int parseParens (statementInfo *const st, parenInfo *const info)
    do
    {
        int c = skipToNonWhite ();
-       vStringPut (Signature, c);
+
+       if (! (c == CHAR_SYMBOL || c == STRING_SYMBOL || c == EOF))
+           vStringPut (Signature, c);
 
        switch (c)

@masatake masatake changed the title Java: Assertion `c >= 0 && c <= 0xff' failed CPreProcessor: Assertion `c >= 0 && c <= 0xff' failed Jul 25, 2023
masatake added a commit to masatake/ctags that referenced this issue Dec 18, 2023
Close universal-ctags#3771.
Did the same as universal-ctags#3796.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant