issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "Piwigo", "Piwigo" ]
**Reported by stimaxx on 24 Apr 2007 11:53** Lorsque je souhaite synchroniser ma galerie, le programme me réinitialise completement ma base de données. Prenons un exemple : imaginons que j'ai actuellement 2 catégories qui totalisent 50 photos, je souhaite ajouter une 3ème catégorie qui compte 20 photos. Lors ce que je lance la synchonisation le résultat est le suivant : ``` * 3 catégories ajoutées dans la base de données * 70 éléments ajoutés dans la base de données * 2 catégories supprimées de la base de données * 50 éléments supprimés de la base de données * 70 éléments mis à jour dans la base de données * 0 erreurs survenues durant la synchronisation ``` Au lieu d'ajouter une catégorie, il recrée toutes les catégories. Et le plus embêtant c'est que du coup je perds toute la gestion des accès. J'ai mis la création des catégories en vérouillé/privé donc tout est recréé en vérouillé/privé, les "nouvelles" catégories (re)créées ayant un nouvel id personne n'y a accès. **Additional information:** Le problème vient de la définition du site : J'avais défini mon site comme suit "../gallery" en changeant en "../gallery/" je n'ai plus ce problème de synchronisation. [Piwigo Bugtracker #678](http://piwigo.org/bugs/view.php?id=678)
réinitialisation de la base lors de la synchronisation
https://api.github.com/repos/Piwigo/Piwigo/issues/43/comments
1
2015-07-25T13:04:44Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/43
97,225,342
43
[ "Piwigo", "Piwigo" ]
**Reported by rub on 8 Apr 2007 21:20** **Version:** 1.7.0RC2 On new history page, the click on a picture, in order to show with high resolution, is not saved on the history. [Piwigo Bugtracker #676](http://piwigo.org/bugs/view.php?id=676)
[other] History high element
https://api.github.com/repos/Piwigo/Piwigo/issues/42/comments
2
2015-07-25T13:04:38Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/42
97,225,340
42
[ "Piwigo", "Piwigo" ]
**Reported by gouranga on 7 Apr 2007 10:58** **Version:** 1.6.2 Une suppression d'une catégorie virtuelle déjà supprimée (par un rafraichissement par exemple de la page) ou juste une suppression d'une catégorie inexistante (par changement dans la barre d'adresse) créé une vilaine erreur SQL. **Steps to reproduce:** Dans administration, cliquer sur une catégorie virtuelle à supprimer et valider. Faire F5. **Additional information:** L'erreur se situe dans admin/include/functions.php. La fonction delete_categories($ids) vérifie si le tableau d'identifiant n'est pas vide avant d'appeler la méthode get_subcat_ids qui elle renvoit dans le cas mentionné un tableau vide ce qui créé une requête SQL invalide. Un simple déplacement de l'appel à get_subcat_ids avant le test ou alors duplication du test devrait suffir. [Piwigo Bugtracker #673](http://piwigo.org/bugs/view.php?id=673)
[albums] Erreurs SQL lors de la suppression d'une categorie virtuelle déjà supprimée
https://api.github.com/repos/Piwigo/Piwigo/issues/41/comments
2
2015-07-25T13:04:32Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/41
97,225,338
41
[ "Piwigo", "Piwigo" ]
**Reported by plg on 6 Apr 2007 21:51** **Version:** 1.7.0RC2 If I don't define any table prefix for my tables, #upgrade becomes "upgrade" and "upgrade" is a MySQL reserved keyword. [Piwigo Bugtracker #672](http://piwigo.org/bugs/view.php?id=672)
[installation & upgrade] #upgrade inserts fail when no defined table prefix
https://api.github.com/repos/Piwigo/Piwigo/issues/40/comments
1
2015-07-25T13:04:26Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/40
97,225,335
40
[ "Piwigo", "Piwigo" ]
**Reported by ericFabre on 29 Mar 2007 10:51** Bonjour. Serait-il possible d'ajouter la liste des groupes existant sur la page admin de NBM. Il s'agit d'autoriser la sélection d'un ou plusieurs groupes, d'automatiser l'envoi des mails de notification à tous les membres du ou des groupes sélectionnés. merci. éric. [Piwigo Bugtracker #668](http://piwigo.org/bugs/view.php?id=668)
[notification] NBM par groupe
https://api.github.com/repos/Piwigo/Piwigo/issues/39/comments
1
2015-07-25T13:04:19Z
2016-06-03T08:20:38Z
https://github.com/Piwigo/Piwigo/issues/39
97,225,331
39
[ "Piwigo", "Piwigo" ]
**Reported by rub on 29 Mar 2007 10:47** **Version:** 1.7.0RC1 Parmi les informations saisies par l'utilisateur lors de l'upload, toutes les informations ne sont reprises dans les propriétés de l'image. Par exemple, le nom de l'auteur ou la date. [Piwigo Bugtracker #667](http://piwigo.org/bugs/view.php?id=667)
[upload] Toutes les informations ne sont pas associées à l'image.
https://api.github.com/repos/Piwigo/Piwigo/issues/38/comments
1
2015-07-25T13:04:14Z
2015-07-26T16:42:50Z
https://github.com/Piwigo/Piwigo/issues/38
97,225,328
38
[ "Piwigo", "Piwigo" ]
**Reported by VDigital on 7 Mar 2007 08:44** **Version:** 1.7.0RC1 In advisor mode, real IP must be partly hidden 82._._.16 or 82.128._._ as you want be currently the address is fully displayed. **Steps to reproduce:** (Advisor access) -> Admin -> Special -> History search [Piwigo Bugtracker #661](http://piwigo.org/bugs/view.php?id=661)
[security] Search in History displays IP address even in Advisor mode
https://api.github.com/repos/Piwigo/Piwigo/issues/37/comments
0
2015-07-25T13:04:08Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/37
97,225,320
37
[ "Piwigo", "Piwigo" ]
**Reported by ericFabre on 1 Mar 2007 13:51** au vu de la fonction recherche, (PWG 1.7) nouvelle et bien réalisée, de l'historique, est-il envisageable de créé une fonction de notification automatique qui : - enverrait au webmaster par mail - une fois par semaine (période variable dans $conf) - la liste des fichiers pwg_high , uniquement, qui ont été téléchargés (nom de fichiers + nom d'utilisateur). Ce sont des informations qui sont déjà calculées, disponibles et enregistrées dans la BDD. Il manque la fonction de recherche automatique à associée à une notification.... [Piwigo Bugtracker #659](http://piwigo.org/bugs/view.php?id=659)
[notification] notification de téléchargement de pwg_high
https://api.github.com/repos/Piwigo/Piwigo/issues/36/comments
0
2015-07-25T13:04:02Z
2015-07-26T16:42:50Z
https://github.com/Piwigo/Piwigo/issues/36
97,225,312
36
[ "Piwigo", "Piwigo" ]
**Reported by ericFabre on 1 Mar 2007 13:29** Serait-il possible d'envisager une case à cocher dans la page "personnaliser" des utilisateurs, afin que ceux-ci puissent eux même s'inscrire ou se retirer de la liste des utilisateurs recevant une notification (de nouveautés) par mail. (ne pas oublier d'automatiser la suppression cette inscription en cas de suppression de l'utilisateur) Bien sur, cette option impose l'enregistrement préalable d'une adresse mail. [Piwigo Bugtracker #658](http://piwigo.org/bugs/view.php?id=658)
[notification] gestion par l'utilisateur de la NBM
https://api.github.com/repos/Piwigo/Piwigo/issues/35/comments
0
2015-07-25T13:03:56Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/35
97,225,302
35
[ "Piwigo", "Piwigo" ]
**Reported by rub on 26 Feb 2007 17:56** **Version:** 1.6.2 If the category value on on manage permissions for a category is outbound, it's the first category witch are edited. **Steps to reproduce:** http://127.0.0.1/BSF/admin.php?page=cat_perm&cat=99999999 [Piwigo Bugtracker #656](http://piwigo.org/bugs/view.php?id=656)
[albums] Oubound value on manage permissions for a category equal to first value
https://api.github.com/repos/Piwigo/Piwigo/issues/34/comments
5
2015-07-25T13:03:50Z
2021-08-26T15:44:54Z
https://github.com/Piwigo/Piwigo/issues/34
97,225,291
34
[ "Piwigo", "Piwigo" ]
**Reported by marionphotos on 10 Feb 2007 12:04** Bonjour, Je viens de commencer à me servir de phpwebgallery pour créer mon site photo mais le problème est que j'aimerais effacer une gallerie créée à partir d'un serveur ftp. Je le fais donc et seul les images de base s'efface mais les miniatures ne veulent pas et j'ai donc une gallerie que je ne desire pas voir sur mon site. Pourriez vous m'aider ? Cordialement, Marion [Piwigo Bugtracker #640](http://piwigo.org/bugs/view.php?id=640)
[albums] Bug sur la suppression de miniatures
https://api.github.com/repos/Piwigo/Piwigo/issues/33/comments
2
2015-07-25T13:03:44Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/33
97,225,284
33
[ "Piwigo", "Piwigo" ]
**Reported by repie38 on 20 Jan 2007 21:15** l'idée est de confronter dans le graphique historique les stats de visites et, en superposition, le nombre de photos ajoutées à la base (chaque jour). de la meme maniere, ou pourrait aussi afficher sur ce meme graphique les dates de notification (voir peut-etre le nombre de photos notifiées ...) **Additional information:** topic : http://forum.phpwebgallery.net/viewtopic.php?id=9661 [Piwigo Bugtracker #626](http://piwigo.org/bugs/view.php?id=626)
[other] [evolution] historique : nb de photos ajoutés dans le graph
https://api.github.com/repos/Piwigo/Piwigo/issues/32/comments
0
2015-07-25T13:03:38Z
2015-07-26T16:42:50Z
https://github.com/Piwigo/Piwigo/issues/32
97,225,273
32
[ "Piwigo", "Piwigo" ]
**Reported by lterras on 14 Jan 2007 18:55** **Version:** 1.6.2 Nous utilisons une version de PWG 1.6.2 avec des images dont les métadonnées ont étées saisie sur MAC. Les accents n'apparaissent pas correctement à l'écran (les données enregistrées dnas la BDD sont également incorrectes). Pour corriger ce phénomène, j'ai essayé de changer le code des fichiers suivants: <repPHPWEBGAL>\include\functions_metadata.inc.php (pour le local) <repPHPWEBGAL>\tools\create_listing_file.php (pour les sites distants) de la façon suivante: foreach (array_keys($map, $iptc_key) as $pwg_key) { $result[$pwg_key] = utf8_decode($value); } Les accents s'affichent correctement avec cette modification. mais je ne suis pas certaine des effets secondaire de celle ci (je n'ai testé que sur 2 installaton:une sous MAC et et une sous PC). le changement est OK sur les 2 env de test. le MAC est un MAC système 10.3.9 sur lequel les mots clés ont étés saisis. **Steps to reproduce:** Ajouter les légendes et mots clés comportant des accents... [Piwigo Bugtracker #618](http://piwigo.org/bugs/view.php?id=618)
[metadata] Accents dans les données Exif
https://api.github.com/repos/Piwigo/Piwigo/issues/31/comments
0
2015-07-25T13:03:32Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/31
97,225,267
31
[ "Piwigo", "Piwigo" ]
**Reported by rub on 7 Jan 2007 23:55** See http://forum.phpwebgallery.net/viewtopic.php?pid=42279#p42279 and http://bugs.phpwebgallery.net/view.php?id=496 Issue 496 are cut on 2 part: o add functionality add_index with plugin o add check "index" in the synchronization [Piwigo Bugtracker #613](http://piwigo.org/bugs/view.php?id=613)
[synchronization] add index in the synchronization
https://api.github.com/repos/Piwigo/Piwigo/issues/30/comments
0
2015-07-25T13:03:25Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/30
97,225,252
30
[ "Piwigo", "Piwigo" ]
**Reported by rub on 5 Jan 2007 18:32** Je remonte un retour d'un ami qui a fait son upgrade 1.6.1 en 1.6.2. Il a eu un message lors de l'installation indiquant de l'insertion n'était pas possible dans la table upgrade puisque les enregistrements étaient déjà présent. De plus, il trouve le ReadMe incomplet car il n'est pas préciser qu'il faut ajouter define('PHPWG_IN_UPGRADE', true); contrairement à http://phpwebgallery.net/doc/doku.php?id=fr:aide:installer:upgrade **Steps to reproduce:** Essayer de faire la mise à jour sans l'ajout du PHPWG_IN_UPGRADE. Essayer de faire la mise à jour avec l'ajout du PHPWG_IN_UPGRADE. [Piwigo Bugtracker #612](http://piwigo.org/bugs/view.php?id=612)
[installation & upgrade] Problème lors de la mise à jour
https://api.github.com/repos/Piwigo/Piwigo/issues/29/comments
4
2015-07-25T13:03:20Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/29
97,225,235
29
[ "Piwigo", "Piwigo" ]
**Reported by rub on 1 Jan 2007 19:48** Why not include a section with news from phpwebgallery.net on admistration introduction page? Simply add a iframe into intro.tpl in order to call a php file from phpwebgallery.net. **Additional information:** no iframe would be included in a rework of the first admin page [Piwigo Bugtracker #610](http://piwigo.org/bugs/view.php?id=610)
Show Piwigo news on dashboard
https://api.github.com/repos/Piwigo/Piwigo/issues/28/comments
5
2015-07-25T13:03:14Z
2022-07-15T08:01:14Z
https://github.com/Piwigo/Piwigo/issues/28
97,225,226
28
[ "Piwigo", "Piwigo" ]
**Reported by rub on 1 Jan 2007 16:24** **Version:** 1.6.2 When the gallery is locked for maintenance, return to administration section must be difficult if webmaster are disconnected. **Additional information:** See topic http://forum.phpwebgallery.net/viewtopic.php?pid=51227#p51227 witch are inspired this report issue. Suggested solutions: http://forum.phpwebgallery.net/viewtopic.php?pid=51233#p51233 [Piwigo Bugtracker #609](http://piwigo.org/bugs/view.php?id=609)
[navigation] Return to administration, when the gallery is locked for maintenance.
https://api.github.com/repos/Piwigo/Piwigo/issues/27/comments
0
2015-07-25T13:03:08Z
2015-07-26T16:42:58Z
https://github.com/Piwigo/Piwigo/issues/27
97,225,213
27
[ "Piwigo", "Piwigo" ]
**Reported by VDigital on 26 Dec 2006 10:27** Author have to be managed. auth_id is mandatory to avoid all difference from time to time. Access as a category or a tag access has to be implemented. A link between member and Author has to be defined. Maybe later a role has to be created as vimages explained. Topic related is http://forum.phpwebgallery.net/viewtopic.php?id=5693 [Piwigo Bugtracker #607](http://piwigo.org/bugs/view.php?id=607)
[albums] Access by Author
https://api.github.com/repos/Piwigo/Piwigo/issues/26/comments
3
2015-07-25T13:03:02Z
2016-05-25T15:07:39Z
https://github.com/Piwigo/Piwigo/issues/26
97,225,205
26
[ "Piwigo", "Piwigo" ]
**Reported by Shilda on 30 Nov 2006 02:52** Quand on modifie quelque chose dans la section « Affichage par défaut » ça ne sert en fait que pour les visiteurs non identifiés et pour donner des valeurs par défaut à la création d'un compte. Je pense que quand on change une valeur par défaut, ça devrait se répercuter sur les valeurs pour les utilisateurs qui ont laissé la valeur par défaut précédante. Peut-être en rajoutant une variable pour chaque option, qui passerait à 1 pour une option quand on change sa valeur ? rub a ajouté : Lors de la mise à jour, il est toujours possible de mettre une case à cocher pour indiquer qu'il faut répercuter sur les utilisateurs... [Piwigo Bugtracker #594](http://piwigo.org/bugs/view.php?id=594)
[users & groups] Répercuter les changements par défaut sur les comptes existants
https://api.github.com/repos/Piwigo/Piwigo/issues/25/comments
0
2015-07-25T13:02:56Z
2015-07-26T16:42:58Z
https://github.com/Piwigo/Piwigo/issues/25
97,225,195
25
[ "Piwigo", "Piwigo" ]
**Reported by tewebe on 18 Sep 2006 20:53** Suite à un échange avec VDigital sur le forum concernant une question sur le fonctionnement sur l'utilité du groupe "Annoteur" je vous recopie ici mon "idée", plutôt une demande, concernant les tags et les droits: il s'agit d'intégrer des utilisateurs à un groupe afin que ceux-ci puissent gérer les tags, pas pour en faire une classification personnelle, mais pour permettre aux visiteurs lambdas de recherche facilement des photos via ces tags, dans mon cas, il s'agit de photos du Tours Volley Ball, des rencontres de l'équipes face à différents adversaires, et sur ces photos je veux permettre aux visiteurs de retrouver les photos d'un joueur qu'il soit sous les couleurs du TVB ou de celles d'un adversaire... voilou :) et ça me permettrait en plus de relier le site à la galerie afin que depuis la fiche d'un joueur on puisse accéder aux différentes photos où il apparait Voilà je sais pas si maintenant c'est aussi clair que ça à comprendre mais au besoin le sujet sur le forum est là: http://forum.phpwebgallery.net/viewtopic.php?id=8857 Et je ne sais pas non plus si j'ai posté cette demande au bon endroit, donc si ce n'est pas le cas, n'hésitez pas à me le signaler je ne vous en tiendrais pas rigueur vu le boulot que vous abattez ;) Cordialement, Etienne [Piwigo Bugtracker #541](http://piwigo.org/bugs/view.php?id=541)
[tags] Tags et gestion de droits : demande d'évolution
https://api.github.com/repos/Piwigo/Piwigo/issues/24/comments
0
2015-07-25T13:02:50Z
2015-07-26T16:42:58Z
https://github.com/Piwigo/Piwigo/issues/24
97,225,188
24
[ "Piwigo", "Piwigo" ]
**Reported by VDigital on 17 Aug 2006 12:25** **Version:** 1.6.1 As reported in http://forum.phpwebgallery.net/viewtopic.php?id=8664 Users by using a bad edit product can be faced to a corrupted environment. A small module can do basic controls and made corrective actions against some wrong or missing parameters. In that case, webmaster status missing... But check can be done for guest missing as well, against missing/wrong parameters in _config. These checks have to be outside of maintenance menu due to this case (webmaster missing). A check can also be done against mysql.inc.php (remove migration indicator not performed, and I don't know how but a test if HTML headers are not included in that module will be excellent. **Steps to reproduce:** Add <html> in mysql.inc.php prior to migrate... [Piwigo Bugtracker #523](http://piwigo.org/bugs/view.php?id=523)
[installation & upgrade] Build a sanity check module to run after (installation or) migration
https://api.github.com/repos/Piwigo/Piwigo/issues/23/comments
2
2015-07-25T13:02:44Z
2016-10-05T12:38:28Z
https://github.com/Piwigo/Piwigo/issues/23
97,225,172
23
[ "Piwigo", "Piwigo" ]
Related to #69
[image processing] Timeout pour recherche/création miniatures et add_index
https://api.github.com/repos/Piwigo/Piwigo/issues/22/comments
0
2015-07-25T13:02:38Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/22
97,225,160
22
[ "Piwigo", "Piwigo" ]
**Reported by plg on 31 Jul 2006 20:20** In branch 1.6, the only way to modify the number of thumbnails per page is to modify the obsolete (with yoga) profile parameters "number of pictures per line" and "number of lines per page", the multiplication produces the number of pictures per page. I would like to be able to choose the number of thumbnails or even all thumbnails directly on the index.php page. [Piwigo Bugtracker #500](http://piwigo.org/bugs/view.php?id=500)
[navigation] View N thumbnails on the page, or all
https://api.github.com/repos/Piwigo/Piwigo/issues/21/comments
4
2015-07-25T13:02:32Z
2018-07-09T10:48:43Z
https://github.com/Piwigo/Piwigo/issues/21
97,225,151
21
[ "Piwigo", "Piwigo" ]
**Comment posted by mathiasm on 28 Jul 2006 16:13** Discussion ouverte sur http://forum.phpwebgallery.net/viewtopic.php?pid=42132#p42132
[users & groups] droits pwg_high disabled sur un groupe
https://api.github.com/repos/Piwigo/Piwigo/issues/20/comments
0
2015-07-25T13:02:26Z
2015-07-26T16:42:58Z
https://github.com/Piwigo/Piwigo/issues/20
97,225,140
20
[ "Piwigo", "Piwigo" ]
**Reported by rub on 27 Jul 2006 16:14** To avoid problem like issue 486 It's necessary to add check on data input: o limited length of input with database size (Check inside input) o check type of data with database input (Check with message) [Piwigo Bugtracker #491](http://piwigo.org/bugs/view.php?id=491)
[navigation] Check data input
https://api.github.com/repos/Piwigo/Piwigo/issues/19/comments
0
2015-07-25T13:02:20Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/19
97,225,132
19
[ "Piwigo", "Piwigo" ]
**Comment posted by niklos on 29 Dec 2006 21:30** Bonjour, Des nouvelles sur cette fonctionnalité?
[metadata] Integration des champs IPTC
https://api.github.com/repos/Piwigo/Piwigo/issues/18/comments
8
2015-07-25T13:02:14Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/18
97,225,125
18
[ "Piwigo", "Piwigo" ]
**Comment posted by flipflip on 28 Mar 2007 07:35** Salut, une petite remarque sur la page "synchronisé" et particulièrement sur le champ "traiter uniquement une catégorie". Ce champ affiche la liste des sous-répertoires disponibles à la synchronisation. Devant chaque répertoires un tiret est ajouté. Alors c'est jolie mais pas pratique, par exemple si j'ai 50 répertoires et que je veux aller au 30e, pas le choix je fais défilé alors que comme je connais la première lettre de mon répertoire (n par exemple) je pourrais simplement la taper et hop il arrive à la première entrée commencant par n. En plus ça permettrait d'avoir une meilleur accessibilité pour les personnes qui utilisent que le clavier. Voir poste : http://forum.phpwebgallery.net/viewtopic.php?id=10330
[navigation] Liste des catégories... trop longue...
https://api.github.com/repos/Piwigo/Piwigo/issues/17/comments
0
2015-07-25T13:02:08Z
2015-07-26T16:42:58Z
https://github.com/Piwigo/Piwigo/issues/17
97,225,118
17
[ "Piwigo", "Piwigo" ]
**Reported by Dudu on 29 Jun 2006 18:26** **Version:** 1.6.0RC2 Lors d'un clic sur le lien "dernières images", une nouvelle page apparaît en affichant les dernières images ajoutées par le webmestre durant les "x" derniers jours. Si aucune image n'a été ajoutée durant ces "x" derniers jours, la page s'affiche, mais aucune vignette n'apparaît (forcément!), laissant un cadre vide. Pourquoi ne pas rajouter un message standart du type "Aucune image ajoutée dans la galerie durant les "x" derniers jours". Cela serait plus explicite et pas trop difficile à mettre en oeuvre... [Piwigo Bugtracker #446](http://piwigo.org/bugs/view.php?id=446)
[other] Message si aucune image ajoutée dans la gallerie
https://api.github.com/repos/Piwigo/Piwigo/issues/16/comments
0
2015-07-25T13:02:02Z
2015-07-26T16:42:58Z
https://github.com/Piwigo/Piwigo/issues/16
97,225,110
16
[ "Piwigo", "Piwigo" ]
**Comment posted by BeSt on 17 Jun 2006 10:04** Actually, I don't know what you mean Pierrick > My concern is the complexity of the resulting code. Complexity is : - size of code ? (yes, it's a problem, that's why I think it as an extension) - speed of code ? (metadata aren't read too often ..) - difficulty for the programmer ? (I think it's quite easy, but I don't know. Else I would have made it !)
[metadata] Exif support when host doesn't support (via PJMT)
https://api.github.com/repos/Piwigo/Piwigo/issues/15/comments
1
2015-07-25T13:01:56Z
2015-10-25T09:19:06Z
https://github.com/Piwigo/Piwigo/issues/15
97,225,095
15
[ "Piwigo", "Piwigo" ]
**Comment posted by VDigital on 7 Sep 2008 05:34** Bug is solved, but use_iptc and use_exif erase the related column contents in images table. If we close this bug, we have to ensure another one is open.
[metadata] Files/database sychronisation of the EXIF metadata (datetimeOriginal)
https://api.github.com/repos/Piwigo/Piwigo/issues/14/comments
0
2015-07-25T13:01:50Z
2021-10-11T09:09:02Z
https://github.com/Piwigo/Piwigo/issues/14
97,225,083
14
[ "Piwigo", "Piwigo" ]
**Comment posted by Eric B on 25 Nov 2012 09:06** 4 years later, I think this issue can be closed, it is possible to sort the categories in v2.4.5
[albums] Auto sort of the categories: add a auto sort per dir name
https://api.github.com/repos/Piwigo/Piwigo/issues/13/comments
0
2015-07-25T13:01:44Z
2019-02-13T10:39:20Z
https://github.com/Piwigo/Piwigo/issues/13
97,225,070
13
[ "Piwigo", "Piwigo" ]
**Reported by vincent3569 on 8 Jun 2006 14:26** **Version:** 1.5.2 dans le menu spéciales, il serait sympa d'avoir un menu "les plus commentées" et "les dernières commentées", chacun de ces menus présentant les images correspondantes, avec, sous chaque vignette, le nombre de commentaire [Piwigo Bugtracker #409](http://piwigo.org/bugs/view.php?id=409)
[user comments] ajout de fonctionnalités dans le menu "spéciales
https://api.github.com/repos/Piwigo/Piwigo/issues/12/comments
0
2015-07-25T13:01:38Z
2015-07-26T16:43:21Z
https://github.com/Piwigo/Piwigo/issues/12
97,225,062
12
[ "Piwigo", "Piwigo" ]
**Reported by glefranc on 23 May 2006 09:46** **Version:** 1.5.2 Avoir la possibilité d'avoir un bouton suivant/précédent cf. http://forum.phpwebgallery.net/viewtopic.php?pid=36618#p36618 [Piwigo Bugtracker #384](http://piwigo.org/bugs/view.php?id=384)
[albums] catégories suivante/précédente
https://api.github.com/repos/Piwigo/Piwigo/issues/11/comments
0
2015-07-25T13:01:32Z
2015-07-26T16:43:20Z
https://github.com/Piwigo/Piwigo/issues/11
97,225,052
11
[ "Piwigo", "Piwigo" ]
**Comment posted by ddtddt on 15 Feb 2008 15:04** proposer en plugin perso dans le wiki http://phpwebgallery.net/doc/doku.php/fr:personnalisation:branche_1.7#plugin_utiliser_la_langue_par_defaut_du_navigateur_pour_les_invites
[language] Show language choice on main page
https://api.github.com/repos/Piwigo/Piwigo/issues/10/comments
4
2015-07-25T13:01:26Z
2015-07-26T16:43:20Z
https://github.com/Piwigo/Piwigo/issues/10
97,225,029
10
[ "Piwigo", "Piwigo" ]
**Reported by eric on 15 Feb 2006 19:17** Dans search.php, pouvoir effectuer une recherche d'images en fonction de leur moyenne de notation. Pour cela, utiliser une fourchette des notes (valeur de note minimum et maximum recherchée). Ainsi les utilisateurs normaux peuvent mieux cibler leur recherches et les admin, par un petit tour par le panier, proposer des catégories virtuelles présentant les images ayant une certaine note. **Additional information:** La fourchette de recherche devrait comprendre le 0 en minimum... Le vote 0 est un indice de popularité flagrant à conserver, à mon sens. [Piwigo Bugtracker #289](http://piwigo.org/bugs/view.php?id=289)
[search] Recherche par plage de notation d'image
https://api.github.com/repos/Piwigo/Piwigo/issues/9/comments
0
2015-07-25T13:01:20Z
2015-07-26T16:43:20Z
https://github.com/Piwigo/Piwigo/issues/9
97,225,013
9
[ "Piwigo", "Piwigo" ]
**Comment posted by VDigital on 5 Aug 2008 06:08** Please make a status on the target version and assign it.
[synchronization] separate structure synchronization and metadata synchronization
https://api.github.com/repos/Piwigo/Piwigo/issues/8/comments
3
2015-07-25T13:01:14Z
2015-07-26T16:43:20Z
https://github.com/Piwigo/Piwigo/issues/8
97,225,000
8
[ "Piwigo", "Piwigo" ]
**Reported by plg on 6 Dec 2005 19:59** **Version:** 1.5.0 By setting a parent category to "private", while already containing private child categories, the parent becomes denied to every users/groups even if some child categories have access granted. This situation should never happen because access granted to a child category means access granted to all parents up to root. **Steps to reproduce:** 1. create public virtual categories: - 2005 - 2005>january - 2005>january>event1 1. set [2005>january>event1] "private" 2. grant access to event1 for group family 3. set [2005>january] private 4. [2005>january] is denied to group family and family members can't reach [2005>january>event1] category [Piwigo Bugtracker #236](http://piwigo.org/bugs/view.php?id=236)
[albums] access denied to a parent category of a granted child category
https://api.github.com/repos/Piwigo/Piwigo/issues/7/comments
0
2015-07-25T13:01:08Z
2015-07-26T16:43:20Z
https://github.com/Piwigo/Piwigo/issues/7
97,224,983
7
[ "Piwigo", "Piwigo" ]
**Comment posted by ddtddt on 28 Jul 2009 22:02** Ce problème est il toujours d'actualité ?
[albums] Gestion des thumbs dans sites distants
https://api.github.com/repos/Piwigo/Piwigo/issues/6/comments
1
2015-07-25T13:01:02Z
2015-07-26T16:43:20Z
https://github.com/Piwigo/Piwigo/issues/6
97,224,972
6
[ "Piwigo", "Piwigo" ]
**Comment posted by samyyy on 15 Nov 2005 13:30** Bonjour Pierrick, Je revient vers toi car je n'ai pas trouvé dans la version 1.5 l' "Utilisateur modèle que l'on duplique à chaque enregistrement d'utilisateur"... Est-ce finalement pas passé pour une prochaine version ? Est-ce moi qui n'est rien vu en 1.5 ? (Merci de ce travail qui fait un grand pas coté admin... Thks égalment pour la gestion de renvoi auto de mdp... )Samuel
[users & groups] Utilisateur modèle
https://api.github.com/repos/Piwigo/Piwigo/issues/5/comments
3
2015-07-25T13:00:56Z
2015-07-26T16:43:28Z
https://github.com/Piwigo/Piwigo/issues/5
97,224,964
5
[ "Piwigo", "Piwigo" ]
**Comment posted by laurent_duretz on 1 Mar 2010 10:32** Error, this bug always open
[metadata] Problem with accents when using listing.xml
https://api.github.com/repos/Piwigo/Piwigo/issues/4/comments
0
2015-07-25T13:00:50Z
2015-07-26T16:43:28Z
https://github.com/Piwigo/Piwigo/issues/4
97,224,962
4
[ "Piwigo", "Piwigo" ]
**Comment posted by VDigital on 14 Mar 2007 16:29** This feature is still actual in fact. Even there is confusion between recent and new. A picture can be new for someone but not recent, he didn't visit the gallery within the recent period. A picture can be recent for someone but not new, he is visiting the gallery so frequently that the picture is not new anymore but still recent. New pictures can NOT be managed for guests. New pictures are only for members and depending on their last connected visit. Just it needs a connexion date in user_infos table to be correctly managed. This has some sense but: Is there any good fonctional reason to include this feature? If someone thinks so? Please open a new discuss on our forum (and refer to feature 70).
[other] new since last visit
https://api.github.com/repos/Piwigo/Piwigo/issues/3/comments
0
2015-07-25T13:00:44Z
2015-07-26T16:43:28Z
https://github.com/Piwigo/Piwigo/issues/3
97,224,959
3
[ "Piwigo", "Piwigo" ]
**Reported by plg on 10 Aug 2004 21:26** In the thumbnail creation tool, propose an option to create thumbnail from the embedded EXIF thumbnail, if foundable [Piwigo Bugtracker #47](http://piwigo.org/bugs/view.php?id=47)
[image processing] option to create thumbnails from EXIF if exists
https://api.github.com/repos/Piwigo/Piwigo/issues/2/comments
0
2015-07-25T13:00:38Z
2015-07-26T16:43:28Z
https://github.com/Piwigo/Piwigo/issues/2
97,224,952
2
[ "Piwigo", "Piwigo" ]
**Comment posted by VDigital on 2 May 2008 12:26** Pierrick should close it?
[synchronization] compare pictures date for update
https://api.github.com/repos/Piwigo/Piwigo/issues/1/comments
2
2015-07-25T13:00:32Z
2015-07-26T16:43:28Z
https://github.com/Piwigo/Piwigo/issues/1
97,224,948
1
[ "chakra-core", "ChakraCore" ]
``` $ bash ./build.sh Warning: Installation script couldn't detect host OS.. Build path: /work/ChakraCore/out/Release Compile Target : System Default Generating Release build CMake Warning: Ignoring extra path from command line: "/work/ChakraCore/out/Release/ " CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is Clang 18.1.5 -- The CXX compiler identification is Clang 18.1.5 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:76 (message): Unsupported target processor: amd64 -- Configuring incomplete, errors occurred! make: no target to make. make: stopped in /work/ChakraCore/out/Release See error details above. Exit code was 2 ```
Failed to build on FreeBSD
https://api.github.com/repos/chakra-core/ChakraCore/issues/6999/comments
0
2024-08-10T09:47:52Z
2024-08-10T09:47:52Z
https://github.com/chakra-core/ChakraCore/issues/6999
2,459,012,151
6,999
[ "chakra-core", "ChakraCore" ]
### Operating System jp master ### Compiler jp master ### ChakraCore Version jp master ### Compiler output ```shell When did ChakraCore start supporting compilation for ARM on Linux? ``` ### Additional Context When did ChakraCore start supporting compilation for ARM on Linux?
[Build]: When did ChakraCore start supporting compilation for ARM on Linux?
https://api.github.com/repos/chakra-core/ChakraCore/issues/6997/comments
2
2024-07-05T00:57:32Z
2024-07-06T05:02:01Z
https://github.com/chakra-core/ChakraCore/issues/6997
2,391,593,705
6,997
[ "chakra-core", "ChakraCore" ]
-{"cplatform":"mobile","cff":"SMALL_FORM_FACTOR","c":"android","cplayer":"PLATYPUS","cmodel":"SM-A037U","cos":"Android","soc":"Mediatek:MT6765V\/CB","cver":"19.14.42","cbrand":"samsung","cbr":"com.google.android.youtube","csdk":"33","cbrver":"19.14.42","cosver":"13.TP1A.220624.014.A037USQU4DWG1","videoid":"WFymLBShONw","cpn":"alqnqpwmpVBW2L37","fmt":"136 avc1 720x1280@24","afmt":"251:CggKA2RyYxIBMQ opus","bh":11864,"conn":3,"volume":73,"loudness":"-3.230","bat":"0.010:1","df":"0\/111","time":"2024-04-21T09:05:25.337Z","glmode":"RECTANGULAR_2D","drm":"","mtext":"GQ:55.4s;","error":"No errors","logged_in":"1","e":"23888716,23946420,23964928,23966208,23983296,23998056,24004644,24036947,24061700,24077241,24078649,24080738,24104894,24117491,24120819,24132305,24135310,24143331,24166867,24181174,24187377,24230811,24232551,24241378,24260378,24265964,24267186,24271689,24290971,24377598,24384759,24397985,24406318,24451319,24455312,24458317,24458329,24458684,24468724,24475157,24515423,24522874,24524098,24542367,24545210,24548465,24548627,24548629,24555431,24556101,24560416,24562015,24569425,24585133,24585737,24690006,24697069,39325413,39325972,39325978,39326126,51009781,51010008,51012659,51016856,51017346,51020570,51021185,51023529,51024556,51024714,51025415,51030103,51033399,51033491,51033765,51034627,51035173,51037344,51037349,51038803,51040842,51041280,51046127,51048236,51048489,51050361,51052868,51053477,51053689,51054999,51057842,51057851,51058424,51058725,51059571,51060353,51063048,51063581,51064835,51067700,51068313,51068632,51069269,51071073,51074183,51079239,51079317,51080128,51080264,51081684,51083716,51084521,51085008,51089177,51089441,51090385,51092660,51092992,51094171,51094202,51094207,51095478,51096153,51098777,51100401,51101454,51101504,51102344,51103858,51106995,51107336,51108006,51108109,51111738,51112401,51113658,51113663,51115164,51115184,51116067,51116254,51117318,51118932,51119651,51120238,51120276,51120722,51123073,51124104,51124405,51124412,51124477,51125857,51125901,51127504,51128585,51129105,51129208,51129209,51129558,51131376,51131840,51132393,51132529,51132535,51134883,51134885,51135652,51136218,51136253,51136811,51136997,51137045,51139379,51139566,51141767,51141798,51141867,51142886,51142889,51142973,51144818,51144925,51145437,51145749,51145947,51146737,51146962,51147554,51147838,51148976,51148983,51149422,51150926,51152043,51152050,51152100,51152207,51152396,51152831,51152842,51152918,51153542,51154012,51154816,51156462,51157411,51157838,51158470,51158514,51158534,51161119,51162170,51162384,51162876,51163083,51163639,51163760,51164910,51165696,51165738,51165740,51166648,51167063,51167143,51167169,51168225,51170373,51171972"}
Blaccbarbie8.ws
https://api.github.com/repos/chakra-core/ChakraCore/issues/6994/comments
3
2024-05-24T08:15:23Z
2024-05-28T17:33:47Z
https://github.com/chakra-core/ChakraCore/issues/6994
2,314,727,299
6,994
[ "chakra-core", "ChakraCore" ]
The storage infrastructure for the ChakraCore releases is going away. As a result, the ChakraCore release downloads will not be available after 5/31/2024. See details here: github.com/microsoft/ChakraCore-wiki/blob/master/Roadmap.md
ChakraCore releases will be unavailable after 5/31/2024
https://api.github.com/repos/chakra-core/ChakraCore/issues/6991/comments
14
2024-04-30T20:10:46Z
2024-07-12T22:23:41Z
https://github.com/chakra-core/ChakraCore/issues/6991
2,272,372,661
6,991
[ "chakra-core", "ChakraCore" ]
## Related issues - [ ] #6965 - [ ] #6964 - [ ] #6963 - [ ] #6691 - [ ] #6704 ## Progress so far - #6293 - #6533 - #6662 - #6684 - #6700 - #6706 --- @rhuanjl @ppenzin Feel free to edit this message
[Epic]: Fix jitting of generator functions
https://api.github.com/repos/chakra-core/ChakraCore/issues/6988/comments
4
2024-04-23T09:18:58Z
2024-05-30T22:22:39Z
https://github.com/chakra-core/ChakraCore/issues/6988
2,258,372,473
6,988
[ "chakra-core", "ChakraCore" ]
``` ./build.sh --debug ... [ 4%] Building C object pal/src/CMakeFiles/Chakra.Pal.dir/safecrt/safecrt_output_s.c.o In file included from /home/ChakraCore/pal/src/safecrt/safecrt_output_s.c:45: /home/ChakraCore/pal/src/safecrt/output.inl:854:28: error: call to undeclared function 'va_arg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 854 | fldwidth = get_int_arg(&argptr); | ^ /home/ChakraCore/pal/src/safecrt/output.inl:555:41: note: expanded from macro 'get_int_arg' 555 | #define get_int_arg(list) va_arg(*list, int) | ^ /home/ChakraCore/pal/src/safecrt/output.inl:854:28: error: expected expression /home/ChakraCore/pal/src/safecrt/output.inl:555:55: note: expanded from macro 'get_int_arg' 555 | #define get_int_arg(list) va_arg(*list, int) ... ``` It appears that `__GNUC_VA_LIST` is defined when it probably shouldn't be.
Build failure with Clang 16, 17 -- call to undeclared function 'va_arg'
https://api.github.com/repos/chakra-core/ChakraCore/issues/6984/comments
6
2024-04-21T16:15:22Z
2024-04-22T21:08:36Z
https://github.com/chakra-core/ChakraCore/issues/6984
2,255,153,797
6,984
[ "chakra-core", "ChakraCore" ]
``` clang++ --version Debian clang version 16.0.6 (19) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin ``` ``` /build.sh --debug --static Searching for Clang... Clang++ found at /usr/bin/clang++ Build path: /home/ChakraCore/out/Debug Compile Target : System Default Generating Debug build ... [ 0%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o In file included from /home/ChakraCore/pal/src/cruntime/file.cpp:23: In file included from /home/ChakraCore/pal/src/include/pal/palinternal.h:323: /home/ChakraCore/pal/inc/pal.h:2682:31: error: size of array element of type 'PM128A' (aka '_M128U *') (8 bytes) isn't a multiple of its alignment (16 bytes) PM128A FloatingContext[16]; ^ 1 error generated. pal/src/CMakeFiles/Chakra.Pal.dir/build.make:75: recipe for target 'pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o' failed make[2]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o] Error 1 CMakeFiles/Makefile2:643: recipe for target 'pal/src/CMakeFiles/Chakra.Pal.dir/all' failed make[1]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/all] Error 2 Makefile:90: recipe for target 'all' failed make: *** [all] Error 2 See error details above. Exit code was 2 ``` As far as I understand, `PM128A` is a 16-byte aligned pointer (of size 8). A single pointer can be aligned on 16-byte boundary, but the next pointer in the array will necessarily be 8-byte aligned. This patch fixes the problem: ``` diff --git a/pal/inc/pal.h b/pal/inc/pal.h index a68a6e65a..20ca7a80d 100644 --- a/pal/inc/pal.h +++ b/pal/inc/pal.h @@ -2498,7 +2498,8 @@ typedef struct _M128U { } M128U, *PM128U; // Same as _M128U but aligned to a 16-byte boundary -typedef DECLSPEC_ALIGN(16) M128U M128A, *PM128A; +typedef DECLSPEC_ALIGN(16) M128U M128A; +typedef M128A *PM128A; typedef struct _XMM_SAVE_AREA32 { WORD ControlWord; ```
Build failure with Clang 16.0.6 and 17 -- size of array element of type 'PM128A' (aka '_M128U *') (8 bytes) isn't a multiple of its alignment (16 bytes)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6982/comments
3
2024-04-21T00:31:48Z
2024-04-22T21:07:20Z
https://github.com/chakra-core/ChakraCore/issues/6982
2,254,779,400
6,982
[ "chakra-core", "ChakraCore" ]
## Issue ‘this’ pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true ## Tasks - [ ] Add compiler warning clang: [`-Wundefined-bool-conversion`](https://clang.llvm.org/docs/DiagnosticsReference.html#id939) msvc: ?? - [x] #6847 - [ ] [`IR.cpp`](https://github.com/chakra-core/ChakraCore/blob/2af598f04ab508f9231d6e26f0f82f5a57561413/lib/Backend/IR.cpp#L4852) - [x] Find further places where this may happen
`this == nullptr` results in undefined behavior
https://api.github.com/repos/chakra-core/ChakraCore/issues/6978/comments
3
2024-04-17T13:38:50Z
2024-05-30T04:42:33Z
https://github.com/chakra-core/ChakraCore/issues/6978
2,248,325,908
6,978
[ "chakra-core", "ChakraCore" ]
# commit c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 # bug big JS object causes oom # build and run os: Ubuntu 22.04.2 LTS mem: 2G build: ./build.sh --debug --static -j=8 run: ./DebugBuild/Debug/ch poc.js Run 10 times, 10 crashes # POC ```JavaScript const v10 = [0]; v10[1836277064] = 0; JSON["stringify"](v10); ``` # Abort output ```bash # ./DebugBuild/Debug/ch poc.js # Aborted (core dumped) ``` # crash stack ```bash #0 DBG_DebugBreak () at /root/work/xxxx/ChakraCore_dir/ChakraCore/pal/src/arch/i386/debugbreak.S:18 #1 0x00005565345541e2 in DebugBreak () at /root/work/xxxx/ChakraCore_dir/ChakraCore/pal/src/debug/debug.cpp:408 #2 0x00005565330288a6 in ReportFatalException (context=0, exceptionCode=-2147024882, reasonCode=Fatal_OutOfMemory, scenario=10) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Exceptions/ReportError.cpp:20 #3 0x0000556533028d42 in RecyclerSingleAllocationLimit_unrecoverable_error () at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Exceptions/ReportError.cpp:151 #4 0x000055653317488f in Memory::Recycler::LargeAlloc<false> (this=0x5565363a1a48, heap=0x5565363a64a0, size=44070649568, attributes=Memory::WithBarrierBit) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Memory/Recycler.cpp:1380 #5 0x0000556532ecf90b in Memory::Recycler::RealAlloc<(Memory::ObjectInfoBits)256, false> (this=0x5565363a1a48, heap=0x5565363a64a0, size=44070649568) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Memory/Recycler.inl:384 #6 0x0000556532ecf4ec in Memory::Recycler::AllocWithAttributesInlined<(Memory::ObjectInfoBits)256, false> (this=0x5565363a1a48, size=44070649568) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Memory/Recycler.inl:108 #7 0x0000556532f793ad in Memory::Recycler::AllocZeroWithAttributesInlined<(Memory::ObjectInfoBits)256, false> (this=0x5565363a1a48, size=44070649568) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Memory/Recycler.inl:229 #8 0x0000556532f79369 in Memory::Recycler::AllocZeroWithAttributes<(Memory::ObjectInfoBits)256, false> (this=0x5565363a1a48, size=44070649568) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Memory/Recycler.h:1598 #9 0x0000556532f78e49 in Memory::Recycler::AllocZero (this=0x5565363a1a48, size=44070649568) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/Memory/Recycler.h:1360 #10 0x0000556532f790ba in operator new<Memory::Recycler> (byteSize=8, alloc=0x5565363a1a48, AllocFunc=(char *(Memory::Recycler::*)(Memory::Recycler * const, size_t)) 0x556532f78e10 <Memory::Recycler::AllocZero(unsigned long)>, plusSize=44070649560) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Common/DataStructures/../Memory/Allocator.h:513 #11 0x000055653490d281 in Js::JSONStringifier::ReadArray (this=0x7ffe2d47abb8, arr=0x7f0b964a22a0, objectStack=0x7ffe2d47abe8) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Library/JSONStringifier.cpp:407 #12 0x000055653490bf6e in Js::JSONStringifier::ReadProperty (this=0x7ffe2d47abb8, key=0x7f0b964b1450, holder=0x0, prop=0x7f0b9647f360, value=0x7f0b964a22a0, --Type <RET> for more, q to quit, c to continue without paging-- 47abe8) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Library/JSONStringifier.cpp:877 #13 0x000055653490bac3 in Js::JSONStringifier::Stringify (scriptContext=0x5565363cf488, value=0x7f0b964a22a0, replacer=0x0, space=0x7f0b964b5020) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Library/JSONStringifier.cpp:196 #14 0x00005565348feaa1 in JSON::Stringify (function=0x7f0b96482600, callInfo=...) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Library/JSON.cpp:141 #15 0x00005565340a56ee in amd64_CallFunction () at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #16 0x0000556533c73f7a in Js::JavascriptFunction::CallFunction<true> (function=0x7f0b96482600, entryPoint=0x5565348fdf00 <JSON::Stringify(Js::RecyclableObject*, Js::CallInfo, ...)>, args=..., useLargeArgCount=false) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1364 #17 0x00005565339d426f in Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7ffe2d47c170, playout=0x7f0b964fd4a5, function=0x7f0b96482600, flags=16, spreadIndices=0x0) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3973 #18 0x00005565339d3b29 in Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7ffe2d47c170, playout=0x7f0b964fd4a5, function=0x7f0b96482600, flags=0, profileId=0, inlineCacheIndex=0, spreadIndices=0x0) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:4016 #19 0x000055653382ce16 in Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > >(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > const __unaligned*) (this=0x7ffe2d47c170, playout=0x7f0b964fd4a5) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/./Language/InterpreterStackFrame.h:520 #20 0x000055653381c43b in Js::InterpreterStackFrame::ProcessProfiled (this=0x7ffe2d47c170) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Language/InterpreterHandler.inl:91 #21 0x000055653378731f in Js::InterpreterStackFrame::Process (this=0x7ffe2d47c170) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3472 #22 0x0000556533784e11 in Js::InterpreterStackFrame::InterpreterHelper (function=0x7f0b964b66e0, args=..., returnAddress=0x7f0b960d0fa2, addressOfReturnAddress=0x7ffe2d47c728, asmJsReturn=0x0) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2153 #23 0x0000556533783678 in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7ffe2d47c740) at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1833 #24 0x00007f0b960d0fa2 in ?? () #25 0x00007ffe2d47c750 in ?? () #26 0x00005565340a56ee in amd64_CallFunction () at /root/work/xxxx/ChakraCore_dir/ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 ```
big JS object causes Abort call to block oom
https://api.github.com/repos/chakra-core/ChakraCore/issues/6972/comments
1
2024-03-25T07:46:19Z
2024-04-18T21:50:20Z
https://github.com/chakra-core/ChakraCore/issues/6972
2,205,106,529
6,972
[ "chakra-core", "ChakraCore" ]
# commit c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 # bug Address misalignment causes futex error # build and run os: Ubuntu 22.04.2 LTS build: ./build.sh --debug --static -j=8 run: ./DebugBuild/Debug/ch this.js Run 10 times, 3 crashes # POC ```JavaScript function classOf(object) { var string = Object.prototype.toString.call(object); return string.substring(8, string.length - 1); } function deepObjectEquals(a, b) { var aProps = Object.keys(a); aProps.sort(); var bProps = Object.keys(b); bProps.sort(); if (!deepEquals(aProps, bProps)) { return false; } for (var i = 0; i < aProps.length; i++) { if (!deepEquals(a[aProps[i]], b[aProps[i]])) { return false; } } return true; } function deepEquals(a, b) { if (a === b) { if (a === 0) return (1 / a) === (1 / b); return true; } if (typeof a != typeof b) return false; if (typeof a == 'number') return (isNaN(a) && isNaN(b)) || (a===b); if (typeof a !== 'object' && typeof a !== 'function' && typeof a !== 'symbol') return false; var objectClass = classOf(a); if (objectClass === 'Array') { if (a.length != b.length) { return false; } for (var i = 0; i < a.length; i++) { if (!deepEquals(a[i], b[i])) return false; } return true; } if (objectClass !== classOf(b)) return false; if (objectClass === 'RegExp') { return (a.toString() === b.toString()); } if (objectClass === 'Function') return true; if (objectClass == 'String' || objectClass == 'Number' || objectClass == 'Boolean' || objectClass == 'Date') { if (a.valueOf() !== b.valueOf()) return false; } return deepObjectEquals(a, b); } function opt(opt_param){ const v0 = {}; const v1 = [v0,v0,v0,v0,v0]; const v2 = v0[v0]; const v3 = class V3 { constructor(v5,v6,v7) { ({"MAX_SAFE_INTEGER":v4,"dotAll":v6,} = v2); function v8(v9,v10,v11,v12) { const v13 = {"get":v10,"set":v6}; } } get(v15,v16,v17) { const v18 = v3 >>> v16; } pop(v20,v21,v22,v23) { let {"NEGATIVE_INFINITY":v24,"byteLength":v25,"source":v26,"split":v27,...v28} = v22; } }; return v3; } function main(){ let gflag = true; let jit_a0 = opt(true); let jit_a0_0 = opt(false); for(let i=0;i<0x10;i++){opt(false);} let jit_a2 = opt(true); if (jit_a0 === undefined && jit_a2 === undefined) { opt(true); } else { if (jit_a0_0===jit_a0 && !deepEquals(jit_a0, jit_a2)) { gflag = false; } } for(let i=0;i<0x200;i++){opt(false);} let jit_a4 = opt(true); if (jit_a0 === undefined && jit_a4 === undefined) { opt(true); } else { if (gflag && jit_a0_0===jit_a0 && !deepEquals(jit_a0, jit_a4)) { fuzzilli('FUZZILLI_CRASH', 0); } } } main(); ``` # fix suggestions old in cclock.hpp line 12-16: ```c++ #if defined(_M_ARM64) #define CCLOCK_ALIGN __declspec(align(8)) #else #define CCLOCK_ALIGN #endif ``` new in cclock.hpp: ```c++ #define CCLOCK_ALIGN __declspec(align(8)) ```
Address misalignment causes futex error
https://api.github.com/repos/chakra-core/ChakraCore/issues/6971/comments
6
2024-03-20T09:23:57Z
2024-04-22T04:27:30Z
https://github.com/chakra-core/ChakraCore/issues/6971
2,197,040,325
6,971
[ "chakra-core", "ChakraCore" ]
Hi I'm trying to debug the ch.exe file in Visual Studio, but it crashes immediately and I couldn't find any Wiki/Tutorial on that. is this a known issue? or there anything related to that? Regards, Moshe
How can I debug ch.exe ?
https://api.github.com/repos/chakra-core/ChakraCore/issues/6969/comments
7
2024-01-31T15:54:24Z
2024-05-31T05:46:06Z
https://github.com/chakra-core/ChakraCore/issues/6969
2,110,421,867
6,969
[ "chakra-core", "ChakraCore" ]
Followed Below Steps: git clone https://github.com/chakra-core/ChakraCore.git cd ChakraCore msbuild /m /p:Platform=x86 /p:Configuration=Release .\Build\Chakra.Core.sln Getting below errors - "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) -> "C:\Test\ChakraCore\Build\..\bin\GCStress\GCStress.vcxproj.metaproj" (default target) (22) -> "C:\Test\ChakraCore\bin\GCStress\GCStress.vcxproj" (default target) (28) -> "C:\Test\ChakraCore\lib\Runtime\PlatformAgnostic\Chakra.Runtime.PlatformAgnostic.vcxproj" (default target) (40) -> c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore \lib\Runtime\PlatformAgnostic\Chakra.Runtime.PlatformAgnostic.vcxproj] "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) -> "C:\Test\ChakraCore\Build\..\lib\Jsrt\Chakra.Jsrt.vcxproj.metaproj" (default target) (13) -> "C:\Test\ChakraCore\lib\Jsrt\Chakra.Jsrt.vcxproj" (default target) (41) -> c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore \lib\Jsrt\Chakra.Jsrt.vcxproj] "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) -> "C:\Test\ChakraCore\Build\..\lib\Runtime\Math\Chakra.Runtime.Math.vcxproj.metaproj" (default target) (15) -> "C:\Test\ChakraCore\lib\Runtime\Math\Chakra.Runtime.Math.vcxproj" (default target) (43) -> c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore \lib\Runtime\Math\Chakra.Runtime.Math.vcxproj] "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) -> "C:\Test\ChakraCore\Build\..\lib\Runtime\Base\Chakra.Runtime.Base.vcxproj.metaproj" (default target) (17) -> "C:\Test\ChakraCore\lib\Runtime\Base\Chakra.Runtime.Base.vcxproj" (default target) (44) -> c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore \lib\Runtime\Base\Chakra.Runtime.Base.vcxproj] "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) -> "C:\Test\ChakraCore\Build\..\lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj.metaproj" (default target) (14) -> "C:\Test\ChakraCore\lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj" (default target) (42) -> c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore \lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj] c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore \lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj] 0 Warning(s) 19 Error(s)
Windows Compilation fails due to invalid identifier PCFG_CALL_TARGET_INFO
https://api.github.com/repos/chakra-core/ChakraCore/issues/6968/comments
1
2024-01-24T11:20:27Z
2024-05-30T04:40:52Z
https://github.com/chakra-core/ChakraCore/issues/6968
2,098,047,645
6,968
[ "chakra-core", "ChakraCore" ]
[``](url)https://sourceforge.net/p/phlickr/code/545/
Humblestart
https://api.github.com/repos/chakra-core/ChakraCore/issues/6967/comments
0
2023-12-02T21:16:23Z
2024-04-16T21:27:48Z
https://github.com/chakra-core/ChakraCore/issues/6967
2,022,207,129
6,967
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function test(){ async function foo(a1,a2) { for (let i = a1; i < foo; i = i + a2) { const x = await -9007199254740992; } function bar() { } const b = new bar(); b.__proto__ = foo; const names = Object.getOwnPropertyNames(bar); } const r = foo(); return r; } for(let i=0; i<1024; i++) { test(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` Segmentation fault in NativeCodeGenerator::CheckCodeGen ``` backtrace ``` #6 0x0000555556912b32 in NativeCodeGenerator::CheckCodeGen (function=0x2000001) at ChakraCore/lib/Backend/NativeCodeGenerator.cpp:1678 #7 0x00005555564a378e in amd64_CallFunction () at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #8 0x00005555561d79fb in Js::JavascriptFunction::CallFunction<true> (function=0x7ff7f4334dc0, entryPoint=0x555556978d70 <NativeCodeGenerator::CheckCodeGenThunk(Js::RecyclableObject*, Js::CallInfo, ...)>, args=..., useLargeArgCount=false) at ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1364 #9 0x00005555561da43f in Js::JavascriptGenerator::CallGenerator (this=0x7ff7f43313c0, data=0x7ff7f4c75030, resumeKind=Js::ResumeYieldKind::Normal) at ChakraCore/lib/Runtime/Library/JavascriptGenerator.cpp:198 #10 0x00005555561a8d64 in Js::JavascriptAsyncFunction::EntryAsyncSpawnStepNextFunction (function=0x7ff7f4282000, callInfo=...) at ChakraCore/lib/Runtime/Library/JavascriptAsyncFunction.cpp:93 #11 0x00005555561a8f48 in Js::JavascriptAsyncFunction::AsyncSpawnStep (stepFunction=0x7ff7f4282000, generator=0x7ff7f43313c0, resolve=0x7ff7f432ac60, reject=0x7ff7f432acc0) at ChakraCore/lib/Runtime/Library/JavascriptAsyncFunction.cpp:151 #12 0x00005555561a8c26 in Js::JavascriptAsyncFunction::BeginAsyncFunctionExecution (generator=0x7ff7f43313c0) at ChakraCore/lib/Runtime/Library/JavascriptAsyncFunction.cpp:73 #13 0x00005555561a8a42 in Js::JavascriptAsyncFunction::EntryAsyncFunctionImplementation (function=0x7ff7f4336f00, callInfo=...) at ChakraCore/lib/Runtime/Library/JavascriptAsyncFunction.cpp:52 #14 0x00007ff7f42e0168 in ?? () #15 0x00007ff7f4336f00 in ?? () #16 0x0000000002000001 in ?? () #17 0x00007ff7f4c75030 in ?? () #18 0x00005555561cccf0 in Js::JavascriptOperators::GetTypeId ( obj=0x5555557b37be <Js::JavascriptLibrary::GetScriptContext() const+30>) at ChakraCore/lib/Runtime/./Language/JavascriptOperators.inl:13 #19 Js::VarIsImpl<Js::JavascriptFunction> (obj=0x0) at ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:101 #20 0x00005555564a378e in amd64_CallFunction () at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #21 0x00005555561d79fb in Js::JavascriptFunction::CallFunction<true> (function=0x7ff7f4c76730, entryPoint=0x7ff7f42e0000, args=..., useLargeArgCount=false) at ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1364 #22 0x0000555555ffc5ce in Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7fffffffc790, playout=0x7ff7f54cd491, function=0x7ff7f4c76730, flags=16, spreadIndices=0x0) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3973 #23 0x0000555555ffc0b1 in Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7fffffffc790, playout=0x7ff7f54cd491, function=0x7ff7f4c76730, flags=0, profileId=0, inlineCacheIndex=0, spreadIndices=0x0) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:4016 #24 0x0000555555fc7288 in Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > >(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > const __unaligned*) (this=0x7fffffffc790, playout=0x7ff7f54cd491) at ChakraCore/lib/Runtime/./Language/InterpreterStackFrame.h:520 #25 0x0000555555eac7b3 in Js::InterpreterStackFrame::ProcessProfiled (this=0x7fffffffc790) at ChakraCore/lib/Runtime/Language/InterpreterHandler.inl:91 #26 0x0000555555e520f2 in Js::InterpreterStackFrame::Process (this=0x7fffffffc790) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3472 #27 0x0000555555e50db3 in Js::InterpreterStackFrame::InterpreterHelper (function=0x7ff7f4c766e0, args=..., returnAddress=0x7ff7f43c0fa2, addressOfReturnAddress=0x7fffffffccf8, asmJsReturn=0x0) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2153 #28 0x0000555555e4fe90 in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7fffffffcd10) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1833 #29 0x00007ff7f43c0fa2 in ?? () #30 0x00007fffffffcd20 in ?? () #31 0x00005555564a378e in amd64_CallFunction () at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:10 ```
Segmentation fault in NativeCodeGenerator::CheckCodeGen
https://api.github.com/repos/chakra-core/ChakraCore/issues/6965/comments
3
2023-11-30T02:31:17Z
2024-04-23T03:57:22Z
https://github.com/chakra-core/ChakraCore/issues/6965
2,017,756,263
6,965
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function test(){ async function foo(a1,a2) { for (let i = a2; i < a1; i = i ** foo) { const x = await i; } function bar () { } const u = new Uint8Array(bar); const p = new Proxy(u,Reflect); const o = Object.seal(p); } const r = foo(); return r; } for(let i=0; i<1024; i++){ test(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 2791936: (ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp, line 938) bad type object in conversion ToInteger Failure: (JavascriptOperators::IsObject(aValue)) Illegal instruction ```
Assertion error: bad type object in conversion ToInteger
https://api.github.com/repos/chakra-core/ChakraCore/issues/6964/comments
1
2023-11-30T02:05:31Z
2024-04-22T21:56:30Z
https://github.com/chakra-core/ChakraCore/issues/6964
2,017,735,499
6,964
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function test(){ async function foo(a1,a2) { for (let i = a2; i < a1; i = i + foo) { const ret = await i; } function E() { } const p = new Proxy(Proxy,Reflect); const d = {}; const v16 = new p(E,d); } foo(); const s = new String(); const z = Object.defineProperty(s,Proxy,Proxy); const r = foo(Proxy,z,String,s); return r; } for(let i=0; i<1024; i++) { test(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` Segmentation fault in Js::RecyclableObject::GetType lib/Runtime/Types/RecyclableObject.h ``` backtrace ``` Thread 1 "ch" received signal SIGSEGV, Segmentation fault. 0x00005555557b37ee in Js::RecyclableObject::GetType (this=0x1b57ebcd48) at ChakraCore/bin/ch/../../lib/Runtime/Types/RecyclableObject.h:275 275 inline Type * GetType() const { return type; } (gdb) bt #0 0x00005555557b37ee in Js::RecyclableObject::GetType (this=0x1b57ebcd48) at ChakraCore/bin/ch/../../lib/Runtime/Types/RecyclableObject.h:275 #1 0x00005555557b3785 in Js::RecyclableObject::GetLibrary (this=0x1b57ebcd48) at ChakraCore/bin/ch/../../lib/Runtime/Types/RecyclableObject.inl:18 #2 0x00005555557b3735 in Js::RecyclableObject::GetScriptContext ( this=0x1b57ebcd48) at ChakraCore/bin/ch/../../lib/Runtime/Types/RecyclableObject.inl:23 #3 0x0000555555a7f778 in Js::CrossSite::NeedMarshalVar ( instance=0x1b57ebcd48, requestContext=0x555557eeeca8) at ChakraCore/lib/Runtime/Base/CrossSite.cpp:32 #4 0x00005555558d453c in Js::JavascriptArray::VerifyNotNeedMarshal<void*> ( this=0x7ff7f435bc40, value=0x1b57ebcd48) at ChakraCore/lib/Jsrt/../Runtime/Library/JavascriptArray.h:201 #5 0x00005555558d27f2 in Js::JavascriptArray::DirectSetItemInLastUsedSegmentAt<void*> (this=0x7ff7f435bc40, offset=0, newValue=0x1b57ebcd48) at ChakraCore/lib/Jsrt/../Runtime/Library/JavascriptArray.inl:502 #6 0x00005555558d251e in Js::JavascriptArray::DirectSetItemAt<void*> ( --Type <RET> for more, q to quit, c to continue without paging-- f7f435bc40, itemIndex=0, newValue=0x1b57ebcd48) at ChakraCore/lib/Jsrt/../Runtime/Library/JavascriptArray.inl:460 #7 0x00005555563ad40b in Js::JavascriptProxy::FunctionCallTrap (function=0x7ff7f4357de0, callInfo=...) at ChakraCore/lib/Runtime/Library/JavascriptProxy.cpp:2262 ```
Segmentation fault in Js::RecyclableObject::GetType
https://api.github.com/repos/chakra-core/ChakraCore/issues/6963/comments
1
2023-11-30T01:55:42Z
2024-04-22T21:56:42Z
https://github.com/chakra-core/ChakraCore/issues/6963
2,017,725,688
6,963
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function test(){ async function foo(x) { const F = Float32Array; const S = Set; const A = Array; const R = Reflect; const O = Object; const isF = isFinite; const P = Proxy; const Sym = Symbol; const Boo = Boolean; const JS = JSON; const ev = eval; for (let i = 536870912; i < x; i = i ** x) { const f = await foo; const s = i.splice(); } async function bart() { const w = new WeakMap(); const s = w.set(); } const ret = bart(); } const r = foo(); return r; } for(let i=0; i<1024; i++) { test(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 2785381: (ChakraCore/lib/Runtime/./Types/RecyclableObject.h, line 527) VarIs<T>(aValue) Failure: (VarIs<T>(aValue)) Illegal instruction ```
Assertion Failure in ChakraCore/lib/Runtime/./Types/RecyclableObject.h, VarIs<T>(aValue)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6962/comments
1
2023-11-30T01:45:13Z
2024-07-30T01:49:19Z
https://github.com/chakra-core/ChakraCore/issues/6962
2,017,717,514
6,962
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function test() { async function foo(a1,a2) { for (let i = a2; i < foo; i = i + 3705358555) { const ret = await a1; } async function bar() { } const p = new Proxy(Reflect,bar); p.__proto__ = bar; } foo(); new Float32Array(Float32Array); function baz(v21,v22) { let {"constructor":v23,"ignoreCase":v24,"length":v25,} = v21; } const r = baz(foo,foo); return r; } for(let i=0;i<0x200;i++) { test(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 2779735: (ChakraCore/lib/Runtime/./Library/ScriptFunction.h, line 78) Derived class need to define marshal to script context Failure: (VirtualTableInfo<ScriptFunction>::HasVirtualTable(this)) Illegal instruction ```
Derived class need to define marshal to script context Failure: (VirtualTableInfo<ScriptFunction>::HasVirtualTable(this))
https://api.github.com/repos/chakra-core/ChakraCore/issues/6961/comments
0
2023-11-30T01:27:09Z
2023-11-30T01:27:09Z
https://github.com/chakra-core/ChakraCore/issues/6961
2,017,703,288
6,961
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function opt(){ async function foo(a) { for (let i = 3705358555; i < foo; i = i + 3705358555) { const v7 = await a; } function bar() { 'use strict'; const x = [5.0]; const y = new Int32Array(); y[x] = 5.0; } const z = bar(); } const zz = foo(); return zz; } for(let i=0; i<1024; i++){ opt(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 2776368: (ChakraCore/lib/Backend/BailOut.cpp, line 1536) Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in -- the generator object and a resume yield object Failure: (args.Info.Count == 2) Illegal instruction ```
Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in
https://api.github.com/repos/chakra-core/ChakraCore/issues/6960/comments
3
2023-11-30T01:15:47Z
2024-04-22T21:42:15Z
https://github.com/chakra-core/ChakraCore/issues/6960
2,017,693,728
6,960
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function opt() { let v1 = 1000000000.0; const v2 = []; let v3 = 0; while (v3 < 1) { let v5 = {}; v1 = v2; ({"__proto__":v3,"e":v5,"valueOf":v1,...v5} = v5); } const v8 = new Uint16Array(65489); v1[6] = 65489; v8[255] = 1; } for(let i=0;i<1024;i++) { opt(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 2773824: (ChakraCore/lib/Backend/TempTracker.cpp, line 1437) instr->m_func->GetJITFunctionBody()->IsCoroutine() || !instr->dstIsTempObject Failure: (instr->m_func->GetJITFunctionBody()->IsCoroutine() || !instr->dstIsTempObject) Illegal instruction ```
ASSERTION Failure: (instr->m_func->GetJITFunctionBody()->IsCoroutine() || !instr->dstIsTempObject)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6959/comments
0
2023-11-30T01:08:28Z
2023-11-30T01:08:28Z
https://github.com/chakra-core/ChakraCore/issues/6959
2,017,687,658
6,959
[ "chakra-core", "ChakraCore" ]
Customarily, callbacks take an additional user data parameter so that closures can be used as callbacks. This is the case with, for example, `JsMemoryAllocationCallback`. However, `JsThreadServiceCallback` takes no such parameter (do not confuse this with its `callbackState` parameter, which is not _user_ data rather engine-provided data for the work item callback). Ideally the API would be: ```c typedef bool (CALLBACK *JsThreadServiceCallback)( _In_ JsBackgroundWorkItemCallback workItemCallback, _In_opt_ void *workItemCallbackState, _In_opt_ void *threadServiceCallbackState ); STDAPI_(JsErrorCode) JsCreateRuntime( _In_ JsRuntimeAttributes attributes, _In_opt_ JsThreadServiceCallback threadService, _In_opt_ void *threadServiceCallbackState _Out_ JsRuntimeHandle *runtime ); ``` where the runtime would pass `threadServiceCallbackState` to `threadService` whenever it’s called.
No way to pass user data to thread service callback
https://api.github.com/repos/chakra-core/ChakraCore/issues/6957/comments
1
2023-11-10T13:49:24Z
2024-04-22T21:47:34Z
https://github.com/chakra-core/ChakraCore/issues/6957
1,987,666,943
6,957
[ "chakra-core", "ChakraCore" ]
I want to run js script in two threads . How can I do it?
How to create one more runtimes in different threads
https://api.github.com/repos/chakra-core/ChakraCore/issues/6956/comments
0
2023-10-10T05:31:59Z
2023-10-14T02:25:28Z
https://github.com/chakra-core/ChakraCore/issues/6956
1,934,408,999
6,956
[ "chakra-core", "ChakraCore" ]
## Idea Since CC is now a standalone js engine it might be cool to have the capability to execute typescript files directly via CC to allow for a faster development cycle. ## Implementation This feature would work by just throwing away type information in the parser. It should be available via an opt-in flag. ## Tasks - [ ] Ignore simple type-annotations - [ ] Ignore type definitions (`type` keyword) - [ ] Ignore type declarations (`declare` keyword) - [ ] Ignore TS interface syntax (`interface` and `implements` keyword) - [ ] Parse and expose TS `enum` fields (future) - [ ] Handle `namespace`s - [ ] Handle TS decorators (future) ... --- See https://github.com/chakra-core/ChakraCore/issues/1435#issuecomment-396316373
Let Parser ignore TypseScript syntax
https://api.github.com/repos/chakra-core/ChakraCore/issues/6954/comments
2
2023-10-01T10:07:57Z
2024-05-30T19:27:05Z
https://github.com/chakra-core/ChakraCore/issues/6954
1,920,681,101
6,954
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo() { try { try { for (let i = 0; i < 1; i++) { try { function bar() { const ret = Reflect.ownKeys(); } const x = new bar(); } finally { break; } } } finally { } } catch(e) { } } i = 0; while (i<1024) { foo(); i++; } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 2675347: (ChakraCore/lib/Backend/BackwardPass.cpp, line 582) blockSucc->GetDataUseCount() != 0 Failure: (blockSucc->GetDataUseCount() != 0) Illegal instruction (core dumped) ```
ASSERTION: (ChakraCore/lib/Backend/BackwardPass.cpp, line 582) blockSucc->GetDataUseCount() != 0
https://api.github.com/repos/chakra-core/ChakraCore/issues/6951/comments
1
2023-09-22T14:30:38Z
2023-10-01T07:24:03Z
https://github.com/chakra-core/ChakraCore/issues/6951
1,909,021,741
6,951
[ "chakra-core", "ChakraCore" ]
`in` and `instanceof` expressions in JS ```js a in obj; a instanceof C; ``` can be negated by grouping them and applying the `!` operator, i.e. ```js !(a in obj); !(a instanceof C); ``` Applying the `!` operator incorrectly (on the LHS operand) leads to bugs: ```js !a in obj; // will evaluate to false, unless obj has a "true" or "false" key !a instanceof C; // will evaluate to false, unless C overrides instanceof with a @@hasInstance method ``` For more information, please see these [MDN docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof#not_an_instanceof) and [the no-unsafe-negation recommended Eslint rule](https://eslint.org/docs/latest/rules/no-unsafe-negation). I have found several potentially problematic instances of the above bugs in your codebase: https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/chakra-core/ChakraCore%24+lang:javascript+/%5C%21%5B%5B:alnum:%5D%5D%2B+instanceof+%5B%5B:alnum:%5D%5D%2B/+-file:%5C.min%5C.js%24+count:all&patternType=standard&sm=1&groupBy=repo
Bugs in negated `instanceof` expressions
https://api.github.com/repos/chakra-core/ChakraCore/issues/6950/comments
1
2023-09-20T13:25:18Z
2024-04-23T14:16:46Z
https://github.com/chakra-core/ChakraCore/issues/6950
1,904,996,728
6,950
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo() { for (let i = 0; i < 16; i++) { try { const s = ~"__proto__"; switch (s) { case s: try { break; } finally { } break; default: break; } } catch(e) { ; } } } let i = 0; while(i < 1024) { foo(); i++; } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 453147: (ChakraCore/lib/Backend/FlowGraph.cpp, line 2078) this->func->IsLoopBodyInTry() Failure: (this->func->IsLoopBodyInTry()) Illegal instruction (core dumped) ```
ASSERTION 453147: (ChakraCore/lib/Backend/FlowGraph.cpp, line 2078) this->func->IsLoopBodyInTry()
https://api.github.com/repos/chakra-core/ChakraCore/issues/6949/comments
0
2023-09-13T09:35:01Z
2023-09-13T09:35:01Z
https://github.com/chakra-core/ChakraCore/issues/6949
1,894,135,788
6,949
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo() { switch (undefined) { case undefined: try { } finally { switch (0) { case 0: try { break; } finally { } } } break; default: break; } let p = Proxy; p = "PI"; Error[p] = NaN; } let x = foo(); let i = 0; while(i < 1024) { foo(); i++; } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 448644: (ChakraCore/lib/Runtime/Language/ValueType.cpp, line 1101) var Failure: (var) Illegal instruction (core dumped) ```
ASSERTION 448644: (ChakraCore/lib/Runtime/Language/ValueType.cpp, line 1101)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6948/comments
0
2023-09-13T09:06:38Z
2023-09-13T09:06:38Z
https://github.com/chakra-core/ChakraCore/issues/6948
1,894,080,200
6,948
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo(){ const s = /(\w+)/imsu; const sss = s.toString(); const match = sss.match(sss); try { const x = ~sss; switch (x) { case x: try { break; } finally { } break; default: break; } } finally { s.compile(sss); } const ret = Object(match, 1, match, 1); return ret; } let i = 0; while(i < 1024) { foo(); i++; } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 445506: (ChakraCore/lib/Backend/FlowGraph.cpp, line 2064) tryRegion->GetMatchingFinallyRegion(true) != nullptr Failure: (tryRegion->GetMatchingFinallyRegion(true) != nullptr) Illegal instruction (core dumped) ```
ASSERTION 445506: (ChakraCore/lib/Backend/FlowGraph.cpp, line 2064)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6947/comments
0
2023-09-13T08:47:10Z
2023-09-13T08:47:10Z
https://github.com/chakra-core/ChakraCore/issues/6947
1,894,046,088
6,947
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo() { function bar(arg) { switch (bar) { case arg: break; default: let i = 65537; while (i == i) { i += "1"; i--; } break; } } const m = 0; const n = bar(m); const z = n || 9223372036854775806; return z; } let i = 0; while(i < 1024) { foo(); i++; } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 444087: (ChakraCore/lib/Backend/LinearScan.cpp, line 3412) lifetime->start < instr->GetNumber() && lifetime->end >= instr->GetNumber() Failure: (lifetime->start < instr->GetNumber() && lifetime->end >= instr->GetNumber()) Illegal instruction (core dumped) ```
ASSERTION 444087: (ChakraCore/lib/Backend/LinearScan.cpp, line 3412)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6946/comments
0
2023-09-13T08:39:59Z
2023-09-13T08:39:59Z
https://github.com/chakra-core/ChakraCore/issues/6946
1,894,033,581
6,946
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo() { const arr = new Uint32Array(128); let end = 9; for (let i = 0; i < end; i = i + 10) { function bar() {} switch (arr) { case bar: break; default: let j = 5; while (j != 4) { arr[j] = -2918866880; j--; } break; } const x = arr[i]; } } for(let i=0; i<1024; i++) { foo(); } ``` Execute ```shell ./ch ./test.js ``` Error msg: ``` ASSERTION 441828: (ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267) added || failedToUpdateCompatibleUpperBoundCheck Failure: (added || failedToUpdateCompatibleUpperBoundCheck) Illegal instruction (core dumped) ```
ASSERTION 441828: (ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6945/comments
0
2023-09-13T08:30:37Z
2023-09-13T08:30:37Z
https://github.com/chakra-core/ChakraCore/issues/6945
1,894,018,128
6,945
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo() { const v1 = [5]; for (let j = 0; j < 5; j++) { try { } catch(e) { const v16 = 1073741824; const v21 = -1; for (let i = 0; i < 3; i++) { switch (i) { case v21: try { break; } catch(v26) { } finally { } break; } } } } } for(let i=0; i < 0x300; i++) { foo(); } ``` Execute ```shell ./ch --bgjit --oopjit ./test.js ``` Error msg: ``` ASSERTION 2626189: (ChakraCore/lib/Backend/FlowGraph.cpp, line 1832) Bad region type for the try Failure: (predRegion->GetType() == RegionTypeTry) Illegal instruction (core dumped) ```
ASSERTION: ChakraCore/lib/Backend/FlowGraph.cpp, line 1832
https://api.github.com/repos/chakra-core/ChakraCore/issues/6944/comments
0
2023-08-21T02:50:11Z
2023-08-21T02:50:11Z
https://github.com/chakra-core/ChakraCore/issues/6944
1,858,459,033
6,944
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo() { function bar(v1,v2,v3) { } function* baz(v5,v6) { } const a = baz(); bar.__proto__ = a; delete bar.length; for (const i in bar) { z = v14; } bar.length = 0; } for(let i=0; i<0x300; i++) { foo(); } ``` Execute ```shell ./ch --bgjit --oopjit ./test.js ``` Error msg: ``` ASSERTION 2624246: (ChakraCore/lib/Runtime/Types/SimpleTypeHandler.cpp, line 570) !GetIsLocked() Failure: (!GetIsLocked()) Illegal instruction (core dumped) ```
ASSERTION: ChakraCore/lib/Runtime/Types/SimpleTypeHandler.cpp, line 570
https://api.github.com/repos/chakra-core/ChakraCore/issues/6943/comments
0
2023-08-21T02:40:05Z
2023-08-21T02:40:05Z
https://github.com/chakra-core/ChakraCore/issues/6943
1,858,445,462
6,943
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo(){ function bar(a1, a2) { switch (bar) { case a2: const a3 = a1(); break; } } function baz(a1, a2, a3, a4) { const x = a2 && baz; const y = a2.apply(Uint16Array); } const r = baz(Uint16Array, bar, Uint16Array, bar); return r; } for(let i=0; i < 0x200; i++) { foo(); } ``` Execute ```shell ./ch --bgjit --oopjit ./test.js ``` Error msg: ``` ASSERTION 2622358: (ChakraCore/lib/Backend/Inline.cpp, line 1096) defInstr != nullptr Failure: (defInstr != nullptr) Illegal instruction (core dumped) ```
ASSERTION: ChakraCore/lib/Backend/Inline.cpp, line 1096
https://api.github.com/repos/chakra-core/ChakraCore/issues/6942/comments
0
2023-08-21T02:32:39Z
2023-08-21T02:32:39Z
https://github.com/chakra-core/ChakraCore/issues/6942
1,858,439,825
6,942
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f Build cmd: ```shell ./build.sh --debug --static ``` Test case: ```js function foo(){ const x = /\W\s/gmsy; let i = 7; do { const arr = [4294967297]; const ttt = arr.splice(4294967297,4294967297,3); arr[6] = i; const mmm = i.unscopables; const nnn = i++; } while (i < 0); return x; } for(let i=0; i < 0x100; i++) { foo(); } ``` Execute ```shell ./ch --bgjit --oopjit ./test.js ``` Error msg: ``` ASSERTION 2613452: (ChakraCore/lib/Backend/GlobOpt.cpp, line 11384) block->globOptData.IsTypeSpecialized(varSym) Failure: (block->globOptData.IsTypeSpecialized(varSym)) Illegal instruction (core dumped) ```
ASSERTION: ChakraCore/lib/Backend/GlobOpt.cpp, line 11384
https://api.github.com/repos/chakra-core/ChakraCore/issues/6941/comments
0
2023-08-21T01:55:05Z
2023-08-21T01:55:05Z
https://github.com/chakra-core/ChakraCore/issues/6941
1,858,413,626
6,941
[ "chakra-core", "ChakraCore" ]
This is good
Chakra core
https://api.github.com/repos/chakra-core/ChakraCore/issues/6940/comments
0
2023-07-25T22:28:21Z
2024-04-17T15:57:14Z
https://github.com/chakra-core/ChakraCore/issues/6940
1,821,259,119
6,940
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Build cmd: ``` ./build.sh --debug --static ``` test case ```js function foo() { function* zoo(a,...b) { const wind = /[\w]/msuy; for (const item in zoo) { const apple = class Apple { o() { a = b; } }; } } function test() { const x = 10; return x; } const banana = zoo(); for (const i of banana) { const j = i || i; } const ret = test(); return ret; } for(let i=0; i<0x300; i++) { foo(); } ``` top backtrace ``` #0 0x00007ff7f43013d5 in ?? () #1 0x00007fffffff7670 in ?? () #2 0x00007fffffff7678 in ?? () #3 0x00007fffffff7640 in ?? () #4 0x00005555558a26cf in BVUnitT<unsigned long>::Test (this=0x5555557b373e <Js::JavascriptLibrary::GetScriptContext() const+30>, index=32767) at ChakraCore/lib/Common/DataStructures/UnitBitVector.h:288 #5 0x00005555564a370e in amd64_CallFunction () at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #6 0x00005555561d797b in Js::JavascriptFunction::CallFunction<true> (function=0x7ff7f432b230, entryPoint=0x7ff7f4301000, args=..., useLargeArgCount=false) at ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1364 #7 0x00005555561da3bf in Js::JavascriptGenerator::CallGenerator (this=0x7ff7f4329240, data=0x7ff7f4c75030, resumeKind=Js::ResumeYieldKind::Normal) at ChakraCore/lib/Runtime/Library/JavascriptGenerator.cpp:198 #8 0x00005555561dada3 in Js::JavascriptGenerator::EntryNext (function=0x7ff7f443c100, callInfo=...) at ChakraCore/lib/Runtime/Library/JavascriptGenerator.cpp:265 #9 0x00005555564a370e in amd64_CallFunction () at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #10 0x00005555561d797b in Js::JavascriptFunction::CallFunction<true> (function=0x7ff7f443c100, entryPoint=0x5555561da790 <Js::JavascriptGenerator::EntryNext(Js::RecyclableObject*, Js::CallInfo, ...)>, args=..., useLargeArgCount=false) at ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1364 #11 0x0000555555ffc758 in Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7fffffffaed0, playout=0x7ff7f54d518c, function=0x7ff7f443c100, flags=2, spreadIndices=0x0) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3988 ```
Segmentation fault (core dumped) in BVUnitT<unsigned long>::Test
https://api.github.com/repos/chakra-core/ChakraCore/issues/6939/comments
0
2023-07-20T14:29:35Z
2023-07-20T14:29:35Z
https://github.com/chakra-core/ChakraCore/issues/6939
1,814,130,938
6,939
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Build cmd: ``` ./build.sh --debug --static ``` Test case: ```js function foo() { async function bar() { const a = await Function; const b = [321892086]; const c = delete (321892086)[-3805413367]; b[1] = b; } const ret = bar(); return ret; } for(let i=0; i<0x300; i++){ foo(); } ``` top backtrace ``` #0 Js::Type::GetTypeId (this=0x0) at ChakraCore/lib/Jsrt/../Runtime/Types/Type.h:48 #1 0x00005555558a402d in Js::RecyclableObject::GetTypeId (this=0x7ff7e80022d8) at ChakraCore/lib/Jsrt/../Runtime/Types/RecyclableObject.inl:13 #2 0x0000555555a83050 in Js::JavascriptOperators::GetTypeId (obj=0x7ff7e80022d8) at ChakraCore/lib/Runtime/./Language/JavascriptOperators.inl:13 #3 Js::VarIsImpl<Js::JavascriptCopyOnAccessNativeIntArray> (obj=0x7ff7e80022d8) at ChakraCore/lib/Runtime/./Library/JavascriptArray.h:1208 #4 0x0000555555a82f04 in Js::VarIs<Js::JavascriptCopyOnAccessNativeIntArray> (aValue=0x7ff7e80022d8) at ChakraCore/lib/Runtime/./Types/RecyclableObject.h:500 #5 0x0000555555a827f8 in Js::JavascriptOperators::TryFromVar<Js::JavascriptCopyOnAccessNativeIntArray, void> (value=0x7ff7e80022d8) at ChakraCore/lib/Runtime/./Language/JavascriptOperators.h:256 #6 Js::JavascriptLibrary::CheckAndConvertCopyOnAccessNativeIntArray<void*> (instance=0x7ff7e80022d8) at ChakraCore/lib/Runtime/./Library/JavascriptLibrary.inl:51 #7 0x00005555560373d3 in Js::JavascriptOperators::OP_DeleteElementI (instance=0x7ff7e80022d8, index=0x3e105a3ffee00000, scriptContext=0x555557eeab58, propertyOperationFlags=Js::PropertyOperation_None) at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:5336 ```
Segmentation fault (core dumped) in Js::Type::GetTypeId
https://api.github.com/repos/chakra-core/ChakraCore/issues/6938/comments
0
2023-07-20T13:56:29Z
2023-07-20T13:56:29Z
https://github.com/chakra-core/ChakraCore/issues/6938
1,814,060,701
6,938
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit https://github.com/chakra-core/ChakraCore/commit/c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Build cmd: ``` ./build.sh --debug --static ``` Test case: ```js function foo(){ function* bar(a,...b) { let x = 1; for (let i = x; i < 8; i = i + x) { const j = (-536870912)[-2147483648]; } } const m = bar(); const n = Promise.allSettled(m); return m; } for(let i=0; i<0x300; i++){ foo(); } ``` The top backtrace ``` #0 0x00000009ffffffff in ?? () #1 0x00005555558a4064 in Js::RecyclableObject::IsExternal (this=0x7ff7f4371800) at ChakraCore/lib/Jsrt/../Runtime/Types/RecyclableObject.inl:28 #2 0x0000555556032383 in Js::JavascriptOperators::GetTypeId (obj=0x7ff7f4371800) at ChakraCore/lib/Runtime/./Language/JavascriptOperators.inl:14 #3 Js::JavascriptOperators::GetTypeId (aValue=0x7ff7f4371800) at ChakraCore/lib/Runtime/./Language/JavascriptOperators.inl:34 #4 Js::JavascriptOperators::GetElementIIntIndex (instance=0x7ff7f4371800, index=0x1000080000000, scriptContext=0x555557eeab78) at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:3704 #5 0x0000555556031d18 in Js::JavascriptOperators::OP_GetElementI (instance=0x7ff7f4371800, index=0x1000080000000, scriptContext=0x555557eeab78) at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:3996 #6 0x0000555556031cc3 in Js::JavascriptOperators::OP_GetElementI_JIT (instance=0x7ff7f4371800, index=0x1000080000000, ) at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:3637 ```
Segmentation fault (core dumped)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6937/comments
0
2023-07-20T13:30:20Z
2023-07-20T13:30:20Z
https://github.com/chakra-core/ChakraCore/issues/6937
1,814,006,200
6,937
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit https://github.com/chakra-core/ChakraCore/commit/c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Build cmd: ``` ./build.sh --debug --static ``` Test case: ```js function foo(){ async function bar(arg) { const a = 5.0 == 5.0; const b = await arg; (1780181346).valueOf >>>= 0; const c = 1.0 > 1.0; } const ret = bar(); return ret; } for(let i=0;i<0x300;i++){ foo(); } ``` Error msg: ``` ASSERTION 1543856: (ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp, line 1251) bad type object in conversion ToUInt32 Failure: (JavascriptOperators::IsObject(aValue)) Illegal instruction (core dumped) ```
Core dumped ASSERTION 1543856: (ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp, line 1251) bad type object in conversion ToUInt32
https://api.github.com/repos/chakra-core/ChakraCore/issues/6936/comments
0
2023-07-18T08:34:41Z
2023-07-18T08:34:41Z
https://github.com/chakra-core/ChakraCore/issues/6936
1,809,435,161
6,936
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit https://github.com/chakra-core/ChakraCore/commit/c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Build cmd: ``` ./build.sh --debug --static ``` Test case: ```js function test(){ async function foo() { const a = await 159654258; const b = [170151481,170151481]; const c = delete (170151481)[7]; const d = b.splice(c); const e = delete (170151481)[7]; b[1578154960] = b; } const bar = foo(); return bar; } for(let i=0; i<0x300; i++) { test(); } ``` Error msg: ``` ASSERTION 1542080: (ChakraCore/lib/Jsrt/../Runtime/Types/RecyclableObject.h, line 492) VarIs: aValue is null Failure: (aValue != nullptr) Illegal instruction (core dumped) ```
Illegal instruction (core dumped) ASSERTION 1542080: (ChakraCore/lib/Jsrt/../Runtime/Types/RecyclableObject.h, line 492) VarIs: aValue is null
https://api.github.com/repos/chakra-core/ChakraCore/issues/6935/comments
0
2023-07-18T08:25:27Z
2023-07-18T08:25:27Z
https://github.com/chakra-core/ChakraCore/issues/6935
1,809,420,445
6,935
[ "chakra-core", "ChakraCore" ]
ChakraCore version: commit c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Build cmd: ``` ./build.sh --debug --static ``` Test case: ```js function foo() { let x = new Number(Number,Number,Number); const y = []; do { const z = y.length; } while (5 < 5); const t = y.length; t[4294967295] = t; for (let i = -9223372036854775807; i >= y; i = i ** x) { ; } } for(let i=0;i<0x300;i++){ foo(); } ``` Error msg: ``` ASSERTION 1541158: (ChakraCore/lib/Backend/GlobOpt.cpp, line 12838) !isJsArray || DoArrayCheckHoist(valueInfo->Type(), implicitCallsLoop) || ( ignoreKnownImplicitCalls && !(implicitCallsLoop ? ImplicitCallFlagsAllowOpts(implicitCallsLoop) : ImplicitCallFlagsAllowOpts(func)) ) Failure: (!isJsArray || DoArrayCheckHoist(valueInfo->Type(), implicitCallsLoop) || ( ignoreKnownImplicitCalls && !(implicitCallsLoop ? ImplicitCallFlagsAllowOpts(implicitCallsLoop) : ImplicitCallFlagsAllowOpts(func)) )) Illegal instruction (core dumped) ```
Illegal instruction (core dumped) ASSERTION 1541158: (ChakraCore/lib/Backend/GlobOpt.cpp, line 12838) !isJsArray
https://api.github.com/repos/chakra-core/ChakraCore/issues/6934/comments
0
2023-07-18T08:22:06Z
2023-07-18T08:22:06Z
https://github.com/chakra-core/ChakraCore/issues/6934
1,809,414,987
6,934
[ "chakra-core", "ChakraCore" ]
clang version 6.0 cmake version 3.16 Compilation error Scanning dependencies of target Chakra.Pal [ 0%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o In file included from /home/octopus/ChakraCore-1.4.1/pal/src/cruntime/file.cpp:23: In file included from /home/octopus/ChakraCore-1.4.1/pal/src/include/pal/palinternal.h:334: /home/octopus/ChakraCore-1.4.1/pal/inc/pal.h:6484:22: error: definition of builtin function '_rotl' unsigned int __cdecl _rotl(unsigned int value, int shift) ^ /home/octopus/ChakraCore-1.4.1/pal/inc/pal.h:6507:28: error: definition of builtin function '_rotl64' unsigned long long __cdecl _rotl64(unsigned long long value, int shift) ^ /home/octopus/ChakraCore-1.4.1/pal/inc/pal.h:6525:22: error: definition of builtin function '_rotr' unsigned int __cdecl _rotr(unsigned int value, int shift) ^ /home/octopus/ChakraCore-1.4.1/pal/inc/pal.h:6543:28: error: definition of builtin function '_rotr64' unsigned long long __cdecl _rotr64(unsigned long long value, int shift) ^ 4 errors generated. make[2]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/build.make:63:pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o] error 1 make[1]: *** [CMakeFiles/Makefile2:667:pal/src/CMakeFiles/Chakra.Pal.dir/all] error 2 make: *** [Makefile:130:all] error 2 See error details above. Exit code was 2
ubuntu20.04 Failed to compile ChakraCore1.4.1
https://api.github.com/repos/chakra-core/ChakraCore/issues/6933/comments
3
2023-07-13T03:01:49Z
2024-04-25T04:48:02Z
https://github.com/chakra-core/ChakraCore/issues/6933
1,802,066,805
6,933
[ "chakra-core", "ChakraCore" ]
reversion c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 master Build platform Ubuntu 22.04.2 LTS (Linux 5.19.0-43-generic x86_64) Build steps ```sh export CXXFLAGS="-g" export CFLAGS="-g" ./build.sh ./ch poc.js ``` Test case poc.js ```javascript for(;;); ``` Backtrace ```sh #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140702902117952) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=140702902117952) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=140702902117952, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007ffff7242476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007ffff72287f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007ffff728945c in __libc_message (action=do_abort, fmt=0x7ffff73db7b1 "%s", fmt=0x7ffff73db7b1 "%s", action=do_abort) at ../sysdeps/posix/libc_fatal.c:155 #6 0x00007ffff7289770 in __GI___libc_fatal (message=message@entry=0x7ffff73ddd28 "The futex facility returned an unexpected error code.\n") at ../sysdeps/posix/libc_fatal.c:164 #7 0x00007ffff7291368 in futex_fatal_error () at ../sysdeps/nptl/futex-internal.h:87 #8 futex_wait (private=<optimized out>, expected=2, futex_word=0x7ffff7291368 <__GI___lll_lock_wait+88>) at ../sysdeps/nptl/futex-internal.h:162 #9 __GI___lll_lock_wait (futex=futex@entry=0x55555560823a, private=<optimized out>) at ./nptl/lowlevellock.c:49 #10 0x00007ffff72980dd in lll_mutex_lock_optimized (mutex=0x55555560823a) at ./nptl/pthread_mutex_lock.c:48 #11 ___pthread_mutex_lock (mutex=0x55555560823a) at ./nptl/pthread_mutex_lock.c:128 #12 0x00007ffff4a2248a in AutoCriticalSection::AutoCriticalSection (this=<optimized out>, cs=<optimized out>) at /home/dell/ChakaraCore-debug/lib/Common/Core/CriticalSection.h:61 #13 Js::FunctionProxy::GetAuxPtrWithLock (this=0x7ffff749c000, e=Js::FunctionProxy::AuxPointerType::FormalsPropIdArray) at /home/dell/ChakaraCore-debug/lib/Runtime/Base/FunctionBody.cpp:132 #14 Js::FunctionProxy::GetAuxPtrWithLock<(Js::FunctionProxy::AuxPointerType)21, Js::PropertyIdArray*> (this=0x7ffff749c000) at /home/dell/ChakaraCore-debug/lib/Runtime/./Base/FunctionBody.h:977 #15 Js::FunctionBody::GetFormalsPropIdArray (this=0x7ffff749c000, checkForNull=173) at /home/dell/ChakaraCore-debug/lib/Runtime/Base/FunctionBody.cpp:1052 #16 0x00007ffff4928e89 in JITTimeFunctionBody::InitializeJITFunctionData (arena=0x7ff7f27fdb98, functionBody=0x7ffff749c000, jitBody=0x7ffff74500e0) at /home/dell/ChakaraCore-debug/lib/Backend/JITTimeFunctionBody.cpp:211 #17 0x00007ffff4866bef in FunctionJITTimeInfo::BuildJITTimeData (alloc=<optimized out>, codeGenData=0x7ffff785c140, runtimeData=<optimized out>, jitData=0x7ffff7450030, isInlinee=84, isForegroundJIT=<optimized out>) at /home/dell/ChakaraCore-debug/lib/Backend/FunctionJITTimeInfo.cpp:41 #18 0x00007ffff497d83c in NativeCodeGenerator::CodeGen (this=this@entry=0x5555555f4020, pageAllocator=pageAllocator@entry=0x555555630450, workItem=workItem@entry=0x555555638f00, foreground=false) at /home/dell/ChakaraCore-debug/lib/Backend/NativeCodeGenerator.cpp:981 #19 0x00007ffff497e1cf in NativeCodeGenerator::Process (this=0x5555555f4020, job=<optimized out>, threadData=0x555555630430) at /home/dell/ChakaraCore-debug/lib/Backend/NativeCodeGenerator.cpp:1863 #20 0x00007ffff49bda27 in JsUtil::BackgroundJobProcessor::Process (job=0x555555638f08, threadData=0x555555630430, this=<optimized out>) at /home/dell/ChakaraCore-debug/lib/Common/Common/Jobs.cpp:1037 #21 JsUtil::BackgroundJobProcessor::Run (this=this@entry=0x5555555f5180, threadData=threadData@entry=0x555555630430) at /home/dell/ChakaraCore-debug/lib/Common/Common/Jobs.cpp:1135 #22 0x00007ffff49bc9e7 in JsUtil::BackgroundJobProcessor::StaticThreadProc (lpParam=0x555555630430) at /home/dell/ChakaraCore-debug/lib/Common/Common/Jobs.cpp:1319 #23 0x00007ffff47e10e5 in CorUnix::CPalThread::ThreadEntry (pvParam=0x5555556307c0) at /home/dell/ChakaraCore-debug/pal/src/thread/pal_thread.cpp:1554 #24 0x00007ffff7294b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #25 0x00007ffff7326a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 ```
Futex_fatal_error in ./nptl/pthread_mutex_lock.c
https://api.github.com/repos/chakra-core/ChakraCore/issues/6931/comments
3
2023-06-26T09:01:04Z
2024-04-17T20:23:09Z
https://github.com/chakra-core/ChakraCore/issues/6931
1,774,283,592
6,931
[ "chakra-core", "ChakraCore" ]
### Version Branch: `master` commit: `c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 ` ### Poc is: ``` function module(stdlib) { "use asm" var fr = stdlib.Math.fround; function foo() { var s = fr(10.5); var i = fr(20); var g = fr(30); var h = fr(42.42); var j = fr(19.5); var c = 125.5 i = fr(s - i); g = fr(g/s); c = +j; h = fr(s*h); s = fr(+j); return fr(fr(s + i) +fr( g + h )); } return foo; } var x = module({Math:Math}); WScript.Echo(module()); WScript.Echo(x()); ``` ### Build In release build `./build.sh --sanitize=address --static -j ` ### Execute the poc I get ``` Aborted. ``` ### Backtrace ``` The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/tangsong/engines/all_version/ChakraCore/ChakraCore-2023-6/sanitize/ch /home/tangsong/FuzzingOut/Superion/ch_crashes/ch_06/id:000000,sig:06,src:000060,op:python,pos:0 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff7f0b67700 (LWP 24070)] [New Thread 0x7ff7ebfff700 (LWP 24071)] [New Thread 0x7ff7eb7fe700 (LWP 24092)] Thread 1 "ch" received signal SIGILL, Illegal instruction. 0x0000555555cd6bb9 in DebugBreak () at /root/ChakraCore-2023-6/lib/Common/CommonPal.h:161 161 in /root/ChakraCore-2023-6/lib/Common/CommonPal.h (gdb) bt #0 0x0000555555cd6bb9 in DebugBreak () at /root/ChakraCore-2023-6/lib/Common/CommonPal.h:161 #1 ReportFatalException (context=<optimized out>, exceptionCode=<optimized out>, reasonCode=<optimized out>, scenario=<optimized out>) at /root/ChakraCore-2023-6/lib/Common/Exceptions/ReportError.cpp:20 #2 0x0000555555cd6fb7 in OutOfMemory_unrecoverable_error () at /root/ChakraCore-2023-6/lib/Common/Exceptions/ReportError.cpp:145 #3 0x00005555578c8dfa in Js::Exception::RaiseIfScriptActive (scriptContext=0x0, kind=0, returnAddress=0x0) at /root/ChakraCore-2023-6/lib/Runtime/Base/Exception.cpp:20 #4 0x0000555555cd7539 in Js::Throw::OutOfMemory () at /root/ChakraCore-2023-6/lib/Common/Exceptions/Throw.cpp:122 #5 0x000055555645c3e0 in Js::InterpreterStackFrame::ProcessLinkFailedAsmJsModule (this=0x7fffffffbaa0) at /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2910 #6 0x00005555564594ec in Js::InterpreterStackFrame::ProcessAsmJsModule (this=<optimized out>) at /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1567 #7 0x0000555556418595 in Js::InterpreterStackFrame::Process (this=0x7fffffffbaa0) at /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3451 #8 0x0000555556415264 in Js::InterpreterStackFrame::InterpreterHelper (function=<optimized out>, args=<error reading variable: Cannot access memory at address 0x0>, returnAddress=<optimized out>, addressOfReturnAddress=<optimized out>, asmJsReturn=0x0) at /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2153 #9 0x0000555556413d7d in Js::InterpreterStackFrame::InterpreterThunk (layout=<optimized out>) at /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833 #10 0x00007ffff2050f9a in ?? () #11 0x00007fffffffbf70 in ?? () #12 0x00005555571bf75e in amd64_CallFunction () at /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 Backtrace stopped: frame did not save the PC ```
Aborted in lib/Common/CommonPal.h
https://api.github.com/repos/chakra-core/ChakraCore/issues/6930/comments
0
2023-06-26T03:10:44Z
2023-06-26T03:10:44Z
https://github.com/chakra-core/ChakraCore/issues/6930
1,773,755,307
6,930
[ "chakra-core", "ChakraCore" ]
Branch: `master` commit: `c3ead3f8a6e0bb8e32e043adc091c68cba5935e9` Poc is: ``` var a = []; for(var i = 0; i < 0xffff*500*10; ++i) a[i] = i; ``` In release build `./build.sh --sanitize=address --static -j ` I get ``` ================================================================= ==59840==ERROR: LeakSanitizer: detected memory leaks Direct leak of 8 byte(s) in 1 object(s) allocated from: #0 0x564cfa488b40 in malloc (/home/tangsong/engines/all_version/ChakraCore/ChakraCore-2023-6/sanitize/ch+0x386b40) #1 0x564cfa89d4bf in char* Memory::HeapAllocator::AllocT<false>(unsigned long) /root/ChakraCore-2023-6/lib/Common/Memory/HeapAllocator.cpp:86:30 #2 0x564cfc3fd3d5 in Memory::HeapAllocator::Alloc(unsigned long) /root/ChakraCore-2023-6/lib/Common/Memory/HeapAllocator.h:153:16 #3 0x564cfc3fd3d5 in Memory::HeapAllocator::AllocZero(unsigned long) /root/ChakraCore-2023-6/lib/Common/Memory/HeapAllocator.h:171 #4 0x564cfc3fd3d5 in void* operator new<Memory::HeapAllocator>(unsigned long, Memory::HeapAllocator*, char* (Memory::HeapAllocator::*)(unsigned long)) /root/ChakraCore-2023-6/lib/Common/DataStructures/../Memory/Allocator.h:486 #5 0x564cfc3fd3d5 in NativeCodeGenerator::CodeGen(Memory::PageAllocatorBase<Memory::VirtualAllocWrapper, Memory::SegmentBase<Memory::VirtualAllocWrapper>, Memory::PageSegmentBase<Memory::VirtualAllocWrapper>>*, CodeGenWorkItem*, bool) /root/ChakraCore-2023-6/lib/Backend/NativeCodeGenerator.cpp:1133 #6 0x564cfc3fffb4 in NativeCodeGenerator::Process(JsUtil::Job*, JsUtil::ParallelThreadData*) /root/ChakraCore-2023-6/lib/Backend/NativeCodeGenerator.cpp #7 0x564cfc4464e3 in JsUtil::BackgroundJobProcessor::Process(JsUtil::Job*, JsUtil::ParallelThreadData*) /root/ChakraCore-2023-6/lib/Common/Common/Jobs.cpp:1037:36 #8 0x564cfc446b6d in JsUtil::BackgroundJobProcessor::Run(JsUtil::ParallelThreadData*) /root/ChakraCore-2023-6/lib/Common/Common/Jobs.cpp:1135:44 #9 0x564cfc43fc93 in JsUtil::BackgroundJobProcessor::StaticThreadProc(void*) /root/ChakraCore-2023-6/lib/Common/Common/Jobs.cpp:1319:20 #10 0x564cfa61aadb in CorUnix::CPalThread::ThreadEntry(void*) /root/ChakraCore-2023-6/pal/src/thread/pal_thread.cpp:1554:16 #11 0x564cfa49676e in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (/home/tangsong/engines/all_version/ChakraCore/ChakraCore-2023-6/sanitize/ch+0x39476e) SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s). ```
ERROR: LeakSanitizer: detected memory leaks
https://api.github.com/repos/chakra-core/ChakraCore/issues/6929/comments
0
2023-06-26T02:49:02Z
2023-06-26T02:49:02Z
https://github.com/chakra-core/ChakraCore/issues/6929
1,773,735,271
6,929
[ "chakra-core", "ChakraCore" ]
### Version Branch: `master` commit: `c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 ` ### Poc is: ``` function attach(f) { (function (r) { WScript.Attach(r); })(f); } async function mainTest(notAttachCall) { if (notAttachCall) { for (let i = 0; i < 1; ++i) { await attach(mainTest); } } else write(attach + " " + arguments[0]); } mainTest(true); WScript.Echo("PASSED"); ``` ### Build In release build `./build.sh --sanitize=address --static -j ` ### Execute the poc I get ``` PASSED Aborted core dump. ``` ### Backtrace ``` [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff7f0b67700 (LWP 22819)] [New Thread 0x7ff7ebfff700 (LWP 22824)] [New Thread 0x7ff7eb7fe700 (LWP 22825)] PASSED Thread 1 "ch" received signal SIGILL, Illegal instruction. 0x0000555555cd6bb9 in DebugBreak () at /root/ChakraCore-2023-6/lib/Common/CommonPal.h:161 161 /root/ChakraCore-2023-6/lib/Common/CommonPal.h: No such file or directory. (gdb) bt #0 0x0000555555cd6bb9 in DebugBreak () at /root/ChakraCore-2023-6/lib/Common/CommonPal.h:161 #1 ReportFatalException (context=<optimized out>, exceptionCode=<optimized out>, reasonCode=<optimized out>, scenario=<optimized out>) at /root/ChakraCore-2023-6/lib/Common/Exceptions/ReportError.cpp:20 #2 0x0000555555cd7319 in Js::Throw::FatalInternalError (hr=0) at /root/ChakraCore-2023-6/lib/Common/Exceptions/Throw.cpp:72 #3 0x000055555616f655 in Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}::operator()(Js::FunctionBody*) const (pFuncBody=<optimized out>, this=<optimized out>) at /root/ChakraCore-2023-6/lib/Runtime/Debug/DebugContext.cpp:359 #4 void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}::operator()(unsigned int, Js::FunctionBody*) const ( this=<optimized out>, functionBody=<optimized out>) at /root/ChakraCore-2023-6/lib/Runtime/./Base/Utf8SourceInfo.h:163 #5 void JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::Map<void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int const&, Js::FunctionBody* const&)#1}::operator()(void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}, unsigned int const&) const (this=<optimized out>, key=<optimized out>, value=<optimized out>) at /root/ChakraCore-2023-6/lib/Common/DataStructures/BaseDictionary.h:579 #6 bool JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::MapUntil<void JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::Map<void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int const&, Js::FunctionBody* const&)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(JsUtil::SimpleDictionaryEntry<unsigned int, Memory::WriteBarrierPtr<Js::FunctionBody> > const&)#1}::operator()(Memory::WriteBarrierPtr<Js::FunctionBody>) const (this=<optimized out>, entry=...) at /root/ChakraCore-2023-6/lib/Common/DataStructures/BaseDictionary.h:589 #7 JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::MapEntryUntil<bool JsUtil::BaseDictionary<unsigned int, Js::Func---------------Type <return> to continue, or q <return> to quit--- tionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::MapUntil<void JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::Map<void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int const&, Js::FunctionBody* const&)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(JsUtil::SimpleDictionaryEntry<unsigned int, Memory::WriteBarrierPtr<Js::FunctionBody> > const&)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const (this=<optimized out>, fn=...) at /root/ChakraCore-2023-6/lib/Common/DataStructures/BaseDictionary.h:755 #8 JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::MapUntil<void JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::Map<void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int const&, Js::FunctionBody* const&)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const ( this=<optimized out>, fn=...) at /root/ChakraCore-2023-6/lib/Common/DataStructures/BaseDictionary.h:587 #9 JsUtil::BaseDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, JsUtil::NoResizeLock>::Map<void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const ( this=<optimized out>, fn=...) at /root/ChakraCore-2023-6/lib/Common/DataStructures/BaseDictionary.h:577 #10 JsUtil::SynchronizedDictionary<unsigned int, Js::FunctionBody*, Memory::RecyclerLeafAllocator, DictionarySizePolicy<PowerOf2Policy, 2u, 2u, 1u, 4u>, DefaultComparer, JsUtil::SimpleDictionaryEntry, Js::DefaultContainerLockPolicy, CriticalSection>::Map<void Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const::{lambda(unsigned int, Js::FunctionBody*)#1}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const (this=0x7ffff20e9f00, fn=...) at /root/ChakraCore-2023-6/lib/Common/DataStructures/BaseDictionary.h:1840 #11 Js::Utf8SourceInfo::MapFunction<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const::{lambda(Js::FunctionBody*)#3}) const (this=<optimized out>, mapper=...) at /root/ChakraCore-2023-6/lib/Runtime/./Base/Utf8SourceInfo.h:161 ---Type <return> to continue, or q <return> to quit---return #12 Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1::operator()(int, Js::Utf8SourceInfo*) const (index=0, this=<optimized out>, sourceInfo=<optimized out>) at /root/ChakraCore-2023-6/lib/Runtime/Debug/DebugContext.cpp:352 #13 JsUtil::List<Js::Utf8SourceInfo*, Memory::Recycler, false, Js::CopyRemovePolicy, RecyclerPointerComparer>::MapUntilFrom<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1>(int, Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1) const (start=0, this=<optimized out>, map=...) at /root/ChakraCore-2023-6/lib/Common/DataStructures/List.h:531 #14 JsUtil::List<Js::Utf8SourceInfo*, Memory::Recycler, false, Js::CopyRemovePolicy, RecyclerPointerComparer>::MapUntil<Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1>(Js::DebugContext::RundownSourcesAndReparse(bool, bool)::$_1) const (this=<optimized out>, map=...) at /root/ChakraCore-2023-6/lib/Common/DataStructures/List.h:521 #15 Js::DebugContext::RundownSourcesAndReparse (this=<optimized out>, shouldPerformSourceRundown=true, shouldReparseFunctions=<optimized out>) at /root/ChakraCore-2023-6/lib/Runtime/Debug/DebugContext.cpp:224 #16 0x0000555555ef7853 in Js::ScriptContext::OnDebuggerAttached (this=<optimized out>) at /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:3658 #17 0x0000555555c2a54b in JsDiagStartDebugging::$_0::operator() (this=<optimized out>) at /root/ChakraCore-2023-6/lib/Jsrt/JsrtDiag.cpp:96 #18 _JsErrorCode GlobalAPIWrapper_NoRecord<JsDiagStartDebugging::$_0>(JsDiagStartDebugging::$_0)::{lambda()#1}::operator()() const ( this=<optimized out>) at /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:167 #19 GlobalAPIWrapper_Core<_JsErrorCode GlobalAPIWrapper_NoRecord<JsDiagStartDebugging::$_0>(JsDiagStartDebugging::$_0)::{lambda()#1}>(_JsErrorCode GlobalAPIWrapper_NoRecord<JsDiagStartDebugging::$_0>(JsDiagStartDebugging::$_0)::{lambda()#1}) (fn=...) at /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:127 #20 GlobalAPIWrapper_NoRecord<JsDiagStartDebugging::$_0> (fn=...) at /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:165 #21 JsDiagStartDebugging (runtimeHandle=<optimized out>, debugEventCallback=0x61a000000680, callbackState=0x603000000101) at /root/ChakraCore-2023-6/lib/Jsrt/JsrtDiag.cpp:54 #22 0x0000555555926f00 in ChakraRTInterface::JsDiagStartDebugging (runtimeHandle=0x0, debugEventCallback=0x0, callbackState=0x6030000013c0) at /root/ChakraCore-2023-6/bin/ch/ChakraRtInterface.h:444 #23 Debugger::StartDebugging (this=0x6030000013c0, runtime=0x0) at /root/ChakraCore-2023-6/bin/ch/Debugger.cpp:404 #24 0x00005555559557cb in WScriptJsrt::AttachCallback(void*, bool, void**, unsigned short, void*)::$_1::operator()(WScriptJsrt::CallbackMessage&) const (this=<optimized out>, msg=...) at /root/ChakraCore-2023-6/bin/ch/WScriptJsrt.cpp:960 #25 CustomMessage<WScriptJsrt::AttachCallback(void*, bool, void**, unsigned short, void*)::$_1(WScriptJsrt::CallbackMessage)>::Call(char const*) (this=<optimized out>, fileName=<optimized out>) at /root/ChakraCore-2023-6/bin/ch/MessageQueue.h:281 #26 0x00005555559191ad in MessageQueue::ProcessAll (this=<optimized out>, fileName=<optimized out>) at /root/ChakraCore-2023-6/bin/ch/MessageQueue.h:256 #27 RunScript (fileName=0x612000000040 "/home/tangsong/FuzzingOut/Superion/ch_crashes/ch_06/id:000000,sig:06,src:000055,op:python,pos:0", fileContents=<optimized out>, fileLength=0, fileContentsFinalizeCallback=0x555555937160 <WScriptJsrt::FinalizeFree(void*)>, bufferValue=0x7fffffffd7d0, fullPath=0x7fff00000000 "", parserStateCache=<optimized out>) at /root/ChakraCore-2023-6/bin/ch/ch.cpp:480 #28 0x000055555591d991 in ExecuteTest (fileName=<optimized out>) at /root/ChakraCore-2023-6/bin/ch/ch.cpp:917 ---Type <return> to continue, or q <return> to quit---return #29 0x000055555591f178 in ExecuteTestWithMemoryCheck (fileName=0x0) at /root/ChakraCore-2023-6/bin/ch/ch.cpp:967 #30 main (argc=<optimized out>, c_argv=0xffffffffb9e) at /root/ChakraCore-2023-6/bin/ch/ch.cpp:1274 ```
Program crashed, Aborted
https://api.github.com/repos/chakra-core/ChakraCore/issues/6928/comments
0
2023-06-26T02:27:07Z
2023-06-26T02:31:49Z
https://github.com/chakra-core/ChakraCore/issues/6928
1,773,701,283
6,928
[ "chakra-core", "ChakraCore" ]
Branch: `master` commit: `c3ead3f8a6e0bb8e32e043adc091c68cba5935e9` Poc is: ``` function Run() { function test1() { var a = Date(); /**bp:locals();resume('step_over');locals();resume('step_over');locals()**/ WScript.Echo("Pass") + WScript.SetTimeout("1", 10); } test1(); Array.prototype.ucase = function () { for(var i =0; i < WScript.Attach(Run).length;i++) { this[i] = this[i].toUpperCase(); } } function test2() { var arr = new Array("a","b"); /**bp:locals();resume('step_over');locals();resume('step_over');locals();resume('step_over');locals();resume('step_over');locals();resume('step_over');locals()**/ arr.push("c"); var str = arr.join(); arr.ucase(); var str1 = "All caps " + arr.join(); } test2(); } WScript.Attach(Run); ``` In release build `./build.sh --sanitize=address --static -j ` I get ``` ==25576==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffef183a2c0 at pc 0x55fa270430bf bp 0x7ffef1833ff0 sp 0x7ffef1833fe8 READ of size 8 at 0x7ffef183a2c0 thread T0 #0 0x55fa270430be in Js::FunctionInfo::HasBody() const /root/ChakraCore-2023-6/lib/Runtime/./Base/FunctionInfo.h:88:39 #1 0x55fa270430be in Js::JavascriptFunction::IsScriptFunction() const /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:96 #2 0x55fa265fa4c4 in Js::VariableWalkerBase::GetReturnedValueResolvedObject(Js::ReturnedValue*, Js::DiagStackFrame*, Js::ResolvedObject*) /root/ChakraCore-2023-6/lib/Runtime/Debug/DiagObjectModel.cpp:224:46 #3 0x55fa25fbbfc3 in JsrtDebuggerStackFrame::GetLocalsObject(Js::ScriptContext*) /root/ChakraCore-2023-6/lib/Jsrt/JsrtDebuggerObject.cpp:371:25 #4 0x55fa260acda1 in JsDiagGetStackProperties::$_14::operator()(Js::ScriptContext*) const /root/ChakraCore-2023-6/lib/Jsrt/JsrtDiag.cpp:679:63 #5 0x55fa260acda1 in _JsErrorCode ContextAPIWrapper_NoRecord<false, JsDiagGetStackProperties::$_14>(JsDiagGetStackProperties::$_14)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:252 #6 0x55fa260acda1 in _JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper_NoRecord<false, JsDiagGetStackProperties::$_14>(JsDiagGetStackProperties::$_14)::'lambda'(Js::ScriptContext*)>(JsDiagGetStackProperties::$_14) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:192 #7 0x55fa260acda1 in _JsErrorCode ContextAPIWrapper_NoRecord<false, JsDiagGetStackProperties::$_14>(JsDiagGetStackProperties::$_14) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:250 #8 0x55fa260acda1 in JsDiagGetStackProperties /root/ChakraCore-2023-6/lib/Jsrt/JsrtDiag.cpp:658 #9 0x55fa25d9586c in ChakraRTInterface::JsDiagGetStackProperties(unsigned int, void**) /root/ChakraCore-2023-6/bin/ch/ChakraRtInterface.h:457:120 #10 0x55fa25d9586c in Debugger::GetStackProperties(void*, bool, void**, unsigned short, void*) /root/ChakraCore-2023-6/bin/ch/Debugger.cpp:134 #11 0x55fa2704074d in Js::JavascriptExternalFunction::StdCallExternalFunctionThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptExternalFunction.cpp:305:26 #12 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #13 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #14 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #15 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #16 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #17 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #18 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #19 0x55fa2705d4a0 in void* Js::JavascriptFunction::CalloutHelper<false>(Js::RecyclableObject*, void*, void*, void*, Js::ScriptContext*) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:576:20 #20 0x55fa27047110 in Js::JavascriptFunction::EntryApply(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:462:20 #21 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #22 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #23 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #24 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #25 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #26 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #27 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #28 0x55fa26c3cf74 in void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3988:54 #29 0x55fa26c3c5ec in void Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:4016:9 #30 0x55fa26963dcf in void Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:520:115 #31 0x55fa26963dcf in Js::InterpreterStackFrame::ProcessProfiled() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterHandler.inl:91 #32 0x55fa2688b2be in Js::InterpreterStackFrame::Process() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3472:20 #33 0x55fa26888263 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2153:40 #34 0x55fa26886d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #35 0x7f1ef66e1f41 (<unknown module>) #36 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #37 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #38 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #39 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #40 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #41 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #42 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #43 0x55fa26c38a74 in void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3988:54 #44 0x55fa26c380ec in void Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:4016:9 #45 0x55fa26964b32 in void Js::InterpreterStackFrame::OP_ProfiledCallI<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:515:104 #46 0x55fa26964b32 in Js::InterpreterStackFrame::ProcessProfiled() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterHandler.inl:87 #47 0x55fa2688b2be in Js::InterpreterStackFrame::Process() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3472:20 #48 0x55fa26888263 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2153:40 #49 0x55fa26886d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #50 0x7f1ef66e1ec1 (<unknown module>) #51 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #52 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #53 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #54 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #55 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #56 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #57 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #58 0x55fa2705d4a0 in void* Js::JavascriptFunction::CalloutHelper<false>(Js::RecyclableObject*, void*, void*, void*, Js::ScriptContext*) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:576:20 #59 0x55fa27047110 in Js::JavascriptFunction::EntryApply(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:462:20 #60 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #61 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #62 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #63 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #64 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #65 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #66 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #67 0x55fa26c3cf74 in void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3988:54 #68 0x55fa26c3c5ec in void Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:4016:9 #69 0x55fa26963dcf in void Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:520:115 #70 0x55fa26963dcf in Js::InterpreterStackFrame::ProcessProfiled() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterHandler.inl:91 #71 0x55fa2688b2be in Js::InterpreterStackFrame::Process() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3472:20 #72 0x55fa26888263 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2153:40 #73 0x55fa26886d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #74 0x7f1ef66e1ef1 (<unknown module>) #75 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #76 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #77 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #78 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #79 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #80 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #81 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #82 0x55fa26c38cf2 in void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3973:21 #83 0x55fa26c380ec in void Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:4016:9 #84 0x55fa26964b32 in void Js::InterpreterStackFrame::OP_ProfiledCallI<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:515:104 #85 0x55fa26964b32 in Js::InterpreterStackFrame::ProcessProfiled() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterHandler.inl:87 #86 0x55fa2688b2be in Js::InterpreterStackFrame::Process() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3472:20 #87 0x55fa26888263 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2153:40 #88 0x55fa26886d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #89 0x7f1ef66e1f01 (<unknown module>) #90 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #91 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #92 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #93 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #94 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #95 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #96 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #97 0x55fa2705d4a0 in void* Js::JavascriptFunction::CalloutHelper<false>(Js::RecyclableObject*, void*, void*, void*, Js::ScriptContext*) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:576:20 #98 0x55fa27047110 in Js::JavascriptFunction::EntryApply(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:462:20 #99 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #100 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #101 0x55fa2636f000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #102 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #103 0x55fa2636f000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #104 0x55fa2636f000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #105 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #106 0x55fa26c3cf74 in void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3988:54 #107 0x55fa26c3c5ec in void Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:4016:9 #108 0x55fa26963dcf in void Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:520:115 #109 0x55fa26963dcf in Js::InterpreterStackFrame::ProcessProfiled() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterHandler.inl:91 #110 0x55fa2688b2be in Js::InterpreterStackFrame::Process() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3472:20 #111 0x55fa26888263 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2153:40 #112 0x55fa26886d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #113 0x7f1ef66e1f09 (<unknown module>) #114 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #115 0x55fa263725b7 in Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&)::$_11::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4754:24 #116 0x55fa263725b7 in void* Js::HelperOrLibraryMethodWrapper<true, Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&)::$_11>(Js::ScriptContext*, Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&)::$_11) /root/ChakraCore-2023-6/lib/Runtime/./Debug/DiagHelperMethodWrapper.h:53 #117 0x55fa263725b7 in Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4751 #118 0x55fa2636ee79 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4660:27 #119 0x55fa2636ee79 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #120 0x55fa2636ee79 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #121 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #122 0x55fa27049096 in Js::JavascriptFunction::CallRootFunctionInternal(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:772:24 #123 0x55fa27048c7e in Js::JavascriptFunction::CallRootFunction(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:717:15 #124 0x55fa27048c7e in Js::JavascriptFunction::CallRootFunction(Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:832 #125 0x55fa25f379c0 in JsCallFunction::$_65::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2842:41 #126 0x55fa25f379c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:237 #127 0x55fa25f379c0 in _JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:192 #128 0x55fa25f379c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:235 #129 0x55fa25f379c0 in JsCallFunction /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2804 #130 0x55fa25d99748 in ChakraRTInterface::JsCallFunction(void*, void**, unsigned short, void**) /root/ChakraCore-2023-6/bin/ch/ChakraRtInterface.h:416:149 #131 0x55fa25d99748 in Debugger::CallFunction(char const*, void**, void*, void*) /root/ChakraCore-2023-6/bin/ch/Debugger.cpp:386 #132 0x55fa25d93751 in Debugger::CallFunctionNoResult(char const*, void*, void*) /root/ChakraCore-2023-6/bin/ch/Debugger.cpp:394:18 #133 0x55fa25d93751 in Debugger::HandleDebugEvent(_JsDiagDebugEvent, void*) /root/ChakraCore-2023-6/bin/ch/Debugger.cpp:443 #134 0x55fa25fa8973 in JsrtDebugManager::CallDebugEventCallback(_JsDiagDebugEvent, Js::DynamicObject*, Js::ScriptContext*, bool)::$_2::operator()() const /root/ChakraCore-2023-6/lib/Jsrt/JsrtDebugManager.cpp:419:13 #135 0x55fa25fa8973 in JsrtDebugManager::CallDebugEventCallback(_JsDiagDebugEvent, Js::DynamicObject*, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Jsrt/JsrtDebugManager.cpp:431 #136 0x55fa25faacc2 in JsrtDebugManager::CallDebugEventCallbackForBreak(_JsDiagDebugEvent, Js::DynamicObject*, Js::ScriptContext*) /root/ChakraCore-2023-6/lib/Jsrt/JsrtDebugManager.cpp:445:11 #137 0x55fa25fa6432 in JsrtDebugManager::ReportBreak(Js::InterpreterHaltState*) /root/ChakraCore-2023-6/lib/Jsrt/JsrtDebugManager.cpp:293:15 #138 0x55fa25fa5c0e in JsrtDebugManager::DispatchHalt(Js::InterpreterHaltState*) /root/ChakraCore-2023-6/lib/Jsrt/JsrtDebugManager.cpp #139 0x55fa266618ca in Js::ProbeContainer::DispatchStepHandler(Js::InterpreterHaltState*, Js::OpCode*)::$_1::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Debug/ProbeContainer.cpp:285:40 #140 0x55fa266618ca in void TryFinally<Js::ProbeContainer::DispatchStepHandler(Js::InterpreterHaltState*, Js::OpCode*)::$_1, Js::ProbeContainer::DispatchStepHandler(Js::InterpreterHaltState*, Js::OpCode*)::$_2>(Js::ProbeContainer::DispatchStepHandler(Js::InterpreterHaltState*, Js::OpCode*)::$_1 const&, Js::ProbeContainer::DispatchStepHandler(Js::InterpreterHaltState*, Js::OpCode*)::$_2 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #141 0x55fa266618ca in Js::ProbeContainer::DispatchStepHandler(Js::InterpreterHaltState*, Js::OpCode*) /root/ChakraCore-2023-6/lib/Runtime/Debug/ProbeContainer.cpp:270 #142 0x55fa268abc1f in Js::InterpreterStackFrame::ProcessWithDebugging() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterLoop.inl:217:82 #143 0x55fa2688a7ff in Js::InterpreterStackFrame::DebugProcess() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2517:34 #144 0x55fa26888543 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2143:40 #145 0x55fa26886d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #146 0x7f1ef66e0f99 (<unknown module>) #147 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #148 0x55fa2636f3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const::'lambda'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4681:36 #149 0x55fa2636f3f2 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const::'lambda'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const::'lambda'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #150 0x55fa2636f3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4678 #151 0x55fa2636f3f2 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'(), Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'(bool)>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'() const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'(bool) const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #152 0x55fa2636f3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4676 #153 0x55fa2636f3f2 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #154 0x55fa2636f3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #155 0x55fa2763275d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #156 0x55fa27049096 in Js::JavascriptFunction::CallRootFunctionInternal(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:772:24 #157 0x55fa27048c7e in Js::JavascriptFunction::CallRootFunction(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:717:15 #158 0x55fa27048c7e in Js::JavascriptFunction::CallRootFunction(Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:832 #159 0x55fa25f379c0 in JsCallFunction::$_65::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2842:41 #160 0x55fa25f379c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:237 #161 0x55fa25f379c0 in _JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:192 #162 0x55fa25f379c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:235 #163 0x55fa25f379c0 in JsCallFunction /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2804 #164 0x55fa25dc34ee in ChakraRTInterface::JsCallFunction(void*, void**, unsigned short, void**) /root/ChakraCore-2023-6/bin/ch/ChakraRtInterface.h:416:149 #165 0x55fa25dc34ee in WScriptJsrt::CallbackMessage::CallFunction(char const*) /root/ChakraCore-2023-6/bin/ch/WScriptJsrt.cpp:2009 #166 0x55fa25dc87e2 in WScriptJsrt::AttachCallback(void*, bool, void**, unsigned short, void*)::$_1::operator()(WScriptJsrt::CallbackMessage&) const /root/ChakraCore-2023-6/bin/ch/WScriptJsrt.cpp:963:20 #167 0x55fa25dc87e2 in CustomMessage<WScriptJsrt::AttachCallback(void*, bool, void**, unsigned short, void*)::$_1, WScriptJsrt::CallbackMessage>::Call(char const*) /root/ChakraCore-2023-6/bin/ch/MessageQueue.h:281 #168 0x55fa25d8c1ac in MessageQueue::ProcessAll(char const*) /root/ChakraCore-2023-6/bin/ch/MessageQueue.h:256:18 #169 0x55fa25d8c1ac in RunScript(char const*, char const*, unsigned long, void (*)(void*), void*, char*, void*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:480 #170 0x55fa25d90990 in ExecuteTest(char const*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:917:13 #171 0x55fa25d92177 in ExecuteTestWithMemoryCheck(char*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:967:10 #172 0x55fa25d92177 in main /root/ChakraCore-2023-6/bin/ch/ch.cpp:1274 #173 0x7f1efad56c86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310 #174 0x55fa25c8dc69 in _start (/home/tangsong/engines/all_version/ChakraCore/ChakraCore-2023-6/sanitize/ch+0x2c6c69) Address 0x7ffef183a2c0 is located in stack of thread T0 at offset 640 in frame #0 0x55fa2695a10f in Js::InterpreterStackFrame::ProcessProfiled() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterLoop.inl:161 This frame has 17 object(s): [32, 40) 'thisVar.i' [64, 70) 'ldElemInfo.i' [96, 112) 'agg.tmp36.i.i' [128, 144) 'agg.tmp2.i.i.i.i3218' [160, 176) 'agg.tmp2.i.i.i.i3200' [192, 208) 'agg.tmp2.i.i.i.i3177' [224, 240) 'agg.tmp2.i.i.i.i' [256, 272) 'agg.tmp2.i.i.i' [288, 352) 'info.i.i2935' [384, 448) 'info.i.i2894' [480, 544) 'info.i.i2858' [576, 640) 'info.i.i2828' <== Memory access at offset 640 overflows this variable [672, 736) 'info.i.i' [768, 776) 'ip.addr.i' [800, 808) 'ip' (line 185) [832, 840) 'yieldValue' (line 363) [864, 872) 'yieldValue1491' (line 372) HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow /root/ChakraCore-2023-6/lib/Runtime/./Base/FunctionInfo.h:88:39 in Js::FunctionInfo::HasBody() const Shadow bytes around the buggy address: 0x10005e2ff400: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 0x10005e2ff410: f8 f2 f2 f2 f8 f8 f2 f2 f8 f8 f2 f2 f8 f8 f2 f2 0x10005e2ff420: f8 f8 f2 f2 f8 f8 f2 f2 f8 f8 f2 f2 f8 f8 f8 f8 0x10005e2ff430: f8 f8 f8 f8 f2 f2 f2 f2 f8 f8 f8 f8 f8 f8 f8 f8 0x10005e2ff440: f2 f2 f2 f2 f8 f8 f8 f8 f8 f8 f8 f8 f2 f2 f2 f2 =>0x10005e2ff450: f8 f8 f8 f8 f8 f8 f8 f8[f2]f2 f2 f2 f8 f8 f8 f8 0x10005e2ff460: f8 f8 f8 f8 f2 f2 f2 f2 f8 f2 f2 f2 00 f2 f2 f2 0x10005e2ff470: f8 f2 f2 f2 f8 f3 f3 f3 00 00 00 00 00 00 00 00 0x10005e2ff480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10005e2ff490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10005e2ff4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==25576==ABORTING ```
stack-buffer-overflow /root/ChakraCore-2023-6/lib/Runtime/./Base/FunctionInfo.h:88:39 in Js::FunctionInfo::HasBody()
https://api.github.com/repos/chakra-core/ChakraCore/issues/6927/comments
0
2023-06-25T12:22:06Z
2023-06-25T12:22:06Z
https://github.com/chakra-core/ChakraCore/issues/6927
1,773,250,200
6,927
[ "chakra-core", "ChakraCore" ]
Branch: `master` commit: `c3ead3f8a6e0bb8e32e043adc091c68cba5935e9` Poc is: ``` async function f1() { await null; throw new Error(f1()); } f1(); async function f2() { async function f2a() { throw "err"; } async function f2b() { try { var p = f2a(); } catch (e) { console.log("caught " + e); } } async function f2c() { var p = f2a(); } f2b(); f2c(); } f2(); ``` In release build `./build.sh --sanitize=address --static -j ` I get ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==11137==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000020 (pc 0x5600688b0540 bp 0x7ffc05a1ceb0 sp 0x7ffc05a1cea0 T0) ==11137==The signal is caused by a READ memory access. ==11137==Hint: address points to the zero page. #0 0x5600688b053f in NativeEntryPointData::GetFrameHeight() /root/ChakraCore-2023-6/lib/Runtime/../Backend/NativeEntryPointData.h:60:36 #1 0x5600688b053f in Js::EntryPointInfo::GetFrameHeight() /root/ChakraCore-2023-6/lib/Runtime/Base/FunctionBody.cpp:8239 #2 0x5600688b053f in Js::EntryPointInfo::HasInlinees() /root/ChakraCore-2023-6/lib/Runtime/Base/FunctionBody.cpp:8244 #3 0x56006930b8a0 in Js::InlinedFrameWalker::FromPhysicalFrame(Js::InlinedFrameWalker&, Js::Amd64StackFrame&, Js::ScriptFunction*, bool, int, Js::JavascriptStackWalker const*, bool, bool) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptStackWalker.cpp:1291:29 #4 0x56006930d3c7 in Js::JavascriptStackWalker::UpdateFrame(bool) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptStackWalker.cpp:562:56 #5 0x560069305b30 in Js::JavascriptStackWalker::Walk(bool) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptStackWalker.cpp:784:15 #6 0x560069310611 in Js::JavascriptStackWalker::GetCaller(Js::JavascriptFunction**, bool) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptStackWalker.cpp:795:22 #7 0x56006920b2dc in Js::JavascriptExceptionOperators::GetCaller(Js::JavascriptStackWalker&, Js::JavascriptFunction*&) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptExceptionOperators.cpp:1197:22 #8 0x56006920b2dc in Js::JavascriptExceptionOperators::WalkStackForExceptionContextInternal(Js::ScriptContext&, Js::JavascriptExceptionContext&, void*, unsigned int&, unsigned long, void*, bool, bool) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptExceptionOperators.cpp:1123 #9 0x56006920b00e in Js::JavascriptExceptionOperators::WalkStackForExceptionContext(Js::ScriptContext&, Js::JavascriptExceptionContext&, void*, unsigned long, void*, bool, bool) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptExceptionOperators.cpp:1105:39 #10 0x5600695c3cdf in Js::JavascriptError::NewInstance(Js::RecyclableObject*, Js::JavascriptError*, Js::CallInfo, void*, void*, void*) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptError.cpp:77:9 #11 0x560069bd375d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #12 0x5600695eb778 in Js::JavascriptFunction::CallAsConstructor(void*, void*, Js::Arguments, Js::ScriptContext*, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:972:30 #13 0x560069272813 in Js::JavascriptOperators::NewScObject(void*, Js::Arguments, Js::ScriptContext*, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/JavascriptOperators.cpp:6931:36 #14 0x560069334447 in Js::ProfilingHelpers::ProfiledNewScObject(void*, Js::Arguments, Js::FunctionBody*, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/ProfilingHelpers.cpp:720:26 #15 0x560068f0919c in Js::InterpreterStackFrame::ProfiledNewScObject_Helper(void*, unsigned short, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:6596:30 #16 0x560068f0919c in void Js::InterpreterStackFrame::OP_NewScObject_Impl<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>, true, false>(Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>> const __unaligned*, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:6464 #17 0x560068f0919c in void Js::InterpreterStackFrame::OP_ProfiledNewScObject_Impl<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>, true, false>(Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>> const __unaligned*, unsigned int, Js::AuxArray<unsigned int> const*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:759 #18 0x560068f0919c in void Js::InterpreterStackFrame::OP_ProfiledNewScObject<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:767 #19 0x560068f0919c in Js::InterpreterStackFrame::ProcessProfiled() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterHandler.inl:302 #20 0x560068e2c2be in Js::InterpreterStackFrame::Process() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:3472:20 #21 0x560068e29263 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2153:40 #22 0x560068e27d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #23 0x7f441f640f99 (<unknown module>) #24 0x560069bd375d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #25 0x5600696038fe in Js::JavascriptGenerator::CallGenerator(void*, Js::ResumeYieldKind) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptGenerator.cpp:198:26 #26 0x5600695982c1 in Js::JavascriptAsyncFunction::AsyncSpawnStep(Js::JavascriptAsyncSpawnStepFunction*, Js::JavascriptGenerator*, void*, void*) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptAsyncFunction.cpp:151:25 #27 0x5600695994a6 in Js::JavascriptAsyncFunction::EntryAsyncSpawnCallStepFunction(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptAsyncFunction.cpp:130:5 #28 0x5600699b576e in Js::JavascriptPromise::EntryReactionTaskFunction(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptPromise.cpp:1273:37 #29 0x560069bd375d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #30 0x5600695ea096 in Js::JavascriptFunction::CallRootFunctionInternal(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:772:24 #31 0x5600695e9c7e in Js::JavascriptFunction::CallRootFunction(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:717:15 #32 0x5600695e9c7e in Js::JavascriptFunction::CallRootFunction(Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:832 #33 0x5600684d89c0 in JsCallFunction::$_65::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2842:41 #34 0x5600684d89c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:237 #35 0x5600684d89c0 in _JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:192 #36 0x5600684d89c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:235 #37 0x5600684d89c0 in JsCallFunction /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2804 #38 0x5600683644ee in ChakraRTInterface::JsCallFunction(void*, void**, unsigned short, void**) /root/ChakraCore-2023-6/bin/ch/ChakraRtInterface.h:416:149 #39 0x5600683644ee in WScriptJsrt::CallbackMessage::CallFunction(char const*) /root/ChakraCore-2023-6/bin/ch/WScriptJsrt.cpp:2009 #40 0x56006832d1ac in MessageQueue::ProcessAll(char const*) /root/ChakraCore-2023-6/bin/ch/MessageQueue.h:256:18 #41 0x56006832d1ac in RunScript(char const*, char const*, unsigned long, void (*)(void*), void*, char*, void*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:480 #42 0x560068331990 in ExecuteTest(char const*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:917:13 #43 0x560068333177 in ExecuteTestWithMemoryCheck(char*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:967:10 #44 0x560068333177 in main /root/ChakraCore-2023-6/bin/ch/ch.cpp:1274 #45 0x7f4423bb2c86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310 #46 0x56006822ec69 in _start (/home/tangsong/engines/all_version/ChakraCore/ChakraCore-2023-6/sanitize/ch+0x2c6c69) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /root/ChakraCore-2023-6/lib/Runtime/../Backend/NativeEntryPointData.h:60:36 in NativeEntryPointData::GetFrameHeight() ==11137==ABORTING ```
SEGV on unknown address 0x000000000020 ,in NativeEntryPointData::GetFrameHeight()
https://api.github.com/repos/chakra-core/ChakraCore/issues/6926/comments
0
2023-06-25T12:13:18Z
2023-06-25T12:15:26Z
https://github.com/chakra-core/ChakraCore/issues/6926
1,773,246,990
6,926
[ "chakra-core", "ChakraCore" ]
Branch: `master` commit: `c3ead3f8a6e0bb8e32e043adc091c68cba5935e9` Poc is: ``` function attach(f) { (function (r) { WScript.Attach(r); })(f); } async function mainTest(notAttachCall) { if (notAttachCall) { for (let i = 0; i < 1; WScript.Echo([Attach||i])) { await attach(mainTest); } } else { var i = 10;/**bp:locals()**/ } } mainTest(true); WScript.Echo("PASSED"); ``` In release build `./build.sh --sanitize=address --static -j ` I get ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==37824==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55cf944d0209 bp 0x7ffd07952b30 sp 0x7ffd07952af0 T0) ==37824==The signal is caused by a READ memory access. ==37824==Hint: address points to the zero page. #0 0x55cf944d0208 in Js::ArrayCallSiteInfo::IsNativeIntArray() const /root/ChakraCore-2023-6/lib/Runtime/./Language/DynamicProfileInfo.h:377:50 #1 0x55cf944d0208 in Js::ProfilingHelpers::ProfiledNewScArray(unsigned int, Js::FunctionBody*, unsigned short) /root/ChakraCore-2023-6/lib/Runtime/Language/ProfilingHelpers.cpp:493 #2 0x55cf93ff436a in void Js::InterpreterStackFrame::ProfiledNewScArray<true, Js::OpLayoutT_Reg1Unsigned1<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_Reg1Unsigned1<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:5368:13 #3 0x55cf93ff436a in void Js::InterpreterStackFrame::OP_ProfiledNewScArray<Js::OpLayoutT_Reg1Unsigned1<Js::LayoutSizePolicy<(Js::LayoutSize)0>>>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_Reg1Unsigned1<Js::LayoutSizePolicy<(Js::LayoutSize)0>>> const __unaligned*) /root/ChakraCore-2023-6/lib/Runtime/./Language/InterpreterStackFrame.h:649 #4 0x55cf93ff436a in Js::InterpreterStackFrame::ProcessWithDebugging() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterHandler.inl:400 #5 0x55cf93fc97ff in Js::InterpreterStackFrame::DebugProcess() /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2517:34 #6 0x55cf93fc7543 in Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:2143:40 #7 0x55cf93fc5d7c in Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) /root/ChakraCore-2023-6/lib/Runtime/Language/InterpreterStackFrame.cpp:1833:16 #8 0x7fd550230f99 (<unknown module>) #9 0x55cf94d7175d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #10 0x55cf93aae3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const::'lambda'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4681:36 #11 0x55cf93aae3f2 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const::'lambda'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const::'lambda'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #12 0x55cf93aae3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4678 #13 0x55cf93aae3f2 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'(), Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'(bool)>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'() const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda'(bool) const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #14 0x55cf93aae3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4676 #15 0x55cf93aae3f2 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #16 0x55cf93aae3f2 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #17 0x55cf94d7175d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #18 0x55cf947a18fe in Js::JavascriptGenerator::CallGenerator(void*, Js::ResumeYieldKind) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptGenerator.cpp:198:26 #19 0x55cf94d7175d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #20 0x55cf93aae000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #21 0x55cf93aae000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #22 0x55cf93aae000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #23 0x55cf93aae000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #24 0x55cf93aae000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #25 0x55cf947362c1 in Js::JavascriptAsyncFunction::AsyncSpawnStep(Js::JavascriptAsyncSpawnStepFunction*, Js::JavascriptGenerator*, void*, void*) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptAsyncFunction.cpp:151:25 #26 0x55cf947374a6 in Js::JavascriptAsyncFunction::EntryAsyncSpawnCallStepFunction(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptAsyncFunction.cpp:130:5 #27 0x55cf94d7175d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #28 0x55cf93aae000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4698:32 #29 0x55cf93aae000 in void* ThreadContext::SafeReentrantCall<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const::'lambda0'()) /root/ChakraCore-2023-6/lib/Runtime/./Base/ThreadContext.h:1812 #30 0x55cf93aae000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4695 #31 0x55cf93aae000 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #32 0x55cf93aae000 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #33 0x55cf94b5376e in Js::JavascriptPromise::EntryReactionTaskFunction(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptPromise.cpp:1273:37 #34 0x55cf94d7175d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #35 0x55cf93ab15b7 in Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&)::$_11::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4754:24 #36 0x55cf93ab15b7 in void* Js::HelperOrLibraryMethodWrapper<true, Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&)::$_11>(Js::ScriptContext*, Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&)::$_11) /root/ChakraCore-2023-6/lib/Runtime/./Debug/DiagHelperMethodWrapper.h:53 #37 0x55cf93ab15b7 in Js::ScriptContext::ProfileModeThunk_DebugModeWrapper(Js::JavascriptFunction*, Js::ScriptContext*, void* (*)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments&) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4751 #38 0x55cf93aade79 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9::operator()() const /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4660:27 #39 0x55cf93aade79 in void TryFinally<Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10>(Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_9 const&, Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...)::$_10 const&) /root/ChakraCore-2023-6/lib/Common/CommonPal.h:661 #40 0x55cf93aade79 in Js::ScriptContext::DebugProfileProbeThunk(Js::RecyclableObject*, Js::CallInfo, ...) /root/ChakraCore-2023-6/lib/Runtime/Base/ScriptContext.cpp:4635 #41 0x55cf94d7175d in amd64_CallFunction /root/ChakraCore-2023-6/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #42 0x55cf94788096 in Js::JavascriptFunction::CallRootFunctionInternal(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:772:24 #43 0x55cf94787c7e in Js::JavascriptFunction::CallRootFunction(Js::RecyclableObject*, Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:717:15 #44 0x55cf94787c7e in Js::JavascriptFunction::CallRootFunction(Js::Arguments, Js::ScriptContext*, bool) /root/ChakraCore-2023-6/lib/Runtime/Library/JavascriptFunction.cpp:832 #45 0x55cf936769c0 in JsCallFunction::$_65::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2842:41 #46 0x55cf936769c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:237 #47 0x55cf936769c0 in _JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65)::'lambda'(Js::ScriptContext*)>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:192 #48 0x55cf936769c0 in _JsErrorCode ContextAPIWrapper<false, JsCallFunction::$_65>(JsCallFunction::$_65) /root/ChakraCore-2023-6/lib/Jsrt/JsrtInternal.h:235 #49 0x55cf936769c0 in JsCallFunction /root/ChakraCore-2023-6/lib/Jsrt/Jsrt.cpp:2804 #50 0x55cf935024ee in ChakraRTInterface::JsCallFunction(void*, void**, unsigned short, void**) /root/ChakraCore-2023-6/bin/ch/ChakraRtInterface.h:416:149 #51 0x55cf935024ee in WScriptJsrt::CallbackMessage::CallFunction(char const*) /root/ChakraCore-2023-6/bin/ch/WScriptJsrt.cpp:2009 #52 0x55cf934cb1ac in MessageQueue::ProcessAll(char const*) /root/ChakraCore-2023-6/bin/ch/MessageQueue.h:256:18 #53 0x55cf934cb1ac in RunScript(char const*, char const*, unsigned long, void (*)(void*), void*, char*, void*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:480 #54 0x55cf934cf990 in ExecuteTest(char const*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:917:13 #55 0x55cf934d1177 in ExecuteTestWithMemoryCheck(char*) /root/ChakraCore-2023-6/bin/ch/ch.cpp:967:10 #56 0x55cf934d1177 in main /root/ChakraCore-2023-6/bin/ch/ch.cpp:1274 #57 0x7fd5547a5c86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310 #58 0x55cf933ccc69 in _start (/home/tangsong/engines/all_version/ChakraCore/ChakraCore-2023-6/sanitize/ch+0x2c6c69) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /root/ChakraCore-2023-6/lib/Runtime/./Language/DynamicProfileInfo.h:377:50 in Js::ArrayCallSiteInfo::IsNativeIntArray() const ==37824==ABORTING ```
SEGV on unknown address 0x000000000000
https://api.github.com/repos/chakra-core/ChakraCore/issues/6925/comments
0
2023-06-25T11:49:34Z
2023-06-25T11:49:34Z
https://github.com/chakra-core/ChakraCore/issues/6925
1,773,238,036
6,925
[ "chakra-core", "ChakraCore" ]
## System Windows 10 Node v17.3.0. NPM 8.5.0 Cmake 3.22.1 ## Log ``` Build started... 1>------ Build started: Project: Chakra.SCACore, Configuration: Debug x64 ------ 2>------ Build started: Project: Chakra.ICU.Stubdata, Configuration: Debug x64 ------ 3>------ Build started: Project: Chakra.ICU.i18n, Configuration: Debug x64 ------ 4>------ Build started: Project: Chakra.ICU.Data, Configuration: Debug x64 ------ 5>------ Build started: Project: Chakra.ICU.Common, Configuration: Debug x64 ------ 6>------ Build started: Project: wabt, Configuration: Debug x64 ------ 7>------ Skipped Build: Project: pal, Configuration: Debug x64 ------ 7>Project not selected to build for this solution configuration 8>------ Build started: Project: CoreManifests, Configuration: Debug x64 ------ 9>------ Build started: Project: Chakra.JITIDL, Configuration: Debug x64 ------ 6>wabtapi.cc 9>midl : command line warning MIDL1007: switch specified more than once on command line : target 9>64 bit Processing C:\Programs\vcpkg\buildtrees\chakracore\x64-windows-rel\x64-windows\lib\JITIDL\ChakraJIT.idl 9>ChakraJIT.idl 9>64 bit Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\shared\wtypes.idl 9>wtypes.idl 9>64 bit Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\shared\wtypesbase.idl 1>SCACorePch.cpp 1>C:\Programs\vcpkg\buildtrees\chakracore\x64-windows-rel\x64-windows\lib\Common\Core\EtwTraceCore.h(81,10): fatal error C1083: Cannot open include file: 'Microsoft-Scripting-Chakra-InstrumentationEvents.h': No such file or directory 9>wtypesbase.idl 9>64 bit Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\shared\basetsd.h 9>basetsd.h 9>64 bit Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\shared\guiddef.h ```
[ERROR] Missing 'microsoft-scripting-chakra-instrumentationevents.h'
https://api.github.com/repos/chakra-core/ChakraCore/issues/6923/comments
3
2023-06-11T14:47:08Z
2024-04-17T21:27:26Z
https://github.com/chakra-core/ChakraCore/issues/6923
1,751,458,803
6,923
[ "chakra-core", "ChakraCore" ]
## Version Branch : master Version : https://github.com/chakra-core/ChakraCore/commit/c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 ## Platform Ubuntu 20.04.5 LTS ## Build Debug ./build.sh --debug --static --sanitize=address ## POC ``` function assert(a) { if (!a) throw new Error("Bad"); } var longStr = "f"; for (var i = 0; i < 30; ++i) longStr = longStr + longStr; let sub = longStr.substring(0, longStr.length - 4) let sNumber = "0x" + longStr + sub + "f"; try { BigInt(sNumber); assert(false); } catch(e) { assert(e.message == "Out of memory: BigInt generated from this operation is too big") } ``` ## Execution steps & Output ``` $ ./ch poc.js Aborted ``` ## Backtrace ``` Thread 1 "ch" received signal SIGILL, Illegal instruction. 0x000055555677829a in DebugBreak () at /home/dingjie/fuzz_target/ChakraCore/lib/Common/CommonPal.h:161 161 __builtin_trap(); (gdb) bt #0 0x000055555677829a in DebugBreak () at /home/dingjie/fuzz_target/ChakraCore/lib/Common/CommonPal.h:161 #1 ReportFatalException (context=<optimized out>, exceptionCode=<optimized out>, reasonCode=<optimized out>, scenario=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Common/Exceptions/ReportError.cpp:20 #2 0x00005555567784b5 in RecyclerSingleAllocationLimit_unrecoverable_error () at /home/dingjie/fuzz_target/ChakraCore/lib/Common/Exceptions/ReportError.cpp:151 #3 0x0000555556a2fe52 in Memory::Recycler::LargeAlloc<false> (this=0x632000000858, heap=0x6320000052b8, size=2147483650, attributes=Memory::LeafBit) at /home/dingjie/fuzz_target/ChakraCore/lib/Common/Memory/Recycler.cpp:1380 #4 0x000055555656a13d in Memory::Recycler::RealAlloc<(Memory::ObjectInfoBits)32, false> (this=0x632000000858, heap=0x6320000052b8, size=2147483650) at /home/dingjie/fuzz_target/ChakraCore/lib/Common/Memory/Recycler.inl:384 #5 0x000055555656a13d in Memory::Recycler::AllocWithAttributesInlined<(Memory::ObjectInfoBits)32, false> (this=<optimized out>, size=<optimized out>) #6 0x0000555557f071bb in Memory::Recycler::AllocWithAttributes<(Memory::ObjectInfoBits)32, false> (this=0x632000000858, size=0) at /home/dingjie/fuzz_target/ChakraCore/lib/Common/Memory/Recycler.h:1589 #7 Memory::Recycler::AllocLeaf (this=0x632000000858, size=0) at /home/dingjie/fuzz_target/ChakraCore/lib/Common/Memory/Recycler.h:1380 #8 operator new[]<Memory::Recycler> (byteSize=0, alloc=0x632000000858, AllocFunc=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Common/DataStructures/../Memory/Allocator.h:498 #9 Memory::AllocateArray<Memory::Recycler, char16_t, false> (allocator=0x632000000858, AllocFunc=<optimized out>, count=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Common/DataStructures/../Memory/Allocator.h:348 #10 Js::CompoundString::GetSz (this=0x7ffff291a480) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Library/CompoundString.cpp:1039 #11 0x0000555558a1b678 in Js::JavascriptString::GetString (this=0x7ffff291a480) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Library/JavascriptString.cpp:2850 #12 0x0000555558b91dcd in Js::SubString::New (string=<optimized out>, start=<optimized out>, length=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Library/SubString.cpp:37 --Type <RET> for more, q to quit, c to continue without paging-- #13 0x0000555558a40561 in Js::JavascriptString::SubstringCore (pThis=0x10007fff7400, idxStart=0, span=2147450368, scriptContext=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Library/JavascriptString.cpp:2104 #14 Js::JavascriptString::EntrySubstring (function=<optimized out>, callInfo=...) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Library/JavascriptString.cpp:2038 #15 0x0000555558cb9a9e in amd64_CallFunction () at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #16 0x0000555557babbb1 in Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7fffffffc8a0, playout=<optimized out>, function=<optimized out>, flags=<optimized out>, spreadIndices=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3988 #17 0x0000555557baaeb7 in Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) ( this=<optimized out>, playout=0x7ffff27c80a0, function=0x7ffff2917000, flags=0, profileId=<optimized out>, inlineCacheIndex=0, spreadIndices=0x0) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:4016 #18 0x00005555576b61ef in Js::InterpreterStackFrame::ProcessProfiled (this=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/./Language/InterpreterStackFrame.h:520 #19 0x00005555574fb8b4 in Js::InterpreterStackFrame::Process (this=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3472 #20 0x00005555574f57bc in Js::InterpreterStackFrame::InterpreterHelper (function=<optimized out>, args=..., returnAddress=<optimized out>, addressOfReturnAddress=<optimized out>, asmJsReturn=<optimized out>) at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2153 #21 0x00005555574f3576 in Js::InterpreterStackFrame::InterpreterThunk (layout=<optimized out>) --Type <RET> for more, q to quit, c to continue without paging-- at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1833 #22 0x00007ffff2790fa2 in ?? () #23 0x00007fffffffce10 in ?? () #24 0x0000555558cb9a9e in amd64_CallFunction () at /home/dingjie/fuzz_target/ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 ``` Credits: @ Jie Ding from HKU S3Lab
Aborted in ReportFatalException(Js::CompoundString::GetSz)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6922/comments
0
2023-06-06T07:43:28Z
2023-06-07T02:22:36Z
https://github.com/chakra-core/ChakraCore/issues/6922
1,743,280,174
6,922
[ "chakra-core", "ChakraCore" ]
Version --- Branch : master Version : https://github.com/chakra-core/ChakraCore/commit/c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Platform --- Ubuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64) Build --- - Address Sanitizer=On - Debug ``` ./build.sh -d --static --sanitize=address ``` PoC --- <details><summary>testcase</summary> <p> ```javascript var r = 32 ; var n = 8 ; var a = " " ; while ( a . length < r % 8 << 8 ) { a += " x " ; } a . replace ( / ^ ( .* ) / , " _ " ) ; for ( var e = 0 ; e < 8 ; e ++ ) { var v = " " ; for ( var l = 0 ; l < r ; a . lastIndexOf ( ) , l ++ ) { v += n ; n += " $1 " ; a . replace ( / ^ ( .* ) / , v ) ; n += v ; a . lastIndexOf ( ) ; r ++ ; } } ``` </p> </details> ```javascript // poc.js var r = 32 ; var n = 8 ; var a = " " ; for ( var e = 0 ; e < 8 ; e ++ ) { var v = " " ; for ( var l = 0 ; l < r ; l ++ ) { v += n ; a . replace ( / / , v ) ; n += v ; } } ``` Execution steps & Output --- ``` $ ./ch poc.js Aborted ``` Backtrace --- Debug (ASAN) ``` (gdb) r poc.js Starting program: ./ChakraCore/out/Debug/ch poc.js [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff7f1915700 (LWP 2064680)] [New Thread 0x7ff7f1114700 (LWP 2064681)] [New Thread 0x7ff7f0913700 (LWP 2064682)] Thread 1 "ch" received signal SIGILL, Illegal instruction. 0x0000555556a35e09 in DebugBreak () at ./ChakraCore/lib/Common/CommonPal.h:161 161 __builtin_trap(); (gdb) bt #0 0x0000555556a35e09 in DebugBreak () at ./ChakraCore/lib/Common/CommonPal.h:161 #1 ReportFatalException (context=<optimized out>, exceptionCode=<optimized out>, reasonCode=<optimized out>, scenario=<optimized out>) at ./ChakraCore/lib/Common/Exceptions/ReportError.cpp:20 #2 0x0000555556a36247 in RecyclerSingleAllocationLimit_unrecoverable_error () at ./ChakraCore/lib/Common/Exceptions/ReportError.cpp:151 #3 0x0000555556deecba in Memory::Recycler::LargeAlloc<false> (this=0x632000000858, heap=0x6320000052b8, size=2269806342, attributes=Memory::LeafBit) at ./ChakraCore/lib/Common/Memory/Recycler.cpp:1380 #4 0x00005555567fd87f in Memory::Recycler::RealAlloc<(Memory::ObjectInfoBits)32, false> (this=0x632000000858, heap=0x6320000052b8, size=2269806342) at ./ChakraCore/lib/Common/Memory/Recycler.inl:384 #5 0x00005555567fcb24 in Memory::Recycler::AllocWithAttributesInlined<(Memory::ObjectInfoBits)32, false> (this=<optimized out>, size=<optimized out>) at ./ChakraCore/lib/Common/Memory/HeapInfoManager.h:18 #6 0x00005555567fbce9 in operator new[]<Memory::Recycler> (byteSize=2269806342, alloc=<optimized out>, AllocFunc=<optimized out>) at ./ChakraCore/lib/Common/DataStructures/../Memory/Allocator.h:498 #7 0x00005555588af4c8 in Memory::AllocateArray<Memory::Recycler, char16_t, false> (allocator=0x632000000858, AllocFunc=<optimized out>, count=<optimized out>) at ./ChakraCore/lib/Common/DataStructures/../Memory/Allocator.h:348 #8 Js::ConcatStringBase::GetSzImpl<Js::ConcatStringN<2> > (this=<optimized out>) at ./ChakraCore/lib/Runtime/./Library/ConcatString.inl:36 #9 0x00005555588ad44a in Js::ConcatStringN<2>::GetSz (this=0x7ffff26a9fc0) at ./ChakraCore/lib/Runtime/./Library/ConcatString.inl:89 #10 0x00005555593ceff8 in Js::JavascriptString::GetString (this=0x7ffff26a9fc0) at ./ChakraCore/lib/Runtime/Library/JavascriptString.cpp:2850 #11 0x0000555559506661 in Js::RegexHelper::RegexEs5ReplaceImpl (scriptContext=<optimized out>, regularExpression=0x7ffff26a8f40, input=<optimized out>, replace=<optimized out>, noResult=<optimized out>) at ./ChakraCore/lib/Runtime/Library/RegexHelper.cpp:1127 #12 0x0000555559501f59 in Js::RegexHelper::RegexReplaceImpl (scriptContext=0x622000000158, thisObj=0x7ffff26a8f40, input=0x7ffff2842480, replace=0x7ffff26a9fc0, noResult=true) at ./ChakraCore/lib/Runtime/Library/RegexHelper.cpp:908 #13 0x000055555951a9cf in Js::RegexHelper::RegexReplace (entryFunctionContext=0x622000000158, thisObj=0x0, input=0x10007fff7e00, replace=0x10007fff7e00, noResult=false) at ./ChakraCore/lib/Runtime/Library/RegexHelper.cpp:2308 #14 0x00005555593f2bf3 in Js::JavascriptString::DoStringReplace (args=..., callInfo=..., input=<optimized out>, scriptContext=<optimized out>) at ./ChakraCore/lib/Runtime/Library/JavascriptString.cpp:1695 #15 0x00005555593f1da2 in Js::JavascriptString::EntryReplace(Js::RecyclableObject*, Js::CallInfo, ...)::$_2::operator()(Js::JavascriptString*) const (this=<optimized out>, stringObj=0x7ffff2842480) at ./ChakraCore/lib/Runtime/Library/JavascriptString.cpp:1667 #16 Js::JavascriptString::DelegateToRegExSymbolFunction<2, Js::JavascriptString::EntryReplace(Js::RecyclableObject*, Js::CallInfo, ...)::$_2>(Js::ArgumentReader&, int, Js::JavascriptString::EntryReplace(Js::RecyclableObject*, Js::CallInfo, ...)::$_2, char16_t const*, Js::ScriptContext*) (args=..., symbolPropertyId=22, fallback=..., scriptContext=0x622000000158, varName=<optimized out>) at ./ChakraCore/lib/Runtime/Library/JavascriptString.cpp:1809 #17 Js::JavascriptString::EntryReplace (function=0x7ffff2842880, callInfo=...) at ./ChakraCore/lib/Runtime/Library/JavascriptString.cpp:1669 #18 0x0000555559723c4e in amd64_CallFunction () at ./ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #19 0x000055555843ceef in Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7fffffffca40, playout=<optimized out>, function=<optimized out>, flags=<optimized out>, spreadIndices=<optimized out>) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3973 #20 0x000055555843bae9 in Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7fffffffca40, playout=0x7ffff28eb1b4, function=<optimized out>, flags=0, profileId=<optimized out>, inlineCacheIndex=0, spreadIndices=0x0) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:4016 #21 0x0000555557df8817 in Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > >(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > const __unaligned*) (this=0x7fffffffca40, playout=0x7ffff28eb1b4) at ./ChakraCore/lib/Runtime/./Language/InterpreterStackFrame.h:520 #22 Js::InterpreterStackFrame::ProcessProfiled (this=<optimized out>) at ./ChakraCore/lib/Runtime/Language/InterpreterHandler.inl:91 #23 0x0000555557c426df in Js::InterpreterStackFrame::Process (this=0x7fffffffca40) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3472 #24 0x0000555557c3d150 in Js::InterpreterStackFrame::InterpreterHelper (function=<optimized out>, args=<error reading variable: Cannot access memory at address 0x0>, returnAddress=<optimized out>, addressOfReturnAddress=<optimized out>, asmJsReturn=<optimized out>) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2153 #25 0x0000555557c3a80d in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7ffff26c0fa2) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1833 #26 0x00007ffff26c0fa2 in ?? () #27 0x00007fffffffd010 in ?? () #28 0x0000555559723c4e in amd64_CallFunction () at ./ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 Backtrace stopped: frame did not save the PC (gdb) ``` Credits: @Ye0nny, @EJueon of the seclab-yonsei.
Aborted in ReportFatalException (Js::ConcatStringBase::GetSzImpl<Js::ConcatStringN<2> >)
https://api.github.com/repos/chakra-core/ChakraCore/issues/6921/comments
2
2023-05-31T11:53:23Z
2023-06-14T05:42:57Z
https://github.com/chakra-core/ChakraCore/issues/6921
1,734,043,544
6,921
[ "chakra-core", "ChakraCore" ]
Version --- Branch : master Version : https://github.com/chakra-core/ChakraCore/commit/c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Platform --- Ubuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64) Build --- - Address Sanitizer=On - Release ``` ./build.sh --static --sanitize=address ``` PoC --- <details><summary>testcase</summary> <p> ```javascript function i ( t ) { ( function ( t ) { func0 . log ( t ) ; } ) ( t ( ) ) ; } async function n ( t ) { if ( t instanceof i ) { for ( let t = 0 ; t < 1 ; ++ t ) { let c = await i ( ) ; let n = await c . log ( 8 % ( 4 + 2 ) ) ; await c >> i ( n ) ; } } else { var c = await n ( " nope " ) ; } } n ( true ) ; n . next ( " PASSED " ) ; ``` </p> </details> ```javascript // poc.js function i ( t ) { } async function n ( t ) { if ( t instanceof i ) { let c = await i ( ) ; let n = await c . log () ; await c >> i ( n ) ; } else { var c = await n ( ) ; } } n ( true ) ; ``` Execution steps & Output --- ``` $ ./ch poc.js AddressSanitizer:DEADLYSIGNAL ================================================================= ==758868==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x55ebaf9bf646 bp 0x7ffdf5c94150 sp 0x7ffdf5c94110 T0) ==758868==The signal is caused by a READ memory access. ==758868==Hint: this fault was caused by a dereference of a high value address (see register values below). Dissassemble the provided pc to learn which register was used. #0 0x55ebaf9bf646 in Js::TypePropertyCacheElement::Id() const ./ChakraCore/lib/Runtime/Types/TypePropertyCache.cpp:20:16 #1 0x55ebaf9bf646 in Js::TypePropertyCache::TryGetIndexForStore(int, unsigned short*, bool*) const ./ChakraCore/lib/Runtime/Types/TypePropertyCache.cpp:141:20 #2 0x55ebaf9be7d4 in Js::TypePropertyCache::TrySetProperty(Js::RecyclableObject*, int, void*, Js::ScriptContext*, Js::PropertyCacheOperationInfo*, Js::PropertyValueInfo*) ./ChakraCore/lib/Runtime/Types/TypePropertyCache.cpp:371:13 #3 0x55ebaeac4f83 in bool Js::CacheOperators::TrySetProperty<true, true, true, true, true, true, false, true>(Js::RecyclableObject*, bool, int, void*, Js::ScriptContext*, Js::PropertyOperationFlags, Js::PropertyCacheOperationInfo*, Js::PropertyValueInfo*) ./ChakraCore/lib/Runtime/./Language/CacheOperators.inl:214:33 #4 0x55ebaeac3380 in void Js::ProfilingHelpers::ProfiledStFld<false>(void*, int, Js::InlineCache*, unsigned int, void*, Js::PropertyOperationFlags, Js::ScriptFunction*, void*) ./ChakraCore/lib/Runtime/Language/ProfilingHelpers.cpp:1249:17 #5 0x55ebaeabc5a3 in Js::ProfilingHelpers::ProfiledStFld_Jit(void*, int, unsigned int, void*, void*) ./ChakraCore/lib/Runtime/Language/ProfilingHelpers.cpp:1090:9 ... ... ... #262 0x55ebaed971d7 in Js::JavascriptAsyncFunction::BeginAsyncFunctionExecution(Js::JavascriptGenerator*) ./ChakraCore/lib/Runtime/Library/JavascriptAsyncFunction.cpp:73:9 #263 0x55ebaed96a47 in Js::JavascriptAsyncFunction::EntryAsyncFunctionImplementation(Js::RecyclableObject*, Js::CallInfo, ...) ./ChakraCore/lib/Runtime/Library/JavascriptAsyncFunction.cpp:52:12 #264 0x55ebaf68a70d in amd64_CallFunction ./ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 #265 0x55ebae9190cb in void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3988:54 #266 0x55ebae918416 in void Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:4016:9 AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV ./ChakraCore/lib/Runtime/Types/TypePropertyCache.cpp:20:16 in Js::TypePropertyCacheElement::Id() const ==758868==ABORTING ``` Credits: @Ye0nny, @EJueon of the seclab-yonsei.
AddressSanitizer: SEGV on unknown address in ./ChakraCore/lib/Runtime/Types/TypePropertyCache.cpp:20:16
https://api.github.com/repos/chakra-core/ChakraCore/issues/6920/comments
0
2023-05-24T13:00:13Z
2023-05-24T13:00:13Z
https://github.com/chakra-core/ChakraCore/issues/6920
1,723,939,499
6,920
[ "chakra-core", "ChakraCore" ]
Version --- Branch : master Version : https://github.com/chakra-core/ChakraCore/commit/c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 Platform --- Ubuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64) Build --- - Address Sanitizer=On - Debug ``` ./build.sh -d --static --sanitize=address ``` PoC --- <details><summary>testcase</summary> <p> ```javascript 32 ; import ( ( { a = { b } = { b : 32 } } ) => ( a . a . b . b ) . b = import ( { } ) ) ; 32 ; a ; b ; ``` </p> </details> ```javascript // poc.js import ( ( ) => ( a ) . b = import ( { } ) ) ; ``` Execution steps & Output --- ``` $ ./ch poc.js ASSERTION 583600: (./ChakraCore/lib/Runtime/Library/BufferStringBuilder.cpp, line 70) BufferString sentinel was overwritten. Failure: (buffer[length] == k_dbgFill) Illegal instruction ``` Backtrace --- ``` (gdb) bt #0 0x000055555ad6fb9c in Js::BufferStringBuilder::ToString (this=0x7fffffffb950) at ./ChakraCore/lib/Runtime/Library/BufferStringBuilder.cpp:70 #1 0x00005555595527f6 in Js::ScriptFunction::EnsureSourceString (this=<optimized out>) at ./ChakraCore/lib/Runtime/Library/ScriptFunction.cpp:419 #2 0x0000555558c1c2f1 in Js::JavascriptFunction::EntryToString (function=<optimized out>, callInfo=...) at ./ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1596 #3 0x0000555559819d01 in Js::DynamicObject::CallToPrimitiveFunction(void*, int, void**, Js::ScriptContext*)::$_0::operator()() const (this=<optimized out>) at ./ChakraCore/lib/Runtime/Types/DynamicType.cpp:464 #4 0x0000555559816de9 in ThreadContext::ExecuteImplicitCall<Js::DynamicObject::CallToPrimitiveFunction(void*, int, void**, Js::ScriptContext*)::$_0>(Js::RecyclableObject*, Js::ImplicitCallFlags, Js::DynamicObject::CallToPrimitiveFunction(void*, int, void**, Js::ScriptContext*)::$_0) (this=0x623000000158, function=0x7ffff28428c0, flags=Js::ImplicitCall_ToPrimitive, implicitCall=...) at ./ChakraCore/lib/Runtime/./Base/ThreadContext.h:1593 #5 Js::DynamicObject::CallToPrimitiveFunction (this=<optimized out>, toPrimitiveFunction=<optimized out>, propertyId=<optimized out>, result=<optimized out>, requestContext=<optimized out>) at ./ChakraCore/lib/Runtime/Types/DynamicType.cpp:460 #6 0x000055555981ac10 in Js::DynamicObject::ToPrimitiveImpl<376> (this=<optimized out>, result=0x7fffffffbe40, requestContext=<optimized out>) at ./ChakraCore/lib/Runtime/Types/DynamicType.cpp:451 #7 0x0000555559816609 in Js::DynamicObject::ToPrimitive (this=0x7ffff28a6730, hint=Js::JavascriptHint::HintString, result=0x7fffffffbe40, requestContext=0x622000000158) at ./ChakraCore/lib/Runtime/Types/DynamicType.cpp:391 #8 0x00005555584828a3 in Js::JavascriptConversion::OrdinaryToPrimitive<(Js::JavascriptHint)1> (value=0x7ffff28a6730, requestContext=<optimized out>) at ./ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp:533 #9 0x000055555848ad8a in Js::JavascriptConversion::MethodCallToPrimitive<(Js::JavascriptHint)1> (value=0x7ffff28a6730, requestContext=<optimized out>) at ./ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp:469 #10 0x00005555584748ae in Js::JavascriptConversion::ToPrimitive<(Js::JavascriptHint)1> (aValue=0x7ffff28a6730, requestContext=0x622000000158) at ./ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp:417 #11 0x000055555845be57 in Js::JavascriptConversion::ToString (aValue=0x7ffff28a6730, scriptContext=0x622000000158) at ./ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp:668 #12 0x000055555859afa5 in Js::JavascriptOperators::OP_ImportCall (function=<optimized out>, specifier=<optimized out>, scriptContext=<optimized out>) at ./ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:10250 #13 0x0000555557d09648 in Js::InterpreterStackFrame::OP_ImportCall (this=0x7fffffffca60, specifier=0x7ffff28a6730, scriptContext=0x622000000158) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:7917 #14 Js::InterpreterStackFrame::ProcessProfiledExtendedOpcodePrefix (this=<optimized out>, ip=0x7ffff28ee23a "$") at ./ChakraCore/lib/Runtime/Language/InterpreterHandler.inl:324 #15 0x0000555557e0ce89 in Js::InterpreterStackFrame::ProcessProfiled (this=<optimized out>) at ./ChakraCore/lib/Runtime/Language/InterpreterLoop.inl:357 #16 0x0000555557c426df in Js::InterpreterStackFrame::Process (this=0x7fffffffca60) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3472 #17 0x0000555557c3d150 in Js::InterpreterStackFrame::InterpreterHelper (function=<optimized out>, args=<error reading variable: Cannot access memory at address 0x0>, returnAddress=<optimized out>, addressOfReturnAddress=<optimized out>, asmJsReturn=<optimized out>) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2153 #18 0x0000555557c3a80d in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7ffff26c0fa2) at ./ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1833 #19 0x00007ffff26c0fa2 in ?? () #20 0x00007fffffffcff0 in ?? () #21 0x0000555559723c4e in amd64_CallFunction () at ./ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100 Backtrace stopped: frame did not save the PC (gdb) ``` Credits: @Ye0nny, @EJueon of the seclab-yonsei.
Assertion Failure : buffer[length] == k_dbgFill in ChakraCore/lib/Runtime/Library/BufferStringBuilder.cpp, line 70
https://api.github.com/repos/chakra-core/ChakraCore/issues/6919/comments
0
2023-05-24T12:13:53Z
2023-05-24T12:13:53Z
https://github.com/chakra-core/ChakraCore/issues/6919
1,723,846,930
6,919
[ "chakra-core", "ChakraCore" ]
## Version commit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 ## Platform Ubuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64) ## Build - Debug Mode ``` ./build.sh --debug --static ``` ## PoC ``` const arr = [2]; arr.length = 4294967295; arr.copyWithin(); ``` ## Execution steps & Output ``` ./ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- poc.js ASSERTION 422348: (/home/wjm/ChakraCore/lib/Runtime/Library/JavascriptArray.cpp, line 9407) direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength) Failure: (direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength)) Signal: SIGILL (Illegal instruction) ``` ## Backtrace ``` (lldb) bt * thread #1, name = 'ch', stop reason = signal SIGILL: illegal instruction operand * frame #0: 0x000055555615e01c ch`Js::JavascriptArray::CopyWithinHelper(pArr=0x00007ff7e7c622a0, typedArrayBase=0x0000000000000000, obj=0x00007ff7e7c622a0, length=4294967295, args=0x00007fffffffae28, scriptContext=0x0000555557ee8f88) at JavascriptArray.cpp:9407:13 frame #1: 0x000055555615cfca ch`Js::JavascriptArray::EntryCopyWithin(function=0x00007ff7e7bbbb00, callInfo=(Count = 1, Flags = CallFlags_NotUsed, unused = 0)) at JavascriptArray.cpp:9274:16 frame #2: 0x00005555564a37de ch`amd64_CallFunction at JavascriptFunctionA.S:100 frame #3: 0x00005555561d7a4b ch`void* Js::JavascriptFunction::CallFunction<true>(function=0x00007ff7e7bbbb00, entryPoint=(ch`Js::JavascriptArray::EntryCopyWithin(Js::RecyclableObject*, Js::CallInfo, ...) at JavascriptArray.cpp:9260), args=Arguments @ 0x00007fffffffafa0, useLargeArgCount=false)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments, bool) at JavascriptFunction.cpp:1364:16 frame #4: 0x0000555555ffc5fe ch`void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(this=0x00007fffffffc040, playout=0x00007ff7e84cd498, function=0x00007ff7e7bbbb00, flags=16, spreadIndices=0x0000000000000000)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) at InterpreterStackFrame.cpp:3973:21 frame #5: 0x0000555555fcdb05 ch`void Js::InterpreterStackFrame::OP_CallI<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(this=0x00007fffffffc040, playout=0x00007ff7e84cd498)0> > > __unaligned const __unaligned*) at InterpreterStackFrame.h:510:72 frame #6: 0x0000555555e71df3 ch`Js::InterpreterStackFrame::ProcessUnprofiled(this=0x00007fffffffc040) at InterpreterHandler.inl:91:3 frame #7: 0x0000555555e522be ch`Js::InterpreterStackFrame::Process(this=0x00007fffffffc040) at InterpreterStackFrame.cpp:3495:22 frame #8: 0x0000555555e50dd3 ch`Js::InterpreterStackFrame::InterpreterHelper(function=0x00007ff7e7c766e0, args=ArgumentReader @ 0x00007fffffffc530, returnAddress=0x00007ff7e7bd0fa2, addressOfReturnAddress=0x00007fffffffc578, asmJsReturn=0x0000000000000000) at InterpreterStackFrame.cpp:2153:40 frame #9: 0x0000555555e4feb0 ch`Js::InterpreterStackFrame::InterpreterThunk(layout=0x00007fffffffc590) at InterpreterStackFrame.cpp:1833:16 frame #10: 0x00007ff7e7bd0fa2 frame #11: 0x00005555564a37de ch`amd64_CallFunction at JavascriptFunctionA.S:100 frame #12: 0x00005555561d7a4b ch`void* Js::JavascriptFunction::CallFunction<true>(function=0x00007ff7e7c766e0, entryPoint=(ch`NativeCodeGenerator::CheckCodeGenThunk(Js::RecyclableObject*, Js::CallInfo, ...)), args=Arguments @ 0x00007fffffffc798, useLargeArgCount=false)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments, bool) at JavascriptFunction.cpp:1364:16 frame #13: 0x00005555561cf2f4 ch`Js::JavascriptFunction::CallRootFunctionInternal(obj=0x00007ff7e7c766e0, args=Arguments @ 0x00007fffffffc810, scriptContext=0x0000555557ee8f88, inScript=true) at JavascriptFunction.cpp:772:24 frame #14: 0x00005555561cf10c ch`Js::JavascriptFunction::CallRootFunction(obj=0x00007ff7e7c766e0, args=<unavailable>, scriptContext=0x0000555557ee8f88, inScript=true) at JavascriptFunction.cpp:717:15 frame #15: 0x00005555561cf0b1 ch`Js::JavascriptFunction::CallRootFunction(this=0x00007ff7e7c766e0, args=<unavailable>, scriptContext=0x0000555557ee8f88, inScript=true) at JavascriptFunction.cpp:832:16 frame #16: 0x0000555555894a8e ch`RunScriptCore(this=0x00007fffffffcbe0, scriptContext=0x0000555557ee8f88, _actionEntryPopper=0x00007fffffffcbc0)::$_85::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const at Jsrt.cpp:3705:49 frame #17: 0x0000555555894624 ch`_JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(this=0x00007fffffffcb78, scriptContext=0x0000555557ee8f88)::$_85)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const at JsrtInternal.h:237:16 frame #18: 0x0000555555893fc4 ch`_JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85)::'lambda'(Js::ScriptContext*)>(fn=(anonymous class) @ 0x00007fffffffcb78)::$_85) at JsrtInternal.h:192:23 frame #19: 0x00005555558608f6 ch`_JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(fn=(anonymous class) @ 0x00007fffffffcbe0)::$_85) at JsrtInternal.h:235:27 frame #20: 0x00005555558607fb ch`RunScriptCore(scriptSource=0x00007ff7e7c44000, script="const arr = [2];\narr.length = 4294967295;\narr.copyWithin();\n\n// CRASH INFO\n// ==========\n// TERMSIG: 4\n// STDERR:\n// ASSERTION 1666667: (/home/wjm/ChakraCore/lib/Runtime/Library/JavascriptArray.cpp, line 9407) direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength)\n// Failure: (direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength))\n// STDOUT:\n// ARGS: /home/wjm/ChakraCore/out/Debug/ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- -reprl fuzzcode.js\n// EXECUTION TIME: 11 ms\n\n/*\n\nTitle: Assertion Failure in Js::JavascriptArray::CopyWithinHelper\n\n## Version\ncommit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9\n\n## Platform\nUbuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64)\n\n## Build\n- Debug Mode\n\n```\n./build.sh --debug --static\n```\n\n## PoC\n```\n\n```\n\n## Execution steps & Output\n```\n./ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- poc.js\n\n```\n## Backtrace\n```\n\n\n```\n\n*\/\n", cb=969, loadScriptFlag=LoadScriptFlag_Utf8Source | LoadScriptFlag_ExternalArrayBuffer, sourceContext=0, sourceUrl=u"/home/wjm/DiTing-pocs/chakra/bug36_maxLength.js", parseOnly=false, parseAttributes=JsParseScriptAttributeNone, isSourceModule=false, result=0x0000000000000000) at Jsrt.cpp:3656:12 frame #21: 0x0000555555862f6e ch`::JsRun(JsValueRef, JsSourceContext, JsValueRef, JsParseScriptAttributes, JsValueRef *) [inlined] CompileRun(scriptVal=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000, parseOnly=false) at Jsrt.cpp:5019:12 frame #22: 0x0000555555862db9 ch`::JsRun(scriptVal=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000) at Jsrt.cpp:5041 frame #23: 0x0000555555787293 ch`ChakraRTInterface::JsRun(script=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000) at ChakraRtInterface.h:487:179 frame #24: 0x0000555555784924 ch`RunScript(fileName="bug36_maxLength.js", fileContents="const arr = [2];\narr.length = 4294967295;\narr.copyWithin();\n\n// CRASH INFO\n// ==========\n// TERMSIG: 4\n// STDERR:\n// ASSERTION 1666667: (/home/wjm/ChakraCore/lib/Runtime/Library/JavascriptArray.cpp, line 9407) direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength)\n// Failure: (direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength))\n// STDOUT:\n// ARGS: /home/wjm/ChakraCore/out/Debug/ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- -reprl fuzzcode.js\n// EXECUTION TIME: 11 ms\n\n/*\n\nTitle: Assertion Failure in Js::JavascriptArray::CopyWithinHelper\n\n## Version\ncommit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9\n\n## Platform\nUbuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64)\n\n## Build\n- Debug Mode\n\n```\n./build.sh --debug --static\n```\n\n## PoC\n```\n\n```\n\n## Execution steps & Output\n```\n./ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- poc.js\n\n```\n## Backtrace\n```\n\n\n```\n\n*\/\n", fileLength=969, fileContentsFinalizeCallback=(ch`WScriptJsrt::FinalizeFree(void*) at WScriptJsrt.cpp:217), bufferValue=0x0000000000000000, fullPath="/home/wjm/DiTing-pocs/chakra/bug36_maxLength.js", parserStateCache=0x0000000000000000)(void*), void*, char*, void*) at ch.cpp:451:25 frame #25: 0x00005555557863f0 ch`ExecuteTest(fileName="bug36_maxLength.js") at ch.cpp:917:13 frame #26: 0x00005555557864ac ch`ExecuteTestWithMemoryCheck(fileName="bug36_maxLength.js") at ch.cpp:967:10 frame #27: 0x0000555555786d7a ch`main(argc=5, c_argv=0x00007fffffffd648) at ch.cpp:1274:20 frame #28: 0x00007ffff778d1e2 libc.so.6`__libc_start_main + 242 frame #29: 0x0000555555783b7e ch`_start + 46 ```
Assertion Failure in Js::JavascriptArray::CopyWithinHelper
https://api.github.com/repos/chakra-core/ChakraCore/issues/6918/comments
0
2023-05-13T04:35:32Z
2023-05-13T04:35:32Z
https://github.com/chakra-core/ChakraCore/issues/6918
1,708,430,115
6,918
[ "chakra-core", "ChakraCore" ]
## Version commit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 ## Platform Ubuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64) ## Build - Debug Mode ``` ./build.sh --debug --static ``` ## PoC ``` for (let i = 0; i < 60; i++) { const arr = []; for (let k = 2; k > 2; k = k ^ -2) { for (let m = -2; m > -2; m = m ^ 2) { let q = 2; for (let n = m; n < q; n = n + 128) { q--; arr[q] = n; } } arr[128] = 2; } } ``` ## Execution steps & Output ``` ./ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- poc.js ASSERTION 432771: (/home/wjm/ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267) added || failedToUpdateCompatibleUpperBoundCheck Failure: (added || failedToUpdateCompatibleUpperBoundCheck) Signal: SIGILL (Illegal instruction) ``` ## Backtrace ``` (lldb) bt * thread #1, name = 'ch', stop reason = signal SIGILL: illegal instruction operand * frame #0: 0x0000555556bbd9cb ch`GlobOpt::ArraySrcOpt::DoUpperBoundCheck(this=0x00007fffffff80b8) at GlobOptArrays.cpp:1267:17 frame #1: 0x0000555556bba46b ch`GlobOpt::ArraySrcOpt::DoExtractBoundChecks(this=0x00007fffffff80b8) at GlobOptArrays.cpp:843:9 frame #2: 0x0000555556bc15a9 ch`GlobOpt::ArraySrcOpt::Optimize(this=0x00007fffffff80b8) at GlobOptArrays.cpp:1896:13 frame #3: 0x0000555556b5fae3 ch`GlobOpt::OptArraySrc(this=0x00007fffffff9820, instrRef=0x00007fffffff8698, src1Val=0x00007fffffff8530, src2Val=0x00007fffffff8528) at GlobOpt.cpp:13452:17 frame #4: 0x0000555556b49f2e ch`GlobOpt::OptInstr(this=0x00007fffffff9820, instr=0x00007fffffff8698, isInstrRemoved=0x00007fffffff868e) at GlobOpt.cpp:2563:5 frame #5: 0x0000555556b46dce ch`GlobOpt::OptBlock(this=0x00007fffffff9820, block=0x00007ff7e7c07508) at GlobOpt.cpp:521:27 frame #6: 0x0000555556b458a7 ch`GlobOpt::ForwardPass(this=0x00007fffffff9820) at GlobOpt.cpp:402:15 frame #7: 0x0000555556b44ab3 ch`GlobOpt::Optimize(this=0x00007fffffff9820) at GlobOpt.cpp:212:15 frame #8: 0x0000555556b262ab ch`Func::TryCodegen(this=0x00007fffffff9ed0) at Func.cpp:457:21 frame #9: 0x0000555556b25ae0 ch`Func::Codegen(alloc=0x00007fffffffa490, workItem=0x00007ff7e7bf5030, threadContextInfo=0x0000555557eb70d8, scriptContextInfo=0x0000555557ee9078, outputData=0x00007fffffffa8d0, epInfo=0x00007ff7e7c64200, runtimeInfo=0x0000000000000000, polymorphicInlineCacheInfo=0x00007ff7e7c3f300, codeGenAllocators=0x0000555557ef61a8, codeGenProfiler=0x0000000000000000, isBackgroundJIT=false) at Func.cpp:325:18 frame #10: 0x000055555690ef90 ch`NativeCodeGenerator::CodeGen(this=0x0000555557eea848, pageAllocator=0x0000555557eb7460, workItemData=0x0000555557ef6020, jitWriteData=0x00007fffffffa8d0, foreground=true, epInfo=0x00007ff7e7c64200) at NativeCodeGenerator.cpp:890:9 frame #11: 0x0000555556910c28 ch`NativeCodeGenerator::CodeGen(this=0x0000555557eea848, pageAllocator=0x0000555557eb7460, workItem=0x0000555557ef5ff8, foreground=true) at NativeCodeGenerator.cpp:1007:5 frame #12: 0x00005555569139a7 ch`NativeCodeGenerator::Process(this=0x0000555557eea848, job=0x0000555557ef6000, threadData=0x0000000000000000) at NativeCodeGenerator.cpp:1895:13 frame #13: 0x00005555569b83d4 ch`JsUtil::ForegroundJobProcessor::Process(job=0x0000555557ef6000) at Jobs.cpp:426:36 frame #14: 0x0000555556922bc3 ch`void JsUtil::ForegroundJobProcessor::PrioritizeJobAndWait<NativeCodeGenerator, Js::EntryPointInfo*>(this=0x0000555557ea2ce8, manager=0x0000555557eea848, holder=0x00007ff7e7c64200, function=0x0000000000000000) at Jobs.inl:207:36 frame #15: 0x0000555556918804 ch`void JsUtil::JobProcessor::PrioritizeJobAndWait<NativeCodeGenerator, Js::EntryPointInfo*>(this=0x0000555557ea2ce8, manager=0x0000555557eea848, holder=0x00007ff7e7c64200, function=0x0000000000000000) at Jobs.inl:81:58 frame #16: 0x000055555690d4fc ch`NativeCodeGenerator::GenerateLoopBody(this=0x0000555557eea848, fn=0x00007ff7e7c47000, loopHeader=0x00007ff7e7c430f0, entryPoint=0x00007ff7e7c64200, localCount=21, localSlots=0x00007fffffffc0f0) at NativeCodeGenerator.cpp:711:22 frame #17: 0x00005555568157dd ch`GenerateLoopBody(nativeCodeGen=0x0000555557eea848, fn=0x00007ff7e7c47000, loopHeader=0x00007ff7e7c430f0, info=0x00007ff7e7c64200, localCount=21, localSlots=0x00007fffffffc0f0) at BackendApi.cpp:88:20 frame #18: 0x0000555555fb220b ch`Js::InterpreterStackFrame::DoLoopBodyStart(this=0x00007fffffffbf90, loopNumber=1, layoutSize=SmallLayout, doProfileLoopCheck=true, isFirstIteration=false) at InterpreterStackFrame.cpp:6277:17 frame #19: 0x0000555555fb5997 ch`void Js::InterpreterStackFrame::LoopBodyStart<false, true>(this=0x00007fffffffbf90, loopNumber=1, layoutSize=SmallLayout, isFirstIteration=false) at InterpreterStackFrame.cpp:5994:9 frame #20: 0x0000555556002d38 ch`unsigned char const* Js::InterpreterStackFrame::OP_ProfiledLoopBodyStart<(Js::LayoutSize)0, false>(this=0x00007fffffffbf90, loopId=1) at InterpreterStackFrame.cpp:5902:9 frame #21: 0x0000555555fcd716 ch`unsigned char const* Js::InterpreterStackFrame::OP_ProfiledLoopBodyStart<(Js::LayoutSize)0, false>(this=0x00007fffffffbf90, ip="\U00000011\U00000003") at InterpreterStackFrame.cpp:5774:16 frame #22: 0x0000555555e704b1 ch`Js::InterpreterStackFrame::ProcessUnprofiled(this=0x00007fffffffbf90) at InterpreterHandler.inl:52:3 frame #23: 0x0000555555e522be ch`Js::InterpreterStackFrame::Process(this=0x00007fffffffbf90) at InterpreterStackFrame.cpp:3495:22 frame #24: 0x0000555555e50dd3 ch`Js::InterpreterStackFrame::InterpreterHelper(function=0x00007ff7e7c76730, args=ArgumentReader @ 0x00007fffffffc520, returnAddress=0x00007ff7e7bd0fa2, addressOfReturnAddress=0x00007fffffffc568, asmJsReturn=0x0000000000000000) at InterpreterStackFrame.cpp:2153:40 frame #25: 0x0000555555e4feb0 ch`Js::InterpreterStackFrame::InterpreterThunk(layout=0x00007fffffffc580) at InterpreterStackFrame.cpp:1833:16 frame #26: 0x00007ff7e7bd0fa2 frame #27: 0x00005555564a37de ch`amd64_CallFunction at JavascriptFunctionA.S:100 frame #28: 0x00005555561d7a4b ch`void* Js::JavascriptFunction::CallFunction<true>(function=0x00007ff7e7c76730, entryPoint=(ch`NativeCodeGenerator::CheckCodeGenThunk(Js::RecyclableObject*, Js::CallInfo, ...)), args=Arguments @ 0x00007fffffffc788, useLargeArgCount=false)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments, bool) at JavascriptFunction.cpp:1364:16 frame #29: 0x00005555561cf2f4 ch`Js::JavascriptFunction::CallRootFunctionInternal(obj=0x00007ff7e7c76730, args=Arguments @ 0x00007fffffffc800, scriptContext=0x0000555557ee9078, inScript=true) at JavascriptFunction.cpp:772:24 frame #30: 0x00005555561cf10c ch`Js::JavascriptFunction::CallRootFunction(obj=0x00007ff7e7c76730, args=<unavailable>, scriptContext=0x0000555557ee9078, inScript=true) at JavascriptFunction.cpp:717:15 frame #31: 0x00005555561cf0b1 ch`Js::JavascriptFunction::CallRootFunction(this=0x00007ff7e7c76730, args=<unavailable>, scriptContext=0x0000555557ee9078, inScript=true) at JavascriptFunction.cpp:832:16 frame #32: 0x0000555555894a8e ch`RunScriptCore(this=0x00007fffffffcbd0, scriptContext=0x0000555557ee9078, _actionEntryPopper=0x00007fffffffcbb0)::$_85::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const at Jsrt.cpp:3705:49 frame #33: 0x0000555555894624 ch`_JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(this=0x00007fffffffcb68, scriptContext=0x0000555557ee9078)::$_85)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const at JsrtInternal.h:237:16 frame #34: 0x0000555555893fc4 ch`_JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85)::'lambda'(Js::ScriptContext*)>(fn=(anonymous class) @ 0x00007fffffffcb68)::$_85) at JsrtInternal.h:192:23 frame #35: 0x00005555558608f6 ch`_JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(fn=(anonymous class) @ 0x00007fffffffcbd0)::$_85) at JsrtInternal.h:235:27 frame #36: 0x00005555558607fb ch`RunScriptCore(scriptSource=0x00007ff7e7c44000, script="for (let i = 0; i < 60; i++) {\n const arr = [];\n for (let k = 2; k > 2; k = k ^ -2) {\n for (let m = -2; m > -2; m = m ^ 2) {\n let q = 2;\n for (let n = m; n < q; n = n + 128) {\n q--;\n arr[q] = n;\n }\n }\n arr[128] = 2;\n }\n}\n// CRASH INFO\n// ==========\n// TERMSIG: 4\n// STDERR:\n// ASSERTION 72586: (/home/wjm/ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267) added || failedToUpdateCompatibleUpperBoundCheck\n// Failure: (added || failedToUpdateCompatibleUpperBoundCheck)\n// STDOUT:\n// ARGS: /home/wjm/ChakraCore/out/Debug/ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- -reprl fuzzcode.js\n// EXECUTION TIME: 67 ms\n\n/*\n\nTitle: Assertion Failure: \n\n## Version\ncommit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9\n\n## Platform\nUbuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64)\n\n## Build\n- Debug Mode\n\n```\n./build.sh --debug --static\n```\n\n## PoC\n```\n\n```\n\n## Execution steps & Output\n```\n./ch --maxinterpretcount:10 --max"..., cb=1093, loadScriptFlag=LoadScriptFlag_Utf8Source | LoadScriptFlag_ExternalArrayBuffer, sourceContext=0, sourceUrl=u"/home/wjm/DiTing-pocs/chakra/bug32_upperBoundCheck.js", parseOnly=false, parseAttributes=JsParseScriptAttributeNone, isSourceModule=false, result=0x0000000000000000) at Jsrt.cpp:3656:12 frame #37: 0x0000555555862f6e ch`::JsRun(JsValueRef, JsSourceContext, JsValueRef, JsParseScriptAttributes, JsValueRef *) [inlined] CompileRun(scriptVal=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000, parseOnly=false) at Jsrt.cpp:5019:12 frame #38: 0x0000555555862db9 ch`::JsRun(scriptVal=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000) at Jsrt.cpp:5041 frame #39: 0x0000555555787293 ch`ChakraRTInterface::JsRun(script=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000) at ChakraRtInterface.h:487:179 frame #40: 0x0000555555784924 ch`RunScript(fileName="bug32_upperBoundCheck.js", fileContents="for (let i = 0; i < 60; i++) {\n const arr = [];\n for (let k = 2; k > 2; k = k ^ -2) {\n for (let m = -2; m > -2; m = m ^ 2) {\n let q = 2;\n for (let n = m; n < q; n = n + 128) {\n q--;\n arr[q] = n;\n }\n }\n arr[128] = 2;\n }\n}\n// CRASH INFO\n// ==========\n// TERMSIG: 4\n// STDERR:\n// ASSERTION 72586: (/home/wjm/ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267) added || failedToUpdateCompatibleUpperBoundCheck\n// Failure: (added || failedToUpdateCompatibleUpperBoundCheck)\n// STDOUT:\n// ARGS: /home/wjm/ChakraCore/out/Debug/ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- -reprl fuzzcode.js\n// EXECUTION TIME: 67 ms\n\n/*\n\nTitle: Assertion Failure: \n\n## Version\ncommit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9\n\n## Platform\nUbuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64)\n\n## Build\n- Debug Mode\n\n```\n./build.sh --debug --static\n```\n\n## PoC\n```\n\n```\n\n## Execution steps & Output\n```\n./ch --maxinterpretcount:10 --max"..., fileLength=1093, fileContentsFinalizeCallback=(ch`WScriptJsrt::FinalizeFree(void*) at WScriptJsrt.cpp:217), bufferValue=0x0000000000000000, fullPath="/home/wjm/DiTing-pocs/chakra/bug32_upperBoundCheck.js", parserStateCache=0x0000000000000000)(void*), void*, char*, void*) at ch.cpp:451:25 frame #41: 0x00005555557863f0 ch`ExecuteTest(fileName="bug32_upperBoundCheck.js") at ch.cpp:917:13 frame #42: 0x00005555557864ac ch`ExecuteTestWithMemoryCheck(fileName="bug32_upperBoundCheck.js") at ch.cpp:967:10 frame #43: 0x0000555555786d7a ch`main(argc=5, c_argv=0x00007fffffffd638) at ch.cpp:1274:20 frame #44: 0x00007ffff778d1e2 libc.so.6`__libc_start_main + 242 frame #45: 0x0000555555783b7e ch`_start + 46 ```
Assertion Failure: (added || failedToUpdateCompatibleUpperBoundCheck) in ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267
https://api.github.com/repos/chakra-core/ChakraCore/issues/6917/comments
1
2023-05-13T04:34:52Z
2023-06-14T09:01:26Z
https://github.com/chakra-core/ChakraCore/issues/6917
1,708,429,977
6,917
[ "chakra-core", "ChakraCore" ]
## Version commit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9 ## Platform Ubuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64) ## Build - Debug Mode ``` ./build.sh --debug --static ``` ## PoC ``` function opt(arg) { delete opt.length; arg.constructor = arg; const a = [1,1]; const b = new Proxy(opt, a); b.__proto__ = a; arg.length = undefined } opt(opt); ``` ## Execution steps & Output ``` ./ch poc.js ASSERTION 433602: (/home/wjm/ChakraCore/lib/Runtime/Types/PathTypeHandler.cpp, line 3920) Re-add of deleted property NYI in PathTypeHandler Failure: (0) Signal: SIGILL (Illegal instruction) ``` ## Backtrace ``` (lldb) bt * thread #1, name = 'ch', stop reason = signal SIGILL: illegal instruction operand * frame #0: 0x00005555564f59db ch`Js::PathTypeHandlerWithAttr::SetProperty(this=0x00007ff7e7c6ed70, instance=0x00007ff7e7c76730, propertyId=209, value=0x00007ff7e7c75030, flags=PropertyOperation_None, info=0x00007fffffff9700) at PathTypeHandler.cpp:3920:17 frame #1: 0x00005555564d6004 ch`Js::DynamicObject::SetProperty(this=0x00007ff7e7c76730, propertyId=209, value=0x00007ff7e7c75030, flags=PropertyOperation_None, info=0x00007fffffff9700) at DynamicType.cpp:296:34 frame #2: 0x00005555561d480d ch`Js::JavascriptFunction::SetProperty(this=0x00007ff7e7c76730, propertyId=209, value=0x00007ff7e7c75030, flags=PropertyOperation_None, info=0x00007fffffff9700) at JavascriptFunction.cpp:3000:38 frame #3: 0x00005555560510a9 ch`int Js::JavascriptOperators::SetProperty_Internal<false>(receiver=0x00007ff7e7c76730, object=0x00007ff7e7c76730, isRoot=false, propertyId=209, newValue=0x00007ff7e7c75030, info=0x00007fffffff9700, requestContext=0x0000555557ee8f58, propertyOperationFlags=PropertyOperation_None) at JavascriptOperators.cpp:2826:54 frame #4: 0x000055555602ee9a ch`Js::JavascriptOperators::SetProperty(receiver=0x00007ff7e7c76730, object=0x00007ff7e7c76730, propertyId=209, newValue=0x00007ff7e7c75030, info=0x00007fffffff9700, requestContext=0x0000555557ee8f58, propertyOperationFlags=PropertyOperation_None) at JavascriptOperators.cpp:2675:16 frame #5: 0x000055555602fbfd ch`Js::JavascriptOperators::OP_SetProperty(instance=0x00007ff7e7c76730, propertyId=209, newValue=0x00007ff7e7c75030, scriptContext=0x0000555557ee8f58, info=0x00007fffffff9700, flags=PropertyOperation_None, thisInstance=0x00007ff7e7c76730) at JavascriptOperators.cpp:2932:20 frame #6: 0x0000555556070ed6 ch`void Js::JavascriptOperators::PatchPutValueWithThisPtrNoLocalFastPath<false, Js::InlineCache>(functionBody=0x00007ff7e7c471f0, inlineCache=0x00007ff7e84caeb0, inlineCacheIndex=2, instance=0x00007ff7e7c76730, propertyId=209, newValue=0x00007ff7e7c75030, thisInstance=0x00007ff7e7c76730, flags=PropertyOperation_None) at JavascriptOperators.cpp:8712:14 frame #7: 0x0000555556070d12 ch`void Js::JavascriptOperators::PatchPutValueNoLocalFastPath<false, Js::InlineCache>(functionBody=0x00007ff7e7c471f0, inlineCache=0x00007ff7e84caeb0, inlineCacheIndex=2, instance=0x00007ff7e7c76730, propertyId=209, newValue=0x00007ff7e7c75030, flags=PropertyOperation_None) at JavascriptOperators.cpp:8660:9 frame #8: 0x0000555555fff52d ch`void Js::InterpreterStackFrame::DoSetProperty_NoFastPath<Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned>(this=0x00007fffffffa8f0, playout=0x00007ff7e7bf016e, instance=0x00007ff7e7c76730, flags=PropertyOperation_None)0> > const __unaligned __unaligned*, void*, Js::PropertyOperationFlags) at InterpreterStackFrame.cpp:4642:9 frame #9: 0x0000555555fff319 ch`void Js::InterpreterStackFrame::DoSetProperty<Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned>(this=0x00007fffffffa8f0, playout=0x00007ff7e7bf016e, instance=0x00007ff7e7c76730, flags=PropertyOperation_None)0> > const __unaligned __unaligned*, void*, Js::PropertyOperationFlags) at InterpreterStackFrame.cpp:4620:9 frame #10: 0x0000555555fc8364 ch`void Js::InterpreterStackFrame::OP_SetProperty<Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned>(this=0x00007fffffffa8f0, playout=0x00007ff7e7bf016e)0> > const __unaligned __unaligned*) at InterpreterStackFrame.cpp:4728:9 frame #11: 0x0000555555e767cb ch`Js::InterpreterStackFrame::ProcessUnprofiled(this=0x00007fffffffa8f0) at InterpreterHandler.inl:202:3 frame #12: 0x0000555555e522be ch`Js::InterpreterStackFrame::Process(this=0x00007fffffffa8f0) at InterpreterStackFrame.cpp:3495:22 frame #13: 0x0000555555e50dd3 ch`Js::InterpreterStackFrame::InterpreterHelper(function=0x00007ff7e7c76730, args=ArgumentReader @ 0x00007fffffffae00, returnAddress=0x00007ff7e7bd0f9a, addressOfReturnAddress=0x00007fffffffae48, asmJsReturn=0x0000000000000000) at InterpreterStackFrame.cpp:2153:40 frame #14: 0x0000555555e4feb0 ch`Js::InterpreterStackFrame::InterpreterThunk(layout=0x00007fffffffae60) at InterpreterStackFrame.cpp:1833:16 frame #15: 0x00007ff7e7bd0f9a frame #16: 0x00005555564a37de ch`amd64_CallFunction at JavascriptFunctionA.S:100 frame #17: 0x00005555561d7a4b ch`void* Js::JavascriptFunction::CallFunction<true>(function=0x00007ff7e7c76730, entryPoint=(ch`NativeCodeGenerator::CheckCodeGenThunk(Js::RecyclableObject*, Js::CallInfo, ...)), args=Arguments @ 0x00007fffffffaf90, useLargeArgCount=false)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments, bool) at JavascriptFunction.cpp:1364:16 frame #18: 0x0000555555ffc5fe ch`void Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(this=0x00007fffffffc030, playout=0x00007ff7e84d40eb, function=0x00007ff7e7c76730, flags=16, spreadIndices=0x0000000000000000)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) at InterpreterStackFrame.cpp:3973:21 frame #19: 0x0000555555fcdb05 ch`void Js::InterpreterStackFrame::OP_CallI<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(this=0x00007fffffffc030, playout=0x00007ff7e84d40eb)0> > > __unaligned const __unaligned*) at InterpreterStackFrame.h:510:72 frame #20: 0x0000555555e71df3 ch`Js::InterpreterStackFrame::ProcessUnprofiled(this=0x00007fffffffc030) at InterpreterHandler.inl:91:3 frame #21: 0x0000555555e522be ch`Js::InterpreterStackFrame::Process(this=0x00007fffffffc030) at InterpreterStackFrame.cpp:3495:22 frame #22: 0x0000555555e50dd3 ch`Js::InterpreterStackFrame::InterpreterHelper(function=0x00007ff7e7c766e0, args=ArgumentReader @ 0x00007fffffffc530, returnAddress=0x00007ff7e7bd0fa2, addressOfReturnAddress=0x00007fffffffc578, asmJsReturn=0x0000000000000000) at InterpreterStackFrame.cpp:2153:40 frame #23: 0x0000555555e4feb0 ch`Js::InterpreterStackFrame::InterpreterThunk(layout=0x00007fffffffc590) at InterpreterStackFrame.cpp:1833:16 frame #24: 0x00007ff7e7bd0fa2 frame #25: 0x00005555564a37de ch`amd64_CallFunction at JavascriptFunctionA.S:100 frame #26: 0x00005555561d7a4b ch`void* Js::JavascriptFunction::CallFunction<true>(function=0x00007ff7e7c766e0, entryPoint=(ch`NativeCodeGenerator::CheckCodeGenThunk(Js::RecyclableObject*, Js::CallInfo, ...)), args=Arguments @ 0x00007fffffffc798, useLargeArgCount=false)(Js::RecyclableObject*, Js::CallInfo, ...), Js::Arguments, bool) at JavascriptFunction.cpp:1364:16 frame #27: 0x00005555561cf2f4 ch`Js::JavascriptFunction::CallRootFunctionInternal(obj=0x00007ff7e7c766e0, args=Arguments @ 0x00007fffffffc810, scriptContext=0x0000555557ee8f58, inScript=true) at JavascriptFunction.cpp:772:24 frame #28: 0x00005555561cf10c ch`Js::JavascriptFunction::CallRootFunction(obj=0x00007ff7e7c766e0, args=<unavailable>, scriptContext=0x0000555557ee8f58, inScript=true) at JavascriptFunction.cpp:717:15 frame #29: 0x00005555561cf0b1 ch`Js::JavascriptFunction::CallRootFunction(this=0x00007ff7e7c766e0, args=<unavailable>, scriptContext=0x0000555557ee8f58, inScript=true) at JavascriptFunction.cpp:832:16 frame #30: 0x0000555555894a8e ch`RunScriptCore(this=0x00007fffffffcbe0, scriptContext=0x0000555557ee8f58, _actionEntryPopper=0x00007fffffffcbc0)::$_85::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const at Jsrt.cpp:3705:49 frame #31: 0x0000555555894624 ch`_JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(this=0x00007fffffffcb78, scriptContext=0x0000555557ee8f58)::$_85)::'lambda'(Js::ScriptContext*)::operator()(Js::ScriptContext*) const at JsrtInternal.h:237:16 frame #32: 0x0000555555893fc4 ch`_JsErrorCode ContextAPIWrapper_Core<false, _JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85)::'lambda'(Js::ScriptContext*)>(fn=(anonymous class) @ 0x00007fffffffcb78)::$_85) at JsrtInternal.h:192:23 frame #33: 0x00005555558608f6 ch`_JsErrorCode ContextAPIWrapper<false, RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_85>(fn=(anonymous class) @ 0x00007fffffffcbe0)::$_85) at JsrtInternal.h:235:27 frame #34: 0x00005555558607fb ch`RunScriptCore(scriptSource=0x00007ff7e7c44000, script="function opt(arg) {\n delete opt.length;\n arg.constructor = arg;\n const a = [1,1];\n const b = new Proxy(opt, a);\n b.__proto__ = a;\n arg.length = undefined\n}\nopt(opt);\n// CRASH INFO\n// ==========\n// TERMSIG: 4\n// STDERR:\n// ASSERTION 3702163: (/home/wjm/ChakraCore/lib/Runtime/Types/PathTypeHandler.cpp, line 3920) Re-add of deleted property NYI in PathTypeHandler\n// Failure: (0)\n// STDOUT:\n// ARGS: /home/wjm/ChakraCore/out/Debug/ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- -reprl fuzzcode.js\n// EXECUTION TIME: 62 ms\n\n\n/*\n\nTitle: Assertion Failure: \n\n## Version\ncommit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9\n\n## Platform\nUbuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64)\n\n## Build\n- Debug Mode\n\n```\n./build.sh --debug --static\n```\n\n## PoC\n```\n\n```\n\n## Execution steps & Output\n```\n./ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- poc.js\n\n```\n## Backtrace\n```\n\n\n```\n\n*\/\n", cb=928, loadScriptFlag=LoadScriptFlag_Utf8Source | LoadScriptFlag_ExternalArrayBuffer, sourceContext=0, sourceUrl=u"/home/wjm/DiTing-pocs/chakra/bug31_delete.js", parseOnly=false, parseAttributes=JsParseScriptAttributeNone, isSourceModule=false, result=0x0000000000000000) at Jsrt.cpp:3656:12 frame #35: 0x0000555555862f6e ch`::JsRun(JsValueRef, JsSourceContext, JsValueRef, JsParseScriptAttributes, JsValueRef *) [inlined] CompileRun(scriptVal=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000, parseOnly=false) at Jsrt.cpp:5019:12 frame #36: 0x0000555555862db9 ch`::JsRun(scriptVal=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000) at Jsrt.cpp:5041 frame #37: 0x0000555555787293 ch`ChakraRTInterface::JsRun(script=0x00007ff7e7c44000, sourceContext=0, sourceUrl=0x00007ff7e7c71cf0, parseAttributes=JsParseScriptAttributeNone, result=0x0000000000000000) at ChakraRtInterface.h:487:179 frame #38: 0x0000555555784924 ch`RunScript(fileName="bug31_delete.js", fileContents="function opt(arg) {\n delete opt.length;\n arg.constructor = arg;\n const a = [1,1];\n const b = new Proxy(opt, a);\n b.__proto__ = a;\n arg.length = undefined\n}\nopt(opt);\n// CRASH INFO\n// ==========\n// TERMSIG: 4\n// STDERR:\n// ASSERTION 3702163: (/home/wjm/ChakraCore/lib/Runtime/Types/PathTypeHandler.cpp, line 3920) Re-add of deleted property NYI in PathTypeHandler\n// Failure: (0)\n// STDOUT:\n// ARGS: /home/wjm/ChakraCore/out/Debug/ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- -reprl fuzzcode.js\n// EXECUTION TIME: 62 ms\n\n\n/*\n\nTitle: Assertion Failure: \n\n## Version\ncommit id: c3ead3f8a6e0bb8e32e043adc091c68cba5935e9\n\n## Platform\nUbuntu 20.04.5 LTS (Linux 5.4.0-144-generic x86_64)\n\n## Build\n- Debug Mode\n\n```\n./build.sh --debug --static\n```\n\n## PoC\n```\n\n```\n\n## Execution steps & Output\n```\n./ch --maxinterpretcount:10 --maxsimplejitruncount:100 -bgjit- poc.js\n\n```\n## Backtrace\n```\n\n\n```\n\n*\/\n", fileLength=928, fileContentsFinalizeCallback=(ch`WScriptJsrt::FinalizeFree(void*) at WScriptJsrt.cpp:217), bufferValue=0x0000000000000000, fullPath="/home/wjm/DiTing-pocs/chakra/bug31_delete.js", parserStateCache=0x0000000000000000)(void*), void*, char*, void*) at ch.cpp:451:25 frame #39: 0x00005555557863f0 ch`ExecuteTest(fileName="bug31_delete.js") at ch.cpp:917:13 frame #40: 0x00005555557864ac ch`ExecuteTestWithMemoryCheck(fileName="bug31_delete.js") at ch.cpp:967:10 frame #41: 0x0000555555786d7a ch`main(argc=5, c_argv=0x00007fffffffd648) at ch.cpp:1274:20 frame #42: 0x00007ffff778d1e2 libc.so.6`__libc_start_main + 242 frame #43: 0x0000555555783b7e ch`_start + 46 ```
Assertion Failure: Re-add of deleted property NYI in PathTypeHandler in ChakraCore/lib/Runtime/Types/PathTypeHandler.cpp, line 3920
https://api.github.com/repos/chakra-core/ChakraCore/issues/6916/comments
0
2023-05-13T04:34:11Z
2023-05-13T04:34:11Z
https://github.com/chakra-core/ChakraCore/issues/6916
1,708,429,853
6,916