Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c06590

Browse files
committed
Install Windows crash dump handler before all else.
Apart from calling write_stderr() on failure, the handler depends on noPostgreSQL facilities. We have experienced crashes before reaching theformer call site. Given such an early crash, this change cannot hurtand may produce a helpful dump. Absent an early crash, this change hasno effect. Back-patch to 9.3 (all supported versions).Takayuki TsunakawaDiscussion:https://postgr.es/m/0A3221C70F24FB45833433255569204D1F80CD13@G01JPEXMBYT05
1 parent30e99ef commit1c06590

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/backend/main/main.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ main(int argc, char *argv[])
6969
{
7070
booldo_check_root= true;
7171

72+
/*
73+
* If supported on the current platform, set up a handler to be called if
74+
* the backend/postmaster crashes with a fatal signal or exception.
75+
*/
76+
#if defined(WIN32)&& defined(HAVE_MINIDUMP_TYPE)
77+
pgwin32_install_crashdump_handler();
78+
#endif
79+
7280
progname=get_progname(argv[0]);
7381

7482
/*
@@ -89,14 +97,6 @@ main(int argc, char *argv[])
8997
*/
9098
argv=save_ps_display_args(argc,argv);
9199

92-
/*
93-
* If supported on the current platform, set up a handler to be called if
94-
* the backend/postmaster crashes with a fatal signal or exception.
95-
*/
96-
#if defined(WIN32)&& defined(HAVE_MINIDUMP_TYPE)
97-
pgwin32_install_crashdump_handler();
98-
#endif
99-
100100
/*
101101
* Fire up essential subsystems: error and memory management
102102
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp