Re: Backend crash with tsearch [NAILED][HELP!]

From: "Magnus Naeslund(f)" <mag(at)fbab(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Backend crash with tsearch [NAILED][HELP!]
Date: 2002-12-03 23:53:16
Message-ID: 119801c29b27$263cbde0$f80c0a0a@mnd
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ok, I nailed the bug, but i'm not sure what the correct fix is.
Attached tsearch_morph.diff that remedies this problem by avoiding it.
Also there's a debug aid patch if someone would like to know how i
finally found it out :)

There problem in the lemmatize() function is that GETDICT(...) returned
a value not handled (BYLOCALE).
The value (-1) and later used as an index into the dicts[] array.
After that everything went berserk stack went crazy somehow so trapping
the fault sent me to the wrong place, and every time i read the value it
was positive ;)

So now i just return the initial word passed to the lemmatize function,
because i don't know what to do with it.

So you tsearch guys will have to work it out :)

Magnus

Attachment Content-Type Size
tsearch_morph.c.diff application/octet-stream 387 bytes
tsearch_morph.c.debugaid application/octet-stream 1.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-12-04 00:06:16 Zwiki (moved from -hackers)
Previous Message Peter Eisentraut 2002-12-03 23:33:44 Re: [GENERAL] PostgreSQL Global Development Group Announces