Skip to content

Segmentation fault (core dumped) on some files #58

Closed

Description

@kylxbn

I have been encountering some crashes on a couple of files. I am not sure why these fails, I have verified that the files are not corrupted. Here are a couple of the files that makes rsgain crash.

rsgain-crash.zip

I have a feeling that one of the files is too short (803 milliseconds) but maybe it should just be padded with silence at the end automatically in case it is too short? But for the MP3 file, I have no idea why it crashes.

If I can provide more detail, please tell me.

I am running rsgain 3.2.1 - using:
   libebur128     1.2.6
   libavformat    60.3.100
   libavcodec     60.3.100
   libavutil      58.2.100
   libswresample  4.10.100

Built with:
   taglib         1.13.0

Compiler:         GCC 12.2
Build Date:       Apr  2 2023

Activity

  1. complexlogic commented on Apr 12, 2023

    @complexlogic
    Owner

    Thanks for the report. I traced this to the the progress bar. If you run with -q, you should notice that it does not crash. The cause is most likely overflow of a buffer that was initialized with zero or invalid size. I will have time to further investigate and provide a fix later this week.

  2. added
    bug
    on Apr 12, 2023
  3. kylxbn commented on Apr 13, 2023

    @kylxbn
    Author

    Awesome! Thank you very much!

  4. cirdanlunae commented on May 2, 2023

    @cirdanlunae

    Thanks for the report. I traced this to the the progress bar. If you run with -q, you should notice that it does not crash. The cause is most likely overflow of a buffer that was initialized with zero or invalid size. I will have time to further investigate and provide a fix later this week.

    Thank you so much for posting a workaround. You kept me from scratching my head for hours!

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions