[Github-comments] [geany/geany] Geany crashes on .pas file if there is any character between TYPE keyword and the first type (#2428)

elextr notifications at xxxxx
Tue Jan 28 10:42:06 UTC 2020


Confirmed on ` Geany 1.37 (git >= 82590af4)`

In ctags, partial backtrace:

```
#0  0x00007ffff7b0bc6f in makeTagEntry (tag=tag at entry=0x7fffffffbf20)
    at main/entry.c:1255
#1  0x00007ffff7b27ac7 in makePascalTag (tag=0x7fffffffbf20)
    at parsers/pascal.c:61
#2  0x00007ffff7b27ac7 in findPascalTags () at parsers/pascal.c:272
#3  0x00007ffff7b23fb6 in createTagsForFile (language=<optimised out>, passCount=1) at main/parse.c:2158
#4  0x00007ffff7b2725e in createTagsWithFallback1 (userData=0x7fffe002b430, passCallback=0x7ffff7afe720 <ctags_pass_start>, language=4) at main/parse.c:2233
#5  0x00007ffff7b2725e in createTagsWithFallback (buffer=<optimised out>, bufferSize=<optimised out>, fileName=<optimised out>, language=4, tagCallback=<optimised out>, passCallback=0x7ffff7afe720 <ctags_pass_start>, userData=0x7fffe002b430) at main/parse.c:2320
#6  0x00007ffff7b09c22 in ctagsParse (buffer=buffer at entry=0x5555564b81b0 "program test\n\ntype\n\n  { comment }\n  TType = class\n    one: Integer;\n  end;", bufferSize=bufferSize at entry=74, fileName=fileName at entry=0x555555995600 "/tmp/untitled.pas", language=<optimised out>, tagCallback=tagCallback at entry=0x7ffff7afe8d0 <ctags_new_tag>, passCallback=passCallback at entry=0x7ffff7afe720 <ctags_pass_start>, userData=<optimised out>) at main/ctags-api.c:74
#7  0x00007ffff7aff872 in tm_source_file_parse (source_file=source_file at entry=0x7fffe002b430, text_buf=text_buf at entry=0x5555564b81b0 "program test\n\ntype\n\n  { comment }\n  TType = class\n    one: Integer;\n  end;", buf_size=buf_size at entry=74, use_buffer=use_buffer at entry=1) at tm_source_file.c:829
---Type <return> to continue, or q <return> to quit---
#8  0x00007ffff7b00d26 in update_source_file (source_file=0x7fffe002b430, text_buf=0x5555564b81b0 "program test\n\ntype\n\n  { comment }\n  TType = class\n    one: Integer;\n  end;", buf_size=74, use_buffer=1, update_workspace=<optimised out>) at tm_workspace.c:159
#9  0x00007ffff7922273 in document_update_tags (doc=0x5555562adb70)
    at document.c:2695
#10 0x00007ffff792255c in document_set_filetype (doc=0x5555562adb70, type=0x555555de8180) at document.c:2843
#11 0x00007ffff7925343 in document_save_file_as (doc=doc at entry=0x5555562adb70, utf8_fname=utf8_fname at entry=0x555555a5dfe0 "/tmp/untitled.pas")
    at document.c:1835
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2428#issuecomment-579184768
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200128/61cb0883/attachment.htm>


More information about the Github-comments mailing list