Bug #23324 static mysql CLI may crash due to readline loading incompatible shared gconv lib
Submitted: 16 Oct 2006 8:23 Modified: 16 Mar 2009 11:22
Reporter: Domas Mituzas Email Updates:
Status: Won't fix Impact on me:
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.0.26 and others, mysql-standard-5.0.26 OS:Linux (Linux, MacOSX)
Assigned to: Daniel Fischer CPU Architecture:Any

[16 Oct 2006 8:23] Domas Mituzas
static bin/mysql still loads dynamic libraries from system, and if there're any incompatibilities, it would crash. for example history browsing in Asianux crashes with ISO8859-1.so


open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=21544, ...}) = 0
mmap2(NULL, 21544, PROT_READ, MAP_SHARED, 4, 0) = 0xb7d48000
close(4)                                = 0
futex(0x88514c, FUTEX_WAKE, 2147483647) = 0
open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\4\0"..., 512) = 512

How to repeat:
export LANG=en_US, do some readline activity

Suggested fix:
do not load shared modules or have them inside static binary.
[16 Mar 2009 11:22] Daniel Fischer
Closing as "won't fix", because this bug is targeted for 6.0, and we don't support static builds in 6.0.