mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Loaded script is unset yet when crashed in the initialization phase
This commit is contained in:
parent
98c9120cc0
commit
30ded41fc3
1 changed files with 5 additions and 3 deletions
|
@ -972,9 +972,11 @@ rb_vm_bugreport(const void *ctx)
|
||||||
(((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len)
|
(((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len)
|
||||||
|
|
||||||
name = vm->progname;
|
name = vm->progname;
|
||||||
fprintf(stderr, "* Loaded script: %.*s\n",
|
if (name) {
|
||||||
LIMITED_NAME_LENGTH(name), RSTRING_PTR(name));
|
fprintf(stderr, "* Loaded script: %.*s\n",
|
||||||
fprintf(stderr, "\n");
|
LIMITED_NAME_LENGTH(name), RSTRING_PTR(name));
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
}
|
||||||
fprintf(stderr, "* Loaded features:\n\n");
|
fprintf(stderr, "* Loaded features:\n\n");
|
||||||
for (i=0; i<RARRAY_LEN(vm->loaded_features); i++) {
|
for (i=0; i<RARRAY_LEN(vm->loaded_features); i++) {
|
||||||
name = RARRAY_AREF(vm->loaded_features, i);
|
name = RARRAY_AREF(vm->loaded_features, i);
|
||||||
|
|
Loading…
Add table
Reference in a new issue