[jq 0005332]: jq loops processing JSON and never completes

Mantis Bug Tracker noreply at opencsw.org
Fri Jul 10 11:40:01 CEST 2020


The following issue has been CLOSED 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5332 
====================================================================== 
Reported By:                MartinWheatley
Assigned To:                dam
====================================================================== 
Project:                    jq
Issue ID:                   5332
Category:                   
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2020-07-09 17:25 CEST
Last Modified:              2020-07-10 11:40 CEST
====================================================================== 
Summary:                    jq loops processing JSON and never completes
Description: 
The attached file causes jq (on Solaris) to loop, malloc()'in more and more
memory
====================================================================== 

---------------------------------------------------------------------- 
 (0011298) dam (administrator) - 2020-07-10 11:40
 https://www.opencsw.org/mantis/view.php?id=5332#c11298 
---------------------------------------------------------------------- 
The issue has been fixed by updating to 1.6 which has been pushed to
unstable/.
This is the test from the 1.6 build directory:

dam at unstable10s [unstable10s]:/home/dam/tmp >
../mgar/pkg/jq/trunk/work/solaris10-sparc/pkgroot/opt/csw/bin/jq "." <jqt 
{
  "pools": [
    {
      "status": "online",
      "profile": "mirror3_nspf:log_mirror_nspf",
      "name": "NFSshares",
      "usage": [
        {
          "available": 201922508582912,
          "usage_snapshots": 3391488,
          "usage_metasize": 0,
          "used": 5382144,
          "compression": 1.38,
          "usage_child_reservation": 0,
          "usage_replication": 0,
          "dedupsize": 0,
          "usage_reservation": 0,
          "free": 201922508582912,
          "usage_total": 5382144,
          "dedupratio": 100,
          "usage_metaused": 0,
          "total": 205127638056960,
          "usage_data": 1990656
        }
      ],
      "encryption": "off",
      "peer": "kfs6-0002",
      "href": "/api/storage/v2/pools/NFSshares",
      "owner": "kfs6-0001",
      "asn": "f7009832-d06b-47cd-bd30-b2604bcd5d13"
    }
  ]
}



More information about the bug-notifications mailing list