Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214384 - x11-misc/suxpanel-0.4b segfaults on amd64
Summary: x11-misc/suxpanel-0.4b segfaults on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-23 15:00 UTC by Santiago M. Mola (RETIRED)
Modified: 2008-04-09 02:37 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 Santiago M. Mola (RETIRED) gentoo-dev 2008-03-23 15:00:22 UTC
x11-misc/suxpanel-0.4b segfaults on start unless it's compiled with CFLAGS="-O0".

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2af29788cd70 (LWP 7656)]
0x00002af29459b22f in IA__g_path_is_absolute (
    file_name=0x1 <Address 0x1 out of bounds>) at gutils.c:735
735	gutils.c: No such file or directory.
	in gutils.c
(gdb) bt full
#0  0x00002af29459b22f in IA__g_path_is_absolute (
    file_name=0x1 <Address 0x1 out of bounds>) at gutils.c:735
	__PRETTY_FUNCTION__ = "IA__g_path_is_absolute"
#1  0x00002af29459cacb in IA__g_find_program_in_path (
    program=0x1 <Address 0x1 out of bounds>) at gutils.c:414
	path = <value optimized out>
	p = <value optimized out>
	name = <value optimized out>
	len = <value optimized out>
	pathlen = <value optimized out>
	__PRETTY_FUNCTION__ = "IA__g_find_program_in_path"
#2  0x00002af2984ef4ff in sux_init (sm=0x675d40, args=<value optimized out>)
    at apps.c:75
	buf = (gchar *) 0x676680 "/root/.suxpanel/apps"
#3  0x0000000000403741 in sux_panel_pack_module ()
No symbol table info available.
#4  0x000000000040401c in sux_panel_load_modules ()
No symbol table info available.
#5  0x00000000004040f8 in main ()
No symbol table info available.


mangurrian suxpanel-0.4b # emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
Timestamp of tree: Fri, 21 Mar 2008 18:49:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
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.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-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/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/var/distfiles"
FEATURES="collision-protect distlocks metadata-transfer multilib-strict sandbox sfperms strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding cairo cdr cli cracklib crypt cups d dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox flac fortran gcj gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg kerberos ladspa ldap mad midi mikmod mmx mono mp3 mpeg mudflap musepack ncurses nls nptl nptlonly objc ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd theora tiff truetype unicode usb vorbis xml xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="none vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paul Goldbaum (AMD64 Arch Tester) 2008-03-24 00:24:02 UTC
Happened for me too. Fixed it by adding 

#include <stdlib.h>

in settings.c
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2008-04-03 16:33:52 UTC
(In reply to comment #1)
> Happened for me too. Fixed it by adding 
> 
> #include <stdlib.h>
> 
> in settings.c
> 

This only fixed the obvious compiler warnings (implicit declarations of malloc) for me.. so did both, forced -O0 and included stdlib

Someone please mail the upstream
Comment 3 kenshinxf 2008-04-09 02:37:21 UTC
here's in suxpanel-0.4b-r1.ebuild
I got the same segfaults error on suxpanel start up

when i hack the ebuild and 

 src_unpack() {
     unpack ${A}
     cd "${S}"
-   epatch "${FILESDIR}"/${P}-Makefile.in.patch
      epatch "${FILESDIR}"/${P}-stdlib.patch

and remerge it  all things ok