1
0
Fork 0
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:
Nobuyoshi Nakada 2020-12-02 16:16:27 +09:00
parent 98c9120cc0
commit 30ded41fc3
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -972,9 +972,11 @@ rb_vm_bugreport(const void *ctx)
(((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len)
name = vm->progname;
fprintf(stderr, "* Loaded script: %.*s\n",
LIMITED_NAME_LENGTH(name), RSTRING_PTR(name));
fprintf(stderr, "\n");
if (name) {
fprintf(stderr, "* Loaded script: %.*s\n",
LIMITED_NAME_LENGTH(name), RSTRING_PTR(name));
fprintf(stderr, "\n");
}
fprintf(stderr, "* Loaded features:\n\n");
for (i=0; i<RARRAY_LEN(vm->loaded_features); i++) {
name = RARRAY_AREF(vm->loaded_features, i);