Comment #6 on issue 1646 by [email protected]: Segmentation fault in
v8::internal::Logger::is_logging
http://code.google.com/p/v8/issues/detail?id=1646
I did a simple modification to the LOG macro and now everything works fine
here. I simply called isolate->InitializeLoggingAndCounters which should be
safe to call multiple times (as per documentation) and the problem
disappeared.
81 #define LOG(isolate, Call) \
82 do { \
83 isolate->InitializeLoggingAndCounters(); \
84 v8::internal::Logger* logger = \
85 (isolate)->logger(); \
86 if (logger->is_logging()) \
87 logger->Call; \
88 } while (false)
Regards,
Angelo
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev