GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Classloader leak with Throwable in static fields · Issue #1872 · reactor/reactor-core

Classloader leak with Throwable in static fields #1872

New issue
Copy link
New issue
Copy link
Closed
Closed
Classloader leak with Throwable in static fields#1872
Copy link
Labels
type/enhancementA general enhancement
Milestone
3.2.12.RELEASE

Description

@fsgonz
fsgonz
opened on Aug 30, 2019
Issue body actions

In dynamic classloader environments, the use of Throwable in static fields may cause a classloader leak in the backtrace field. This field is set in runtime at native code with an array that are instances of Class. This may cause a Classloader which should be disposed to be retained.

In other projects, an error without a writable stacktrace was used for this cases.

I've opened a PR for this:
#1871

Let me know.

Thanks!

Activity

  1. simonbasle commented on Sep 2, 2019

    @simonbasle
    simonbasle
    on Sep 2, 2019
    Contributor
    More actions

    reference of a similar issue in the JDK: https://bugs.openjdk.java.net/browse/JDK-8146961

  2. simonbasle commented on Sep 2, 2019

    @simonbasle
    simonbasle
    on Sep 2, 2019
    Contributor
    More actions

    Thanks for reporting this! IntelliJ Structural Search reveals a total of 4 static fields that have a type that extends Throwable:

    • Throwable Exceptions.TERMINATED (covered in your PR)
    • RejectedExecutionException Exceptions.REJECTED_EXECUTION
    • RejectedExecutionException Exceptions.NOT_TIME_CAPABLE_REJECTED_EXECUTION
    • AlertException.INSTANCE (already avoiding stacktrace filling)

    source search template: static $Type$ $Variable$ = $Init$; with text constraint on Type: Throwable is withinHierarchy

  3. simonbasle
    added
    type/enhancementA general enhancement
    on Sep 2, 2019
  4. simonbasle
    added this to the 3.2.12.RELEASE milestone on Sep 2, 2019
  5. simonbasle
    closed this as completedin 29aa123on Sep 2, 2019
  6. simonbasle
    added 2 commits that reference this issue on Sep 2, 2019

    cherry-pick #1872 Avoid classloader leak due to static throwables

    5d45e68

    No-op merge of cherry-pick for #1872

    8454ba7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementA general enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      • 3.2.12.RELEASE

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.