[HACKERS] Re: [bug fix] postgres.exe crashes with access violation on Windowswhile starting up - Mailing list pgsql-hackers

From Tsunakawa, Takayuki
Subject [HACKERS] Re: [bug fix] postgres.exe crashes with access violation on Windowswhile starting up
Date
Msg-id 0A3221C70F24FB45833433255569204D1F80CD13@G01JPEXMBYT05
Whole thread Raw
In response to [HACKERS] [bug fix] postgres.exe crashes with access violation on Windowswhile starting up  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: [HACKERS] [bug fix] postgres.exe crashes with access violation on Windowswhile starting up
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] path toward faster partition pruning