Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196334 - net-irc/xchat-2.8.4-r1 segfaults with uk_UA.UTF-8 locale
Summary: net-irc/xchat-2.8.4-r1 segfaults with uk_UA.UTF-8 locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Packages in net-irc
URL: http://www.xchat.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 22:02 UTC by Oleksandr Pilipenko
Modified: 2008-02-07 22:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
FEATURES="nostrip" USE="debug" CFLAGS="-march=athlon-tbird -g -ggdb" (build.log,2.68 KB, text/plain)
2007-10-18 22:03 UTC, Oleksandr Pilipenko
Details
patch for xchat-2.8.4/src/fe-gtk/fe-gtk.c (xchat-fix-uk_UA-locale.diff,397 bytes, patch)
2008-02-07 11:54 UTC, Dawid Węgliński (RETIRED)
Details | Diff
ebuild (xchat-2.8.4-r4.ebuild,2.67 KB, text/plain)
2008-02-07 11:55 UTC, Dawid Węgliński (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr Pilipenko 2007-10-18 22:02:04 UTC
I have "Segmentation fault" with net-irc/xchat-2.8.4-r1 when i trying to run with  locale(uk_UA.UTF-8), after press button "Connect" (to server). 
Compile with debug useflag unsuccessfully:
FEATURES="nostrip" USE="debug" CFLAGS="-march=athlon-tbird -g -ggdb"

Reproducible: Always

Steps to Reproduce:
Comment 1 Oleksandr Pilipenko 2007-10-18 22:02:40 UTC
Portage 2.1.3.14 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8-filin i686)
=================================================================
System uname: 2.6.22-gentoo-r8-filin i686 AMD Duron(tm) processor
Timestamp of tree: Thu, 18 Oct 2007 18:00:09 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=athlon-tbird -mtune=athlon-tbird -march=athlon-tbird -pipe -mno-sse -mmmx -m3dnow -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=athlon-tbird -mtune=athlon-tbird -march=athlon-tbird -pipe -mno-sse -mmmx -m3dnow -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mneisen.org/ ftp://213.186.33.37/gentoo-distfiles/ ftp://194.117.143.70/sites/gentoo ftp://194.117.143.71/sites/gentoo ftp://ftp.mneisen.org/gentoo"
LANG="uk_UA.utf8"
LC_ALL=""
LINGUAS="uk ru"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa avahi bash-completion berkdb bitmap-fonts bluetooth bzip2 cli cracklib crypt cups dbus dri dvd dvdr dvdread encode esd exif ffmpeg flac fortran gdbm gif glitz gnome gpm gtk hal iconv isdnlog java jpeg lm_sensors logrotate mad mailwrapper midi mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python readline reflection session spell spl ssl startup-notification svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vim-syntax vorbis win32codecs x86 xorg xulrunner xv zlib" ALSA_CARDS="via82xx emu10k1 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="uk ru" USERLAND="GNU" VIDEO_CARDS="nv vesa nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Oleksandr Pilipenko 2007-10-18 22:03:49 UTC
Created attachment 133834 [details]
FEATURES="nostrip" USE="debug" CFLAGS="-march=athlon-tbird -g -ggdb"
Comment 3 Oleksandr Pilipenko 2007-10-18 22:12:24 UTC
I see bug 113061. 
emerge -e world and revdep-rebuild -i not solved problem
Comment 4 Sabeeh Baig 2007-10-21 23:53:11 UTC
Can you post the terminal output when it crashes?  Does it only segmentation fault or does it give something more? I'm having issues with XChat as well.

Comment 5 Oleksandr Pilipenko 2007-10-22 05:40:48 UTC
Only "Segmentation fault".
Comment 6 Oleksandr Pilipenko 2007-10-22 20:16:12 UTC
I have compiled xchat with debug useflag:
FEATURES="nostrip" USE="debug" CFLAGS="-O2 -mcpu=athlon-tbird -mtune=athlon-tbird -march=athlon-tbird -pipe -mno-sse -mmmx -m3dnow -g -ggdb" emerge xchat

(gdb) run
Starting program: /usr/bin/xchat 

Program received signal SIGSEGV, Segmentation fault.
0xb7486d80 in g_markup_escape_text () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0  0xb7486d80 in g_markup_escape_text () from /usr/lib/libglib-2.0.so.0
#1  0xb74d57e4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x08312efe in ?? ()
#3  0xb74ed360 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb7f80ff4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#5  0x00000000 in ?? ()

and Gnome Bug Buddy trace back:
System: Linux 2.6.22-gentoo-r8-filin #1 PREEMPT Thu Sep 27 16:40:29 EEST 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10300000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Glossy
Icon Theme: gnome

Memory status: size: 36802560 vsize: 36802560 resident: 21000192 share: 10973184 rss: 21000192 rss_rlim: 4294967295
CPU usage: start_time: 1193083507 rtime: 89 utime: 73 stime: 16 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/xchat'

[?1034hUsing host libthread_db library "/lib/libthread_db.so.1".
0xffffe410 in __kernel_vsyscall ()
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb76d9e53 in waitpid () from /lib/libpthread.so.0
#2  0xb74d4f1b in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#3  0x00000000 in ?? ()
The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Comment 7 Dawid Węgliński (RETIRED) gentoo-dev 2008-02-07 11:54:45 UTC
Created attachment 142874 [details, diff]
patch for xchat-2.8.4/src/fe-gtk/fe-gtk.c
Comment 8 Dawid Węgliński (RETIRED) gentoo-dev 2008-02-07 11:55:39 UTC
Created attachment 142875 [details]
ebuild

Please check if this ebuild works for you and fixes your problem.
Comment 9 Oleksandr Pilipenko 2008-02-07 22:16:21 UTC
It work fine.  Thanks.
Comment 10 Dawid Węgliński (RETIRED) gentoo-dev 2008-02-07 22:57:20 UTC
Commited to cvs, thanks for testing :)