From 99faaad1bee056b8b0ed3a859dacda63dfff86fe Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Sun, 23 May 2010 04:01:08 +0300 Subject: [PATCH] don't print stack trace for a fatal error. Only a segfault --- ext/v8/v8_exception.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/v8/v8_exception.cpp b/ext/v8/v8_exception.cpp index 257e699..8046116 100644 --- a/ext/v8/v8_exception.cpp +++ b/ext/v8/v8_exception.cpp @@ -8,13 +8,10 @@ namespace { static void* stack[20]; void fatal(const char* location, const char* message) { - int size = backtrace(stack, 20); - backtrace_symbols_fd(stack, size, 2); rb_raise(rb_eFatal, "%s: %s", location, message); } void segfault(int sig) { fprintf(stderr, "segfault: game over.\n"); - void *elements[20]; int size = backtrace(stack, 20); backtrace_symbols_fd(stack, size, 2); exit(1);