NVIDIA / NVIDIA/TensorRT

double free or corruption (fasttop) error when using plugin

Open
#4,187 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Module:Plugins triaged
Dominant language
C++
Stars
13.4k
Forks
2.4k
Avg merge
5d 3h
Merged PRs (30d)
2

Description

Sry to trouble.
Recently, I developed a PixelShuffle plugin in C++ and integrated it into a engine built with TensorRT's C++ API. The inference results are correct, but when the program terminates, I encounter an error: 'double free or corruption (fasttop)' followed by 'Aborted (core dumped).'

I've tested it, and if I don't use this plugin, the model outputs the result from the previous step and exits correctly without any error.

the plugin code repo: PixelShuffle
and the full code repo: Real-ESRGAN-TRT

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the termination failure with the linked PixelShuffle plugin and Real-ESRGAN-TRT repositories, then inspect the plugin's lifecycle and cleanup paths. Done means the model still produces correct inference results and the program exits without the reported double-free or corruption error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.