Crash when unpacking rar files

Description:

When unpacking a file nzbget crashes with the signal SIGABRT, producing a coredump (I can send the full coredump if needed). When restarting nzbget tries again to unpack the file, again resulting in a crash.

Downgrading to the previous package version fixed the issue.

Here is an extract from the coredump:

Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
      Pass -q to turn off this notice.
           PID: 2110 (nzbget)
           UID: 1000 (benoit)
           GID: 1000 (benoit)
        Signal: 6 (ABRT)
     Timestamp: Fri 2024-07-19 09:04:05 CEST (9h ago)
  Command Line: nzbget --server
    Executable: /usr/bin/nzbget
 Control Group: /user.slice/user-1000.slice/session-3.scope
          Unit: session-3.scope
         Slice: user-1000.slice
       Session: 3
     Owner UID: 1000 (benoit)
       Boot ID: b1928eab62634c24a3071cefa1687b7d
    Machine ID: 01fcd2b6fa1b4ab882403aeaa7449c04
      Hostname: htpc
       Storage: /var/lib/systemd/coredump/core.nzbget.1000.b1928eab62634c24a3071cefa1687b7d.2110.1721372645000000.zst (present)
  Size on Disk: 605.9K
       Message: Process 2110 (nzbget) of user 1000 dumped core.

                Stack trace of thread 2118:
                #0  0x00007d39d5ea8e44 n/a (libc.so.6 + 0x94e44)
                #1  0x00007d39d5e50a30 raise (libc.so.6 + 0x3ca30)
                #2  0x00007d39d5e384c3 abort (libc.so.6 + 0x244c3)
                #3  0x00007d39d5e39354 n/a (libc.so.6 + 0x25354)
                #4  0x00007d39d5f36259 __fortify_fail (libc.so.6 + 0x122259)
                #5  0x00007d39d5f35be4 __chk_fail (libc.so.6 + 0x121be4)
                #6  0x00007d39d5f379a1 __vsnprintf_chk (libc.so.6 + 0x1239a1)
                #7  0x000062acd3f4289c n/a (nzbget + 0xa089c)
                #8  0x000062acd3f441aa n/a (nzbget + 0xa21aa)
                #9  0x000062acd3f17e5b n/a (nzbget + 0x75e5b)
                #10 0x000062acd3f09733 n/a (nzbget + 0x67733)
                #11 0x000062acd3f427b8 n/a (nzbget + 0xa07b8)
                #12 0x00007d39d60e0c84 execute_native_thread_routine (libstdc++.so.6 + 0xe0c84)
                #13 0x00007d39d5ea6ded n/a (libc.so.6 + 0x92ded)
                #14 0x00007d39d5f2a0dc n/a (libc.so.6 + 0x1160dc)

I'm in no way comfortable with debugging a coredump but one line caught my attention: #4 0x00007d39d5f36259 __fortify_fail (libc.so.6 + 0x122259)

As I researched for the issue I stumbled upon a fix mentioning fortify in a fork of nzbget: https://github.com/nzbgetcom/nzbget/pull/208

The issue mentions the fact that compiling nzbget with GCC 13 may terminate the program.
As the previous version (21.1-2) which is is from november 2022 does not crash the issue might be linked to the way the newest version of the package has been built.

Additional info:

  • package version(s): 21.1-3

Steps to reproduce:

  1. Enable unpacking in the configuration: Unpack=yes
  2. Download a NZB consisting of rar files
  3. At the end of the download the unpacking will terminate the process