Re: Pike 8.0: Sql.pgsql objects don't get garbage collected?

"Stephen R. van den Berg" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Martin Nilsson (Coppermist) @ Pike (-) importm?te f?r mailinglistan wrote:
>I forgot that there isn't any Postgres C code. Is there a small test
>case that reproduces the segfault?

Haven't tried yet, but I suspect it is something like the
following:

class ac {
  array a;
} aci;

Then fill array aci->a with ({0}).
Then start a thread which continuously dereferences a (from within
a member in ac), and in a second thread perform destruct on aci.
In debug-compiled pike, you get the fatal, in non-debug it just runs
(apparently).
-- 
Stephen.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.