Package: libc-bin Version: 2.31-13+deb11u2 Severity: normal File: /usr/bin/iconv
Dear Maintainer, Steps: % wget https://raw.githubusercontent.com/4creators/jxrlib/master/common/include/wmsal.h % iconv -f CP1251 -t UTF-8 wmsal.h -o wmsal.h zsh: bus error iconv -f CP1251 -t UTF-8 wmsal.h -o wmsal.h I see this documented as well known error: https://myotragusbalearicus.wordpress.com/2010/03/10/batch-convert-files-to-utf-8/ For reference: Program received signal SIGBUS, Bus error. 0x00007ffff7fc0578 in from_gap (irreversible=0x7fffffff5990, outend=0x55555556dfc0 "", outptrp=<synthetic pointer>, inend=0x7ffff7fbe69e <error: Cannot access memory at address 0x7ffff7fbe69e>, inptrp=0x7fffffff5ad8, step_data=0x555555565fd0, step=0x555555565800) at ../iconv/loop.c:336 336 BODY (gdb) bt #0 0x00007ffff7fc0578 in from_gap (irreversible=0x7fffffff5990, outend=0x55555556dfc0 "", outptrp=<synthetic pointer>, inend=0x7ffff7fbe69e <error: Cannot access memory at address 0x7ffff7fbe69e>, inptrp=0x7fffffff5ad8, step_data=0x555555565fd0, step=0x555555565800) at ../iconv/loop.c:336 #1 gconv (step=0x555555565800, data=0x555555565fd0, inptrp=0x7fffffff5ad8, inend=0x7ffff7fbe69e <error: Cannot access memory at address 0x7ffff7fbe69e>, outbufstart=0x0, irreversible=0x7fffffff5a70, do_flush=0, consume_incomplete=0) at ../iconv/skeleton.c:620 #2 0x00007ffff7dd56bf in __gconv (cd=0x555555565fc0, inbuf=inbuf@entry=0x7fffffff5ad8, inbufend=0x7ffff7fbe69e <error: Cannot access memory at address 0x7ffff7fbe69e>, outbuf=outbuf@entry=0x7fffffff5ae0, outbufend=<optimized out>, irreversible=irreversible@entry=0x7fffffff5a70) at gconv.c:78 #3 0x00007ffff7dd50e7 in iconv (cd=<optimized out>, inbuf=0x7fffffff5ad8, inbytesleft=0x7fffffff5ad0, outbuf=0x7fffffff5ae0, outbytesleft=0x7fffffff5ae8) at iconv.c:52 #4 0x0000555555558274 in ?? () #5 0x000055555555780b in ?? () #6 0x00007ffff7dd4d0a in __libc_start_main (main=0x5555555575a0, argc=8, argv=0x7fffffffdd58, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdd48) at ../csu/libc-start.c:308 #7 0x0000555555557d1a in ?? () (gdb) list 331 332 /* Here comes the body the user provides. It can stop with 333 RESULT set to GCONV_INCOMPLETE_INPUT (if the size of the 334 input characters vary in size), GCONV_ILLEGAL_INPUT, or 335 GCONV_FULL_OUTPUT (if the output characters vary in size). */ 336 BODY 337 } 338 339 /* Update the pointers pointed to by the parameters. */ 340 *inptrp = inptr; (gdb) Thanks -- System Information: Debian Release: 11.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.14.0-0.bpo.2-amd64 (SMP w/8 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libc-bin depends on: ii libc6 2.31-13+deb11u2 Versions of packages libc-bin recommends: ii manpages 5.10-1 libc-bin suggests no packages. -- no debconf information