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

found segfault error in summary capitalisation highlighting #1

Closed
awakmu opened this issue May 28, 2011 · 5 comments
Closed

found segfault error in summary capitalisation highlighting #1

awakmu opened this issue May 28, 2011 · 5 comments

Comments

@awakmu
Copy link

awakmu commented May 28, 2011

Hi,

Compared with original version of zettair, this fork have solved some bugs, like when executing zet -a. And I have still found segfault in summary capitalisation highlighting.

How to reproduce this error:
-download the html file with command: wget www.al-ilmu.com/magazines/detail.php?id=76
-index the file: /usr/local/zettair/bin/zet -i -c /usr/local/zettair/share/psettings.xml -t HTML -f debug detail.php?id=76
-and search with some term "tauhid", "pembeli" (indonesians term) using: /usr/local/zettair/bin/zet -n 10 -f debug --summary=capitalise
-the following lines is the output from search command:

      aris@aris-laptop:~/Documents$ /usr/local/zettair/bin/zet -n 10 -f debug --summary=capitalise
      AYXX: before reposset_set_record: rset->entries: 0. max: 1
      AYXX: many files, adding quantity: 1
      AYXX: reposset_set_record: rset->entries: 2
      AYXX: docmap load: rset->entries: 2
      > tauhid
      AYXX: doc_ord_eval
      AYXX: vocabsize[0]: 9, memsum: 9
      AYXX: fit in memory: 1, total: 1
      AYXX: searching in THRESH mode
      AYXX: searching in AND mode
      AYXX: remaining...
      AYXX: normal term: tauhid
      return from doc_ord_eval: 0, accs: 1
      ERROR: index_search (src/search.c::1365): AUX: file:///home/aris/Documents/detail.php?id=76 // just my line to show which file caused error.
      Segmentation fault

-If I'm not forgotten, there are another file that caused same error. I will post them after found.

-aris

@awakmu
Copy link
Author

awakmu commented May 28, 2011

Another files that cause error (can be reproduce using above steps. maybe can help in problem solving) are:

@ayourtch
Copy link
Owner

ayourtch commented Jun 5, 2011

Thanks for the reports!

6252417 fixes these two crashes, so please give it a shot. I mark this one as resolved so far.

@ayourtch ayourtch closed this as completed Jun 5, 2011
@awakmu
Copy link
Author

awakmu commented Jun 7, 2011

Thank's, this revisions fixed them.

I plan to retest it with more documents tonight.

@awakmu
Copy link
Author

awakmu commented Jun 8, 2011

After test indexing resulting with much of docs, I found a similar error (I found 2 but I can't reproduce the other yet):

  1. url: http://almuslimah.wordpress.com/2008/04/10/hak-hak-wanita-dalam-islam/
    how to reproduce:
    a. wget almuslimah.wordpress.com/2008/04/10/hak-hak-wanita-dalam-islam
    b. /usr/local/zettair/bin/zet -i -c /usr/local/zettair/share/psettings.xml -t HTML -f debug index.html
    c. /usr/local/zettair/bin/zet -n 10 -f debug --summary=capitalise
    d. I search term "wanita", with outputs:

    AYXX: before reposset_set_record: rset->entries: 0. max: 1
    AYXX: many files, adding quantity: 1
    AYXX: reposset_set_record: rset->entries: 2
    AYXX: docmap load: rset->entries: 2

    wanita
    AYXX: doc_ord_eval
    AYXX: vocabsize[0]: 60, memsum: 60
    AYXX: fit in memory: 1, total: 1
    AYXX: searching in THRESH mode
    AYXX: searching in AND mode
    AYXX: remaining...
    AYXX: normal term: wanita
    return from doc_ord_eval: 0, accs: 1
    Segmentation fault

@ayourtch
Copy link
Owner

Try updating - should be ok now. I also put in the testcase (not any proper framework to start them yet though)

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

No branches or pull requests

2 participants