1 |
I've recently tried to install teamspeak2-server-bin onto my hardened |
2 |
gentoo server. However everytime I attempt to start it, the process dies |
3 |
with a segfault. |
4 |
|
5 |
I thought I would post here first, to see if anyone has any ideas, |
6 |
before I go opening a bug. |
7 |
|
8 |
emerge --info output: |
9 |
|
10 |
Portage 2.1.1-r2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, |
11 |
2.6.17-hardened-r1 i686) |
12 |
================================================================= |
13 |
System uname: 2.6.17-hardened-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz |
14 |
Gentoo Base System version 1.12.6 |
15 |
Last Sync: Sun, 07 Jan 2007 16:30:01 +0000 |
16 |
app-admin/eselect-compiler: [Not Present] |
17 |
dev-java/java-config: 1.3.7, 2.0.31 |
18 |
dev-lang/python: 2.4.3-r4 |
19 |
dev-python/pycrypto: 2.0.1-r5 |
20 |
dev-util/ccache: [Not Present] |
21 |
dev-util/confcache: [Not Present] |
22 |
sys-apps/sandbox: 1.2.17 |
23 |
sys-devel/autoconf: 2.13, 2.61 |
24 |
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 |
25 |
sys-devel/binutils: 2.16.1-r3 |
26 |
sys-devel/gcc-config: 1.3.14 |
27 |
sys-devel/libtool: 1.5.22 |
28 |
virtual/os-headers: 2.6.17-r2 |
29 |
ACCEPT_KEYWORDS="x86" |
30 |
AUTOCLEAN="yes" |
31 |
CBUILD="i686-pc-linux-gnu" |
32 |
CFLAGS="-march=pentium4 -O2 -pipe" |
33 |
CHOST="i686-pc-linux-gnu" |
34 |
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" |
35 |
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf |
36 |
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" |
37 |
CXXFLAGS="-march=pentium4 -O2 -pipe" |
38 |
DISTDIR="/usr/portage/distfiles" |
39 |
FEATURES="autoconfig distlocks fixpackages metadata-transfer |
40 |
parallel-fetch sandbox sfperms strict userpriv" |
41 |
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo |
42 |
http://distfiles.gentoo.org |
43 |
http://www.ibiblio.org/pub/Linux/distributions/gentoo" |
44 |
MAKEOPTS="-j4" |
45 |
PKGDIR="/usr/portage/packages" |
46 |
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times |
47 |
--compress --force --whole-file --delete --delete-after --stats |
48 |
--timeout=180 --exclude='/distfiles' --exclude='/local' |
49 |
--exclude='/packages'" |
50 |
PORTAGE_TMPDIR="/var/tmp" |
51 |
PORTDIR="/usr/portage" |
52 |
PORTDIR_OVERLAY="/usr/local/portage" |
53 |
SYNC="rsync://speedy.podgeweb.com/gentoo-portage" |
54 |
USE="X acpi alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw |
55 |
alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix |
56 |
alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty |
57 |
alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks |
58 |
alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa |
59 |
alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter |
60 |
alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null |
61 |
alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route |
62 |
alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol |
63 |
apache2 async authdaemond authfile automount bash-completion berkdb |
64 |
big-tables bitmap-fonts bzip2 chroot cli courier crypt curl dba |
65 |
discard-path dlloader elibc_glibc enscript exif expat extraengine fam |
66 |
fix-connected-rt force-cgi-redirect ftp gd gdbm gif gmp hardened idn |
67 |
imap innodb input_devices_keyboard input_devices_mouse java jce jpeg |
68 |
kernel_linux lcms maildir mhash mime mmap mmx mpm-worker mysql mysqli |
69 |
nagios-dns nagios-ntp nagios-ssh ncurses nptl nptlonly offensive pam |
70 |
pcre pdf perl php pic png postfix python readline reflection samba sasl |
71 |
sensord session sockets spell spl sse sse2 ssl symlink sysfs syslog |
72 |
tcltk tcpd test tetex threads tiff tokenizer toolbar truetype |
73 |
userland_GNU userlocales vhosts vim-with-x x86 xinerama xml xorg xpm zip |
74 |
zlib" |
75 |
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, |
76 |
LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS |
77 |
|
78 |
|
79 |
After checking the init script for teamspeak, I ran it with the |
80 |
following command line: |
81 |
strace -oteamspeak-trace.txt /opt/teamspeak2-server/server_linux \ |
82 |
-db=/var/lib/teamspeak2-server/server.dbs \ |
83 |
-ini=/var/lib/teamspeak2-server/server.ini \ |
84 |
-log=/var/log/teamspeak2-server/server.log \ |
85 |
-pid=/var/run/teamspeak2-server/server.pid \ |
86 |
-sql=/opt/teamspeak2-server/sql/ \ |
87 |
-tcpquerydocs=/opt/teamspeak2-server/tcpquerydocs \ |
88 |
-httpdocs=/opt/teamspeak2-server/http/ |
89 |
|
90 |
The trace file is attached. It's rather short. My guess is that the |
91 |
mmap2 call on the second to last line, which returns 0, is to blame. |
92 |
However if anyone can shed some light on why this is happening and how |
93 |
to work around it, that would be great. |
94 |
|
95 |
Shawn |