Menu

#366 Bug in minidlna. Can not parse m4a files properly. Program halts

v1.0 (example)
open
Bug (1)
1
5 days ago
5 days ago
shobhit
No

The parser for m4a files in minidlna fails. And due to this, the program do not further the scan. Happens everytime for m4a files.

[log]

 coredumpctl debug minidlnad
           PID: 368247 (minidlnad)
           TID: 368261 (minidlnad)
           UID: 1000 (shobhit)
           GID: 1000 (shobhit)
        Signal: 8 (FPE) si_code: FPE_INTDIV
     Timestamp: Wed 2026-08-05 05:01:08 IST (19h ago)
  Command Line: /usr/bin/minidlnad -S
    Executable: /usr/bin/minidlnad
 Control Group: /system.slice/minidlna.service
          Unit: minidlna.service
         Slice: system.slice
       Boot ID: 23d452e52e284436bbd7301da0df3230
    Machine ID: e3596371f9b348aeb1a7691c3b565283
      Hostname: arch
       Storage: /var/lib/systemd/coredump/core.minidlnad.1000.23d452e52e284436bbd7301da0df3230.368247.1785886268000000.zst (truncated)
  Size on Disk: 2M
       Message: Process 368247 (minidlnad) of user 1000 dumped core.

                Stack trace of thread 368261:
                #0  0x0000562631d7fd80 n/a (/usr/bin/minidlnad + 0x29d80)
                #1  0x0000562631d70941 n/a (/usr/bin/minidlnad + 0x1a941)
                #2  0x0000562631d7684c n/a (/usr/bin/minidlnad + 0x2084c)
                #3  0x0000562631d7d65f n/a (/usr/bin/minidlnad + 0x2765f)
                #4  0x0000562631d872b5 n/a (/usr/bin/minidlnad + 0x312b5)
                #5  0x00007fada7497f42 n/a (n/a + 0x0)
                #6  0x00007fada751efac n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

GNU gdb (GDB) 17.2
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/minidlnad...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Reading symbols from /home/shobhit/.cache/debuginfod_client/b7a5c1a69af73d4640d57f9255fb3e2427114df7/debuginfo...

⚠️ warning: BFD: warning: /var/tmp/coredump-rs5Jx5 has a segment extending past end of file

⚠️ warning: Can't open file /usr/lib/libpangoft2-1.0.so.0.5800.0 during file-backed mapping note processing

⚠️ warning: Can't open file /usr/lib/libpango-1.0.so.0.5800.0 during file-backed mapping note processing

⚠️ warning: Can't open file /usr/lib/libpangocairo-1.0.so.0.5800.0 during file-backed mapping note processing

⚠️ warning: Can't open file /etc/ld.so.cache (deleted) during file-backed mapping note processing
[New LWP 368261]
[New LWP 368247]

⚠️ warning: failed to parse execution context from corefile: Cannot access memory at address 0x7ffed6e8ffe0

⚠️ warning: Error reading shared library list entry at 0x27de7
❌️ Cannot access memory at address 0x61775f6b636f6c67
❌️ Cannot access memory at address 0x61775f6b636f6c5f
❌️ Failed to read a valid object file image from memory.
Core was generated by `/usr/bin/minidlnad -S'.
Program terminated with signal SIGFPE, Arithmetic exception.
#0  0x0000562631d7fd80 in _get_aacfileinfo (file=0x7fad943f5310 "/home/shobhit/Music/Aasman Ko Chukar.m4a", psong=0x7fad943f1c20)
    at tagutils/tagutils-aac.c:311
311         psong->song_length = (int)((samples * ms) / sample_size);
[Current thread is 1 (LWP 368261)]

Please fix this problem as soon as possible.

Discussion


Log in to post a comment.