Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at ecma-objects.c(ecma_object_get_class_name) #4895

Closed
hope-fly opened this issue Dec 9, 2021 · 3 comments

Comments

@hope-fly
Copy link

hope-fly commented Dec 9, 2021

JerryScript revision

Commit: 51da1551

Version: v3.0.0

Build platform

Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64)

Build steps
./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20
Test case
function JSEtest(predicate, item) {
  if (!predicate) {
    log.push(item);
  }
}

var global = this;
Object.getOwnPropertyNames(global).forEach(function (name) {
  if (name[0] != name[0].toUpperCase()) {
    return;
  }

  var obj = global[name]; 

  if (!obj.toString().includes('native')) {
    return;
  } 

  try {
    new obj();
  } catch (e) {
    ;
  } 

  var constructor = obj.constructor; 

  var prototype = obj.prototype;

  var prototype_constructor = prototype.constructor;
  JSEtest(`${name}.prototype.constructor`);
}); 

Execution steps & Output
$ ./jerryscript/build/bin/jerry poc.js

ICE: Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at /root/jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3009.
Error: ERR_FAILED_INTERNAL_ASSERTION

Credits: Found by OWL337 team.

@rerobika
Copy link
Member

rerobika commented Dec 9, 2021

Please, no one is in a hurry...
Before submitting an issue, check:

  • whether the issue template is correctly filled.
  • the issue is reproducible on the latest master
  • At least there is no already reported assertion with the same reason or category.

@eternalsakura Please try to follow this short guide above as well.

@rerobika rerobika closed this as completed Dec 9, 2021
@rerobika
Copy link
Member

rerobika commented Dec 9, 2021

Duplicate of #4884.

@hope-fly
Copy link
Author

hope-fly commented Dec 9, 2021

Got it! Thanks for your devotion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants