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

Henrik Grubbström <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Organization Roxen Internet Software AB
Message-ID <[email protected]>
On Thu, 25 Feb 2016, Jeff Hungerford wrote:

> Thanks for that last round of fixes.
>
> I'm still seeing a couple of errors, but not very often.
>
> I do still see the "Attempting to clone an unfinished program" error
> from time to time, and I'm not sure what is causing it, but it only
> happens when multiple threads are attempting to open the first connections
> to a database at the same time.

Hmm... I suspect that the above is due to cast_to_program() et al in 
the master object not being thread safe, in which case a thread may find 
and attempt to clone a program which still is being compiled in a 
different thread. This wasn't a problem in Pike 7.8 and earlier, as then 
all other threads were halted while the compiler was running.

-- 
Henrik Grubbström					[email protected]
Roxen Internet Software AB
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.