Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Problem: is this agent part affect DiagnosisLeak traces? #59

Closed
foreseaz opened this issue Nov 14, 2022 · 1 comment
Closed

Problem: is this agent part affect DiagnosisLeak traces? #59

foreseaz opened this issue Nov 14, 2022 · 1 comment

Comments

@foreseaz
Copy link
Contributor

https://github.com/plasma-umass/BLeak/blob/60836b01a8be42242f079e53639065feaba74e75/src/lib/bleak_agent.ts#L1002

    // Array modeling
    Array.prototype.push = (function(push) {
      return function(this: Array<any>, ...items: any[]): number {
        try {
          disableProxies = true;
          if (getProxyStatus(this) === ProxyStatus.IS_PROXY) {
            const map: GrowthObjectStackTraces = getProxyStackTraces(this);
            const trace = _getStackTrace();
            for (let i = 0; i < items.length; i++) {
              _addStackTrace(map, `${this.length + i}`, trace);
            }
          }
          return push.apply(this, items);
        } finally {
          disableProxies = false;
        }
      };
    })(Array.prototype.push);

@foreseaz
Copy link
Contributor Author

close the investigation issue because we can run the FindLeaks/Diagnosis right now

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

No branches or pull requests

1 participant