Re: BUG #5235: Segmentation fault under high load through JDBC

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: BUG #5235: Segmentation fault under high load through JDBC
Дата
Msg-id 877hsw9mrz.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: BUG #5235: Segmentation fault under high load through JDBC  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: BUG #5235: Segmentation fault under high load through JDBC  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5235: Segmentation fault under high load through JDBC
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5235: Segmentation fault under high load through JDBC