Re: BUG #5235: Segmentation fault under high load through JDBC - Mailing list pgsql-bugs

From Andrew Gierth
Subject Re: BUG #5235: Segmentation fault under high load through JDBC
Date
Msg-id 877hsw9mrz.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: BUG #5235: Segmentation fault under high load through JDBC  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Responses Re: BUG #5235: Segmentation fault under high load through JDBC
List pgsql-bugs
>>>>> "Andrew" == Andrew Gierth <andrew@tao11.riddles.org.uk> writes:

 Andrew> What are the definitions of your instr() and ad_parent_tree()
 Andrew> functions?

Well, there's so much wrong with that ad_parent_tree function - it's
always going to recurse infinitely (with a new subxact per recursion
level, even) regardless of the data, and the only thing that will stop
it is when it throws an exception due to reaching the max stack depth
- and it then CATCHES that exception and returns.

Still, even though the code is preposterous, the result shouldn't be a
segfault. I wasn't able to reproduce one myself (using 8.3.7 on
freebsd 7.2) however.

--
Andrew (irc:RhodiumToad)

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5235: Segmentation fault under high load through JDBC
Next
From: Tom Lane
Date:
Subject: Re: BUG #5235: Segmentation fault under high load through JDBC