[debian-mysql] Bug#487993: /usr/share/mysql/charsets/Index.xml should be shipped in mysql-common

Jan Van Buggenhout chipzz at safehex.be
Wed Jun 25 15:34:09 UTC 2008


Subject: /usr/share/mysql/charsets/Index.xml should be shipped in mysql-common
Package: mysql-common
Version: 5.0.32-7etch5
Severity: important


I rebuilt aprutil with mysql support, but when trying to use it I get a
crash, and the following backtrace (password deleted for obvious reasons):
#0  0x4020c143 in my_stat (path=0xbfffe7bc "/usr/share/mysql/charsets/Index.xml", stat_area=0xbfffe72c, my_flags=0) at my_lib.c:650
#1  0x40204635 in my_read_charset_file (filename=0xbfffe7bc "/usr/share/mysql/charsets/Index.xml", myflags=0) at charset.c:318
#2  0x40204f4a in init_available_charsets (myflags=0) at charset.c:425
#3  0x40205169 in get_charset_by_csname (cs_name=0x81d3698 "latin1", cs_flags=32, flags=16) at charset.c:561
#4  0x40221dad in mysql_init_character_set (mysql=0x81d7bf0) at client.c:1731
#5  0x40223d3c in mysql_real_connect (mysql=0x81d7bf0, host=0x81d5840 "192.168.1.39", user=0x81d5850 "logger", passwd=0x81d5858 "**********", db=0x81d5860 "stats", port=3306,  
    unix_socket=0x0, client_flag=0) at client.c:2129
#6  0x4005c88a in dbd_mysql_open (pool=0x81d57f8, params=0x8185e48 "host=192.168.1.39,user=logger,pass=**********,dbname=stats,port=3306") at dbd/apr_dbd_mysql.c:1517
...
[backtrace snipped as the rest is irrelevant to the mysql-common package]

This file is shipped with mysql-server, but appears to be necessary for
clients too under certain conditions.
The fix obvious, though I'm not 100% certain if this is the complete
fix. Append the following line to debian/mysql-common.files:
usr/share/mysql/charsets/Index.xml

I'm not actually sure if the other files in that dir are needed, but at
least it prevents apache from segfaulting.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

-- no debconf information





More information about the pkg-mysql-maint mailing list