[Github-comments] [geany/geany] usage of "type" in pascal causes crash + permanent malfunction (MacOS) (Issue #2982)

elextr notifications at xxxxx
Fri Nov 5 11:37:54 UTC 2021


Confirmed, bt:

```

Thread 1 "geany" received signal SIGSEGV, Segmentation fault.
0x00007ffff7efd184 in getLanguageKind (kindIndex=69, language=-154646337)
    at main/parse.c:333
333			kdef = getKind (LanguageTable [language].kindControlBlock, kindIndex);
(gdb) bt
#0  0x00007ffff7efd184 in getLanguageKind (kindIndex=69, language=-154646337)
    at main/parse.c:333
#1  getLanguageKind (language=-154646337, kindIndex=69) at main/parse.c:317
#2  0x00007ffff7efec4d in isLanguageKindEnabled
    (language=<optimised out>, kindIndex=<optimised out>) at main/parse.c:2225
#3  0x00007ffff7ec04ce in isTagWritable (tag=0x7fffffffda70) at main/entry.c:1472
#4  0x00007ffff7ec2285 in makeTagEntry (tag=tag at entry=0x7fffffffda70) at main/entry.c:1682
#5  0x00007ffff7ee0b21 in makePascalTag (tag=0x7fffffffda70) at parsers/geany_pascal.c:61
#6  findPascalTags () at parsers/geany_pascal.c:272
#7  0x00007ffff7f02647 in createTagsForFile (passCount=1, language=4) at main/parse.c:3722
#8  createTagsWithFallback1
    (language=language at entry=4, exclusive_subparser=exclusive_subparser at entry=0x7fffffffdca4) at main/parse.c:3844
#9  0x00007ffff7f02954 in createTagsWithFallback
    (failureInOpenning=<synthetic pointer>, mio=0x5555562c57a0, language=4, fileName=0x55555612dde0 "/tmp/untitled.pas") at main/parse.c:3934
#10 parseMio
    (fileName=fileName at entry=0x55555612dde0 "/tmp/untitled.pas", language=language at entry=4, mio=mio at entry=0x5555562c57a0, useSourceFileTagPath=useSourceFileTagPath at entry=false, clientData=clientData at entry=0x5555559cdd50) at main/parse.c:4096
#11 0x00007ffff7f02b81 in parseRawBuffer
    (fileName=0x55555612dde0 "/tmp/untitled.pas", buffer=<optimised out>, bufferSize=<optimised out>, language=4, clientData=0x5555559cdd50) at main/parse.c:4167
#12 0x00007ffff7ebc1fa in tm_source_file_parse
    (source_file=source_file at entry=0x5555559cdd50, text_buf=text_buf at entry=0x5555559e4800 "\n\nprogram untitled;\n type\n \n\nbegin\n writeln('hello');\nend.\n", buf_size=buf_size at entry=59, use_buffer=use_buffer at entry=1) at tm_source_file.c:719
#13 0x00007ffff7ebd4de in update_source_file
    (source_file=0x5555559cdd50, text_buf=0x5555559e4800 "\n\nprogram untitled;\n type\n \n\nbegin\n writeln('hello');\nend.\n", buf_size=59, use_buffer=1, update_workspace=<optimised out>) at tm_workspace.c:157
#14 0x00007ffff7ccb875 in document_update_tags (doc=0x5555560d9c70) at document.c:2694
#15 document_update_tags (doc=0x5555560d9c70) at document.c:2647
#16 0x00007ffff7ccb95d in on_document_update_tag_list_idle (data=0x5555560d9c70)
    at document.c:2763
#17 on_document_update_tag_list_idle (data=0x5555560d9c70) at document.c:2755
#18 0x00007ffff6ca5be8 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff6ca504e in g_main_context_dispatch ()
    at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff6ca5400 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff6ca56f3 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff74f037d in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#23 0x00007ffff7cf0f60 in main_lib (argc=<optimised out>, argv=<optimised out>)
```

Ctags expert needed.

-- 
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/2982#issuecomment-961822657
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211105/12ae47ed/attachment-0001.htm>


More information about the Github-comments mailing list