[Midnight Commander] #4495: Core:test_path_length:3 test failure when linked against musl

0 views
Skip to first unread message

Ticket System

unread,
Aug 20, 2023, 8:39:10 AM8/20/23
to mar...@gentoo.org, mc-...@googlegroups.com
#4495: Core:test_path_length:3 test failure when linked against musl
--------------------------------+------------------------------
Reporter: Marecki | Type: defect
Status: new | Priority: minor
Milestone: Future Releases | Component: tests
Version: master | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------------+------------------------------
Since at least version 4.8.29, Midnight Commander fails one of its tests
when linked against MUSL:

path_len.c:116:F:Core:test_path_length:3: Assertion 'actual_length ==
data->expected_length' failed: actual_length == 12, data->expected_length
== 38

The same test passes when mc is linked against glibc. I suspect this might
have something to do with how limited iconv support is in MUSL but
unfortunately I know nowhere nearly enough about either that libc or mc
internals to attempt to fix the problem myself.

Version information for both glibc- and musl-linked mc-4.8.30. In either
case Midnight Commander was installed directly into a clean test system so
different libc implementation should have been the only difference between
the two:

*** built against musl ***

GNU Midnight Commander 4.8.30
Built with GLib 2.76.3
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, fish
Data types:
char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

*** built agains glibc ***

GNU Midnight Commander 4.8.30
Built with GLib 2.76.3
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, fish
Data types:
char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

--
Ticket URL: <http://www.midnight-commander.org/ticket/4495>
Midnight Commander <https://midnight-commander.org>
Midnight Development Center

Reply all
Reply to author
Forward
0 new messages