Skip to content

Commit

Permalink
Set SEGV handler to get backtrace on crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 17, 2016
1 parent 76e4fe1 commit 07edb4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pgroonga.c
Expand Up @@ -390,6 +390,8 @@ _PG_init(void)
(errcode(ERRCODE_SYSTEM_ERROR),
errmsg("pgroonga: failed to initialize Groonga")));

grn_set_segv_handler();

on_proc_exit(PGrnOnProcExit, 0);

if (grn_ctx_init(&PGrnContext, 0))
Expand Down

0 comments on commit 07edb4c

Please sign in to comment.