Debian Bug report logs - #487993
/usr/share/mysql/charsets/Index.xml should be shipped in mysql-common

version graph

Package: mysql-common; Maintainer for mysql-common is Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>; Source for mysql-common is src:mysql-defaults (PTS, buildd, popcon).

Reported by: Jan Van Buggenhout <chipzz@safehex.be>

Date: Wed, 25 Jun 2008 15:39:02 UTC

Severity: important

Found in version mysql-dfsg-5.0/5.0.32-7etch5

Fixed in version 5.0.51a-24+lenny1

Done: Christian Hammers <ch@lathspell.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>:
Bug#487993; Package mysql-common. (full text, mbox, link).


Acknowledgement sent to Jan Van Buggenhout <chipzz@safehex.be>:
New Bug report received and forwarded. Copy sent to Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jan Van Buggenhout <chipzz@safehex.be>
To: submit@bugs.debian.org
Subject: /usr/share/mysql/charsets/Index.xml should be shipped in mysql-common
Date: Wed, 25 Jun 2008 17:34:09 +0200
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




Reply sent to Christian Hammers <ch@lathspell.de>:
You have taken responsibility. (Sun, 05 Jul 2009 21:42:04 GMT) (full text, mbox, link).


Notification sent to Jan Van Buggenhout <chipzz@safehex.be>:
Bug acknowledged by developer. (Sun, 05 Jul 2009 21:42:05 GMT) (full text, mbox, link).


Message #10 received at 487993-done@bugs.debian.org (full text, mbox, reply):

From: Christian Hammers <ch@lathspell.de>
To: 487993-done@bugs.debian.org
Subject: RE: /usr/share/mysql/charsets/Index.xml should be shipped in mysql-common
Date: Sun, 5 Jul 2009 23:37:27 +0200
Version: 5.0.51a-24+lenny1

The lenny version has all charsets compiled in and does not segfault if
you specify a different one:

$ mysql --default-character-set=dec8 -h localhost
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

$ mysql --default-character-set=xxx -h localhost
mysql: Character set 'xxx' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file

bye,

-christian-




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 03 Aug 2009 07:37:53 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 11 05:35:47 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.