[Groonga-commit] groonga/groonga at 1a1fac3 [master] mrb: disable Exception#backtrace

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Wed Dec 2 12:19:36 JST 2015


Kouhei Sutou	2015-12-02 12:19:36 +0900 (Wed, 02 Dec 2015)

  New Revision: 1a1fac339db1290d82bc29d542731c9a2c259987
  https://github.com/groonga/groonga/commit/1a1fac339db1290d82bc29d542731c9a2c259987

  Message:
    mrb: disable Exception#backtrace
    
    Because Exception#backtrace may be crashed after GC. Backtrace isn't
    marked.

  Modified files:
    lib/mrb/scripts/logger.rb

  Modified: lib/mrb/scripts/logger.rb (+3 -1)
===================================================================
--- lib/mrb/scripts/logger.rb    2015-12-02 11:22:42 +0900 (cb747a4)
+++ lib/mrb/scripts/logger.rb    2015-12-02 12:19:36 +0900 (28f0a82)
@@ -8,7 +8,9 @@ module Groonga
       else
         message = "#{error.class}: #{error.message}"
       end
-      backtrace = error.backtrace
+      # TODO: Re-enable backtrace after mruby/mruby#2917 has been merged
+      # backtrace = error.backtrace
+      backtrace = []
       last_raw_entry = backtrace.last
       if last_raw_entry
         last_entry = BacktraceEntry.parse(last_raw_entry)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index