mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* error.c (rb_bug): get rid of segfault after all threads
disposed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8de18f9cda
commit
9878d2199c
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jul 8 15:53:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* error.c (rb_bug): get rid of segfault after all threads
|
||||
disposed.
|
||||
|
||||
Fri Jul 8 15:01:06 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/openssl/ossl.h: include openssl/e_os2.h before checking the
|
||||
|
|
9
error.c
9
error.c
|
@ -265,9 +265,16 @@ void
|
|||
rb_bug(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
const char *file = NULL;
|
||||
int line = 0;
|
||||
|
||||
if (GET_THREAD()) {
|
||||
file = rb_sourcefile();
|
||||
line = rb_sourceline();
|
||||
}
|
||||
|
||||
va_start(args, fmt);
|
||||
report_bug(rb_sourcefile(), rb_sourceline(), fmt, args);
|
||||
report_bug(file, line, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
#if defined(_WIN32) && defined(RT_VER) && RT_VER >= 80
|
||||
|
|
Loading…
Reference in a new issue