Re: Backend often crashing
От | Dennis Gearon |
---|---|
Тема | Re: Backend often crashing |
Дата | |
Msg-id | 3E8B57FE.4030800@cvc.net обсуждение исходный текст |
Ответ на | Re: Backend often crashing (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Backend often crashing
|
Список | pgsql-general |
WOW, Open source at it's best. A guy has a problem, goes through all the functions, delivers the suspects, and another open source worker gets it fixed, in less than 24 hours. What a way of life :-) Tom Lane wrote: > "Guido Notari" <gnotari@linkgroup.it> writes: > >>I replaced the occurences of to_ascii with a custum function that calls >>to_ascii only on the result of a translate, which in turn converts some >>strange (russian?) characters to plain ascii. > > > Ooohhh ... looking at the source code shows that to_ascii processes one > byte too many, which would lead to clobbering the next byte of memory, > which would quite possibly cause your problem. > > In 7.2.4, the bug is at line 114 of src/backend/utils/adt/ascii.c: > > for (x = src; x <= src_end; x++) > > should be > > for (x = src; x < src_end; x++) > > regards, tom lane > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >
В списке pgsql-general по дате отправления: