#355 Error when parsing empty file (OCaml)

open
nobody
None
5
2013-10-21
2013-10-21
Kenichi Ito
No

$ ctags -e Test/ocaml_empty.ml
ctags: Unexpected end of file: Test/ocaml_empty.ml

Discussion

  • Kenichi Ito
    Kenichi Ito
    2013-10-21

    gdb ./dctags
    b readSourceLine
    r -e test/ocaml_empty.ml
    
    (gdb) bt
    #0  readSourceLine (vLine=0x58f110, location=0, pSeekValue=0x28fc64)
        at read.c:551
    #1  0x0040b359 in writeEtagsEntry (tag=0x28fcc8) at entry.c:746
    #2  0x0040ba77 in makeTagEntry (tag=0x28fcc8) at entry.c:884
    #3  0x00417cb7 in addTag (ident=0x655548, kind=2) at ocaml.c:911
    #4  0x00418b23 in computeModuleName () at ocaml.c:1827
    #5  0x00418bb8 in findOcamlTags () at ocaml.c:1854
    
    #6  0x0041cc8b in createTagsForFile (fileName=0x5830a0 "test/ocaml_empty.ml",
        language=18, passCount=1) at parse.c:617
    #7  0x0041cd3a in createTagsWithFallback (
        fileName=0x5830a0 "test/ocaml_empty.ml", language=18) at parse.c:639
    #8  0x0041cdfb in parseFile (fileName=0x5830a0 "test/ocaml_empty.ml")
        at parse.c:666
    #9  0x00414cfa in createTagsForEntry (
        entryName=0x5830a0 "test/ocaml_empty.ml") at main.c:303
    #10 0x00414d35 in createTagsForArgs (args=0x5830d0) at main.c:348
    #11 0x0041524d in makeTags (args=0x5830d0) at main.c:494
    #12 0x004153c9 in main (argc=3, argv=0x582e54) at main.c:562
    
     
    Last edit: Kenichi Ito 2013-10-21