[HACKERS] Re: [bug fix] postgres.exe crashes with access violation on Windowswhile starting up

Поиск
Список
Период
Сортировка
Искать
От
Tsunakawa, Takayuki
Тема
[HACKERS] Re: [bug fix] postgres.exe crashes with access violation on Windowswhile starting up
Дата
Msg-id
0A3221C70F24FB45833433255569204D1F80CD13@G01JPEXMBYT05
Ответ на
Список
Дерево обсуждения
[HACKERS] [bug fix] postgres.exe crashes with access violation on Windowswhile starting up "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
[HACKERS] Re: [bug fix] postgres.exe crashes with access violation on Windowswhile starting up "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: [HACKERS] [bug fix] postgres.exe crashes with access violation onWindows while starting up Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [bug fix] postgres.exe crashes with access violationon Windows while starting up "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: [HACKERS] [bug fix] postgres.exe crashes with access violation onWindows while starting up Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [bug fix] postgres.exe crashes with access violationon Windows while starting up "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: [HACKERS] [bug fix] postgres.exe crashes with access violation onWindows while starting up Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [bug fix] postgres.exe crashes with access violationon Windows while starting up Noah Misch <noah@leadboat.com>
Re: [HACKERS] [bug fix] postgres.exe crashes with access violation onWindows while starting up Michael Paquier <michael.paquier@gmail.com>
From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Tsunakawa,
> Takayuki
> The reason is for not outputing the crash dump is a) the crash occurred
> before installing the Windows exception handler
> (pgwin32_install_crashdump_handler() call) and b) the effect of the
> following call in postmaster is inherited in the child process.
> 
> 		/* In case of general protection fault, don't show GUI popup
> box */
> 		SetErrorMode(SEM_FAILCRITICALERRORS |
> SEM_NOGPFAULTERRORBOX);
> 
> But I'm not sure in what order we should do
> pgwin32_install_crashdump_handler(), startup_hacks() and steps therein,
> MemoryContextInit().  I think that's another patch.

Just installing the handler at the beginning of main() seems fine.  Patch attached.

Regards
Takayuki Tsunakawa
 

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Tsunakawa, Takayuki
Дата:
От: Robert Haas
Дата:
FAQ