Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409555 - net-im/gg-transport-2.2.4 segmentation fault in local_translate (str=0x34eb52fbcac "\203=\365\377\060") at main.c:267
Summary: net-im/gg-transport-2.2.4 segmentation fault in local_translate (str=0x34eb52...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 14:09 UTC by Marcin Mirosław
Modified: 2016-08-25 09:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2012-03-24 14:09:32 UTC
jggtransport is killing by hardened-kernel, in dmesg i can find:

[705011.307357] jggtrans[46908] trap int3 ip:2cfb4bd1e7c sp:3aede48f840 error:0                                              
[705011.307377] grsec: From 62.121.127.119: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for usr/sbin/jggtrans[jggtrans:46908] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:44975] uid/euid:0/0 gid/egid:0/0

With pl_PL.utf8 locale:
 gdb /usr/sbin/jggtrans
GNU gdb (Gentoo 7.3.1 p2) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/sbin/jggtrans...Reading symbols from /usr/lib64/debug/usr/sbin/jggtrans.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/jggtrans
2012-03-24 15:05:50 Błąd krytyczny: Nie można załadować konfiga!

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0000034eb5d05e7c in ?? ()
(gdb) bt
#0  0x0000034eb5d05e7c in ?? ()
#1  0x0000000000000006 in ?? ()
#2  0x0000000000000005 in ?? ()
#3  0x000000000b17391f in ?? ()
#4  0x0000000000000001 in ?? ()
#5  0x0000006cf1954e82 in local_translate (str=0x34eb52fbcac "\203=\365\377\060") at main.c:267
#6  0x0000000000000000 in ?? ()
(gdb) bt full
#0  0x0000034eb5d05e7c in ?? ()
No symbol table info available.
#1  0x0000000000000006 in ?? ()
No symbol table info available.
#2  0x0000000000000005 in ?? ()
No symbol table info available.
#3  0x000000000b17391f in ?? ()
No symbol table info available.
#4  0x0000000000000001 in ?? ()
No symbol table info available.
#5  0x0000006cf1954e82 in local_translate (str=0x34eb52fbcac "\203=\365\377\060") at main.c:267
        lc_ctype = 0x5 <Address 0x5 out of bounds>
        lc_messages = 0x6 <Address 0x6 out of bounds>
        td_codeset = 0xb17391f <Address 0xb17391f out of bounds>
        ret = 0x34eb5d06219 "1\300\017\266T$\030\351\002\376\377\377D\211\305H\213\005!\310."
#6  0x0000000000000000 in ?? ()
No symbol table info available.

With en_US.utf8 locale:
 LC_ALL=en_US.utf.8 LANG=en gdb /usr/sbin/jggtrans
GNU gdb (Gentoo 7.3.1 p2) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/sbin/jggtrans...Reading symbols from /usr/lib64/debug/usr/sbin/jggtrans.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/jggtrans
2012-03-24 15:07:28 Fatal error: Couldn't load config!

Program received signal SIGTRAP, Trace/breakpoint trap.
0x000003271b45ae7c in ?? ()
(gdb) bt
#0  0x000003271b45ae7c in ?? ()
#1  0x0000032700000006 in ?? ()
#2  0x0000000000000005 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) bt full
#0  0x000003271b45ae7c in ?? ()
No symbol table info available.
#1  0x0000032700000006 in ?? ()
No symbol table info available.
#2  0x0000000000000005 in ?? ()
No symbol table info available.
#3  0x0000000000000000 in ?? ()
No symbol table info available.


Reproducible: Always




# emerge --info
FEATURES variable contains unknown value(s): Xkeepwork, Xprofile, Xtest, profile-use
Portage 2.2.0_alpha95 (hardened/linux/amd64, gcc-4.5.3, glibc-2.13-r4, 3.2.11-hardened x86_64)
=================================================================
System uname: Linux-3.2.11-hardened-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 24 Mar 2012 10:00:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
Installed sets:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O0 -g -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cg
i-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O0 -g -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=n"
FEATURES="Xkeepwork Xprofile Xtest assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fail-clean fixlafiles news parallel-fetch preser
ve-libs profile-use protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync
 xattr"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mneisen.org/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j2 -l2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude
=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi amd64 apache2 bash-completion caps hardened idn iproute2 ipv6 mmap mmx mmxext modules multilib nls openmp openssl smp sse sse2 sse3 sse4 sse4a ssse3
 syslog threads threadsafe unicode urandom vhosts vim-syntax xtpax" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon auth_digest authn_dbm aut
hn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user cache cgid dav dav_fs dav_lock dir env expires ext_filter filt
er headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif status unique_id usertrack vhost_alias" APACHE2_MPMS="prefork"
 ELIBC="glibc" KERNEL="linux" LINGUAS="pl en" NGINX_MODULES_HTTP="access browser charset gzip map limit_zone proxy rewrite stub_status" PHP_TARGETS="php5-3" 
USERLAND="GNU" XTABLES_ADDONS="geoip ipset6 psd sysrq tarpit"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Pacho Ramos gentoo-dev 2016-08-24 13:07:52 UTC
please retry with 2.2.6
Comment 2 Marcin Mirosław 2016-08-25 08:11:54 UTC
No change but:
# sudo -u jabber  /usr/sbin/jggtrans -f /etc/jabber/jggtrans.xml 
2016-08-25 10:07:28 Restarting in 60 seconds.


^C2016-08-25 10:07:31 Exiting normally.

# sudo -u jabber  /usr/sbin/jggtrans -f /etc/jabber/jggtrans.xml -u jabber

** (process:4031): CRITICAL **: Cannot change user.

So if jggtrans is started without requesting changing running user (-u) then it works. Looking at output from gdb I suspect that there is something wrong with translation files.
Comment 3 Pacho Ramos gentoo-dev 2016-08-25 09:04:50 UTC
That looks like a different bug 

In that case it would be better to report that new bug (with 2.2.6) to upstream -> https://github.com/Jajcus/jggtrans/issues

Anyway I am unsure if upstream is still alive :/