Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 91801

Summary: eterm-0.9.3-r3 segfaults at startup after upgrade due to missing image
Product: Gentoo Linux Reporter: Wonko <wonko>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED NEEDINFO    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Wonko 2005-05-07 07:56:00 UTC
After upgrading from 0.9.2-r6 to 0.9.3-r3, Eterm does no longer start.
Tail of strace log:
getcwd("/home/wonko", 4096)             = 12
access("Eterm/theme.cfg", R_OK)         = -1 ENOENT (No such file or directory)
access("/home/wonko/.Eterm/themes/Eterm/theme.cfg", R_OK) = 0
stat64("/home/wonko/.Eterm/themes/Eterm/theme.cfg", {st_mode=S_IFREG|0644, st_size=25956, ...}) = 0
getcwd("/home/wonko", 4096)             = 12
chdir("/home/wonko/.Eterm/themes/Eterm") = 0
open("theme.cfg", O_RDONLY)             = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=25956, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b93000
read(4, "<Eterm-0.9.1>\n# Eterm Configurat"..., 4096) = 4096
getcwd("/home/wonko/.Eterm/themes/Eterm", 4096) = 32
access("/home/wonko/.Eterm/themes/Eterm//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("./pix//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko/.Eterm//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko/.Eterm/themes/Eterm/pix//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko/.Eterm/pix//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/Eterm/pix//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/Eterm/themes/Eterm//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko/.Eterm/themes/Eterm//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko/.Eterm/themes/Eterm//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
access("/home/wonko/.Eterm/themes/Eterm//usr/share/Eterm/pix/tile/atoms.jpg", R_OK) = -1 ENOENT (No such file or directory)
write(2, "Eterm:  Error:  ", 16Eterm:  Error:  )        = 16
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(2, "Eterm:  Error:  ", 16Eterm:  Error:  )        = 16
write(2, "Received terminal signal SIGSEGV"..., 38Received terminal signal SIGSEGV (11)
) = 38
rt_sigaction(SIGSEGV, {SIG_DFL}, {0xb7f94efa, [SEGV], SA_RESTART}, 8) = 0
setresgid32(100, 100, 100)              = 0
setresuid32(1000, 1000, 1000)           = 0
umask(077)                              = 022
write(2, "Eterm:  Error:  ", 16Eterm:  Error:  )        = 16
write(2, "Attempting to dump a stack trace"..., 37Attempting to dump a stack trace....
) = 37
rt_sigaction(SIGTSTP, {0xb7c35d00, [TSTP], SA_RESTART}, {SIG_DFL}, 8) = 0
stat64("/usr/share/Eterm/gdb.scr", 0xbfff3870) = -1 ENOENT (No such file or directory)
exit_group(11)                          = ?

Seems that there no longer is a /usr/share/Eterm/pix/tile/atoms.jpg which I had in my themes.cfg file. Easy to fix once one knows where to look.

Reproducible: Always
Steps to Reproduce:
1. put non-existing image after file argument in theme.cfg
2. start Eterm
Actual Results:  
wonko@weird wonko --> Eterm 
Eterm:  Error:  Eterm:  Error:  Received terminal signal SIGSEGV (11)
Eterm:  Error:  Attempting to dump a stack trace....

Expected Results:  
An Eterm should open, or at least an error message should appear telling about
the missing file.

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#1,
May  1 2005, 00:15:17)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.4.3-r4, 1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -Os -pipe -fforce-addr -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/sane.d /etc/sound/events /etc/terminfo
/etc/webmin /usr/lib/X11/xkb /usr/share/texmf/dvips/config /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -pipe -fforce-addr -fomit-frame-pointer"
DISTDIR="/mnt/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect distcc
distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
rsync://ftp.snt.utwente.nl/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/mnt/portage/hosts/weird/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/portage/gentoo-portage"
PORTDIR_OVERLAY="/mnt/portage/local"
SYNC="rsync://zone.wonkology.org/gentoo-portage"
USE="x86 3dnow Icms X aalib acl acpi adns alsa apm artswrappersuid avi berkdb
bitmap-fonts bonobo cdr crypt cscope cups curl dga directfb doc dvd dvdr eds
emboss encode esd fam fbcon flac foomaticdb fortran gd gdbm ggi gif gnome gphoto
gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 jabber jack java
jikes jpeg kde ldap libg++ libwww mad maildir matrox mikmod mmx motif mozilla
mp3 mpeg nas ncurses nls ogg oggvorbis opengl oss pam pdflib perl plotutils png
python qt qtmt quicktime readline ruby samba scanner sdl slang speex spell
sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts
unicode vorbis wmf xine xml xml2 xmms xms xv zlib fritzcapi_cards_fcpci
linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 SpanKY gentoo-dev 2005-05-07 16:30:32 UTC
please post your config file
Comment 2 Wonko 2005-05-07 17:16:20 UTC
Here it is.

<Eterm-0.9.1>
# Eterm Configuration File
# Automatically generated by Eterm-0.9.1 on 2003/01/11 at 04:56:37
begin color
    foreground #aaaaaa
    background black
    cursor #ffff00
    cursor_text #880000
    pointer white
    video normal
    color 0 #000000
    color 1 #aa0000
    color 2 #008800
    color 3 #aa5522
    color 4 #0000aa
    color 5 #aa00aa
    color 6 #00aaaa
    color 7 #aaaaaa
    color 8 #444444
    color 9 #ff4444
    color 10 #44ff44
    color 11 #ffff44
    color 12 #4444ff
    color 13 #ff44ff
    color 14 #44ffff
    color 15 #ffffff
    color bd #ffffff
    color ul #ffffff
end color

begin attributes
    title Eterm
    name Eterm
    iconname Eterm
    scrollbar_type motif
    scrollbar_width 10
    font default 4
    font proportional 0
    font 0 5x7
    font 1 6x10
    font 2 fixed
    font 3 8x13
    font 4 9x15
    font 5 10x20
    font 6 12x24
end attributes

begin imageclasses
    path "./pix/:~/.Eterm/:~/.Eterm/themes/Eterm/pix:~/.Eterm/pix/:/usr/share/Eterm/pix/:/home/wonko:/usr/share/Eterm/themes/Eterm:/home/wonko/.Eterm/themes/Eterm:/home/wonko:/home/wonko/.Eterm/themes/Eterm:/home/wonko/.Eterm/themes/Eterm"
    begin image
      type background
      mode trans allow image trans viewport auto
      state normal
      file /usr/share/Eterm/pix/tile/atoms.jpg
      geom 0x0+0+0:tiled
      colormod image 0x80 0x100 0x100
    end image
    begin image
      type up_arrow
      mode image allow image auto
      state normal
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/button_arrow_up_1.png
      geom 100x100+50+50
      border 2 2 2 2
      state selected
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/button_arrow_up_2.png
      geom 100x100+50+50
      border 2 2 2 2
      state clicked
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/button_arrow_up_3.png
      geom 100x100+50+50
      border 2 2 2 2
    end image
    begin image
      type down_arrow
      mode image allow image auto
      state normal
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/button_arrow_down_1.png
      geom 100x100+50+50
      border 2 2 2 2
      state selected
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/button_arrow_down_2.png
      geom 100x100+50+50
      border 2 2 2 2
      state clicked
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/button_arrow_down_3.png
      geom 100x100+50+50
      border 2 2 2 2
    end image
    begin image
      type left_arrow
      mode solid
      state normal
      color 0x00ffffff 0x00000000
      geom 0x0+0+0
    end image
    begin image
      type right_arrow
      mode solid
      state normal
      color 0x00ffffff 0x00000000
      geom 0x0+0+0
    end image
    begin image
      type trough
      mode trans allow image trans viewport auto
      state normal
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/bar_vertical_3.png
      geom 100x100+50+50
      border 2 2 2 3
    end image
    begin image
      type anchor
      mode image allow image auto
      state normal
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/bar_vertical_1.png
      geom 100x100+50+50
      border 2 2 2 3
      state selected
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/bar_vertical_2.png
      geom 100x100+50+50
      border 2 2 2 3
      state clicked
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/bar_vertical_2.png
      geom 100x100+50+50
      border 2 2 2 3
    end image
    begin image
      type thumb
      mode image allow image auto
      state normal
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/thumb_1.png
      geom 100x100+50+50
      border 3 3 3 3
      state selected
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/thumb_2.png
      geom 100x100+50+50
      border 3 3 3 3
      state clicked
      color 0x00000000 0x00666666
      file /usr/share/Eterm/pix/thumb_2.png
      geom 100x100+50+50
      border 3 3 3 3
    end image
    begin image
      type menu
      mode image allow image auto
      state normal
      color 0x00000000 0x00999999
      file /usr/share/Eterm/pix/bar_horizontal_1.png
      geom 100x100+50+50
      border 2 3 2 3
      state selected
      color 0x00000000 0x00999999
      file /usr/share/Eterm/pix/bar_horizontal_2.png
      geom 100x100+50+50
      border 2 3 2 3
      state clicked
      color 0x00000000 0x00999999
      file /usr/share/Eterm/pix/bar_horizontal_2.png
      geom 100x100+50+50
      border 2 3 2 3
    end image
    begin image
      type menuitem
      mode solid
      state normal
      color 0x00ffffff 0x00000000
      geom 0x0+0+0
    end image
    begin image
      type submenu
      mode image allow image auto
      state normal
      color 0x00000000 0x00999999
      file /usr/share/Eterm/pix/menu1.png
      geom 100x100+50+50
      border 3 15 3 3
      padding 3 15 3 3
      state selected
      color 0x00000000 0x00999999
      file /usr/share/Eterm/pix/menu2.png
      geom 100x100+50+50
      border 3 15 3 3
      padding 3 15 3 3
      state clicked
      color 0x00000000 0x00999999
      file /usr/share/Eterm/pix/menu3.png
      geom 100x100+50+50
      border 3 15 3 3
      padding 3 15 3 3
    end image
    begin image
      type button
      mode image allow image auto
      state normal
      color 0x00000000 0x00cccccc
      file /usr/share/Eterm/pix/bar_horizontal_1.png
      geom 100x100+50+50
      border 2 3 2 2
      state selected
      color 0x00000000 0x00cccccc
      file /usr/share/Eterm/pix/bar_horizontal_2.png
      geom 100x100+50+50
      border 2 3 2 2
      state clicked
      color 0x00000000 0x00cccccc
      file /usr/share/Eterm/pix/bar_horizontal_3.png
      geom 100x100+50+50
      border 2 3 2 2
    end image
    begin image
      type button_bar
      mode image allow image auto
      state normal
      color 0x00000000 0x00999999
      file /usr/share/Eterm/pix/bar_horizontal_1.png
      geom 100x100+50+50
      border 2 3 2 2
      state disabled
      color 0x00ffffff 0x00333333
      file /usr/share/Eterm/pix/bar_horizontal_1.png
      geom 100x100+50+50
      colormod image 0xc0 0x100 0x100
      border 2 3 2 2
    end image
    begin image
      type grab_bar
      mode solid
      state normal
      color 0x00ffffff 0x00000000
      geom 0x0+0+0
    end image
    begin image
      type dialog_box
      mode solid
      state normal
      color 0x00ffffff 0x00000000
      geom 0x0+0+0
    end image
end imageclasses

begin menu
    title "Font"
    begin menuitem
      text "Normal"
      action string '^[]50;#^G'
    end
    begin menuitem
      text "Larger"
      action string '^[]50;#+^G'
    end
    begin menuitem
      text "Smaller"
      action string '^[]50;#-^G'
    end
    -
    begin menuitem
      text "Font 1"
      action string '^[]50;#1^G'
    end
    begin menuitem
      text "Font 2"
      action string '^[]50;#2^G'
    end
    begin menuitem
      text "Font 3"
      action string '^[]50;#3^G'
    end
    begin menuitem
      text "Font 4"
      action string '^[]50;#4^G'
    end
end menu
begin menu
    title "Toggles"
    begin menuitem
      text "Cursor Visible"
      action string '^[[?25t'
    end
    begin menuitem
      text "Home on Output"
      action string '^[[?1010t'
    end
    begin menuitem
      text "Home on Input"
      action string '^[[?1012t'
    end
    begin menuitem
      text "Map Alert"
      action string '^[]6;21^G'
    end
    begin menuitem
      text "Primary/Secondary Screen"
      action string '^[[?47t'
    end
    begin menuitem
      text "Reverse Video"
      action string '^[[?5t'
    end
    begin menuitem
      text "Select Trailing Spaces"
      action string '^[]6;25^G'
    end
    begin menuitem
      text "Select Whole Line on Triple-click"
      action string '^[]6;23^G'
    end
    begin menuitem
      text "Visual Bell"
      action string '^[]6;20^G'
    end
    begin menuitem
      text "X11 Mouse Reporting"
      action string '^[[?1000t'
    end
    begin menuitem
      text "Xterm Selection Behavior"
      action string '^[]6;22^G'
    end
end menu
begin menu
    title "Keys"
    begin menuitem
      text "Application Arrow Keys"
      action string '^[[?1t'
    end
    begin menuitem
      text "Application Keypad"
      action string '^[[?66t'
    end
    begin menuitem
      text "Backspace/Delete"
      action string '^[[?67t'
    end
    begin menuitem
      text "Xterm Shift-Keys"
      action string '^[[?35t'
    end
end menu
begin menu
    title "Scrollbar"
    begin menuitem
      text "Toggle Visibility"
      rtext "Ctrl-Button2"
      action string '^[[?30t'
    end
    begin menuitem
      text "Swap Sides"
      action string '^[]6;11^G'
    end
    begin menuitem
      text "Toggle Floating"
      action string '^[]6;12^G'
    end
    begin menuitem
      text "Toggle Popup Mode"
      action string '^[]6;13^G'
    end
    -
    begin menuitem
      text "Motif (Traditional) Style"
      action string '^[]6;10;motif;;^G'
    end
    begin menuitem
      text "NeXT Style"
      action string '^[]6;10;next;;^G'
    end
    begin menuitem
      text "Xterm Style"
      action string '^[]6;10;xterm;;^G'
    end
end menu
begin menu
    title "Width"
    begin menuitem
      text "5"
      action string '^[]6;10;;5;^G'
    end
    begin menuitem
      text "6"
      action string '^[]6;10;;6;^G'
    end
    begin menuitem
      text "7"
      action string '^[]6;10;;7;^G'
    end
    begin menuitem
      text "8"
      action string '^[]6;10;;8;^G'
    end
    begin menuitem
      text "9"
      action string '^[]6;10;;9;^G'
    end
    begin menuitem
      text "10"
      action string '^[]6;10;;10;^G'
    end
    begin menuitem
      text "11"
      action string '^[]6;10;;11;^G'
    end
    begin menuitem
      text "12"
      action string '^[]6;10;;12;^G'
    end
    begin menuitem
      text "13"
      action string '^[]6;10;;13;^G'
    end
    begin menuitem
      text "14"
      action string '^[]6;10;;14;^G'
    end
    begin menuitem
      text "15"
      action string '^[]6;10;;15;^G'
    end
    begin menuitem
      text "16"
      action string '^[]6;10;;16;^G'
    end
    begin menuitem
      text "17"
      action string '^[]6;10;;17;^G'
    end
    begin menuitem
      text "18"
      action string '^[]6;10;;18;^G'
    end
    begin menuitem
      text "19"
      action string '^[]6;10;;19;^G'
    end
    begin menuitem
      text "20"
      action string '^[]6;10;;20;^G'
    end
end menu
begin menu
    title "Move to Desktop"
    begin menuitem
      text "0"
      action string '^[]6;50;0;^G'
    end
    begin menuitem
      text "1"
      action string '^[]6;50;1;^G'
    end
    begin menuitem
      text "2"
      action string '^[]6;50;2;^G'
    end
    begin menuitem
      text "3"
      action string '^[]6;50;3;^G'
    end
    begin menuitem
      text "4"
      action string '^[]6;50;4;^G'
    end
    begin menuitem
      text "5"
      action string '^[]6;50;5;^G'
    end
    begin menuitem
      text "6"
      action string '^[]6;50;6;^G'
    end
    begin menuitem
      text "7"
      action string '^[]6;50;7;^G'
    end
end menu
begin menu
    title "Terminal"
    begin menuitem
      text "Toggles"
      action submenu "Toggles"
    end
    begin menuitem
      text "Keys"
      action submenu "Keys"
    end
    begin menuitem
      text "Scrollbar"
      action submenu "Scrollbar"
    end
    begin menuitem
      text "Move to Desktop"
      action submenu "Move to Desktop"
    end
    -
    begin menuitem
      text "Steal Focus"
      rtext "Ctrl-Button1"
      action string '^[]5;^G'
    end
    begin menuitem
      text "Full Reset"
      action string '^[c'
    end
end menu
begin menu
    title "Tiled"
    begin menuitem
      text "70s Marble"
      action string '^[]20;tile/70s_marble.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Atoms"
      action string '^[]20;tile/atoms.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Black Stone"
      action string '^[]20;tile/blackstone.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Blue Ether"
      action string '^[]20;tile/ether_blue.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Blue Marble"
      action string '^[]20;tile/blue_marble.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Bubbly 1"
      action string '^[]20;tile/bubbly1.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Bubbly 2"
      action string '^[]20;tile/bubbly2.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Bubbly 3"
      action string '^[]20;tile/bubbly3.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Bubbly 4"
      action string '^[]20;tile/bubbly4.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Circuit"
      action string '^[]20;tile/circuit.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Confusion"
      action string '^[]20;tile/confusion.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Cyber Playground"
      action string '^[]20;tile/cyber_bg.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Dimples"
      action string '^[]20;tile/014.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Dirt"
      action string '^[]20;tile/dirt.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Egg"
      action string '^[]20;tile/egg.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Ether"
      action string '^[]20;tile/ether.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Giger 1"
      action string '^[]20;tile/giger1.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Giger 2"
      action string '^[]20;tile/giger2.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Gray Matter"
      action string '^[]20;tile/22.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Gray Waves"
      action string '^[]20;tile/59.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Green Ether"
      action string '^[]20;tile/ether_green.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Lava"
      action string '^[]20;tile/004.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Nebula"
      action string '^[]20;tile/nebula.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "On Stage"
      action string '^[]20;tile/lightb1.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Purple Stuff"
      action string '^[]20;tile/purple_stuff.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Red Whisper"
      action string '^[]20;tile/40.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Shale"
      action string '^[]20;tile/shale.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Soft Marble"
      action string '^[]20;tile/soft.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Space"
      action string '^[]20;tile/space.png;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Starry Night"
      action string '^[]20;tile/starry.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Steel"
      action string '^[]20;tile/steel1.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Twisted"
      action string '^[]20;tile/twisted.jpg;0x0+0+0:tile^G'
    end
    begin menuitem
      text "Whirlpool"
      action string '^[]20;tile/015.jpg;0x0+0+0:tile^G'
    end
end menu
begin menu
    title "Scaled"
    begin menuitem
      text "Day/Night"
      action string '^[]20;scale/day-night.jpg;100x100+50+50^G'
    end
    begin menuitem
      text "Good Morning"
      action string '^[]20;scale/good-morning.jpg;100x100+50+50^G'
    end
    begin menuitem
      text "Neopolis"
      action string '^[]20;scale/Neopolis-horizon.jpg;100x100+50+50^G'
    end
    begin menuitem
      text "Pond"
      action string '^[]20;scale/pond.jpg;100x100+50+50^G'
    end
    begin menuitem
      text "Ripple"
      action string '^[]20;scale/ripple.jpg;100x100+50+50^G'
    end
    begin menuitem
      text "Sunset"
      action string '^[]20;scale/sunset.jpg;100x100+50+50^G'
    end
    begin menuitem
      text "Wasteland"
      action string '^[]20;scale/wasteland.jpg;100x100+50+50^G'
    end
    begin menuitem
      text "Winter Tree"
      action string '^[]20;scale/wintertree.jpg;100x100+50+50^G'
    end
end menu
begin menu
    title "Attrib"
    begin menuitem
      text "Full Size"
      action string '^[]20;;100x100^G'
    end
    begin menuitem
      text "Normal Size"
      action string '^[]20;;0x0^G'
    end
    -
    begin menuitem
      text "Tiled"
      action string '^[]20;;:tile^G'
    end
    begin menuitem
      text "Scaled"
      action string '^[]20;;100x100^G'
    end
    begin menuitem
      text "Proportional Scale"
      action string '^[]20;;100x100:propscale^G'
    end
    -
    begin menuitem
      text "Center"
      action string '^[]20;;=+50+50^G'
    end
    begin menuitem
      text "Top Left Corner"
      action string '^[]20;;=+0+0^G'
    end
    begin menuitem
      text "Bottom Right Corner"
      action string '^[]20;;=+100+100^G'
    end
end menu
begin menu
    title "Pixmap"
    begin menuitem
      text "None"
      action string '^[[m^[]20;;^G'
    end
    begin menuitem
      text "Toggle Viewport Mode"
      action string '^[]6;24^G'
    end
    begin menuitem
      text "Tiled"
      action submenu "Tiled"
    end
    begin menuitem
      text "Scaled"
      action submenu "Scaled"
    end
    -
    begin menuitem
      text "Attrib"
      action submenu "Attrib"
    end
end menu
begin menu
    title "Brightness"
    begin menuitem
      text "512 (200)"
      action string '^[]6;1;image;brightness;512^G'
    end
    begin menuitem
      text "480 (188)"
      action string '^[]6;1;image;brightness;480^G'
    end
    begin menuitem
      text "448 (175)"
      action string '^[]6;1;image;brightness;448^G'
    end
    begin menuitem
      text "416 (163)"
      action string '^[]6;1;image;brightness;416^G'
    end
    begin menuitem
      text "384 (150)"
      action string '^[]6;1;image;brightness;384^G'
    end
    begin menuitem
      text "352 (138)"
      action string '^[]6;1;image;brightness;352^G'
    end
    begin menuitem
      text "320 (125)"
      action string '^[]6;1;image;brightness;320^G'
    end
    begin menuitem
      text "288 (113)"
      action string '^[]6;1;image;brightness;288^G'
    end
    begin menuitem
      text "256 (100)"
      action string '^[]6;1;image;brightness;256^G'
    end
    begin menuitem
      text "224 (88)"
      action string '^[]6;1;image;brightness;224^G'
    end
    begin menuitem
      text "192 (75)"
      action string '^[]6;1;image;brightness;192^G'
    end
    begin menuitem
      text "160 (63)"
      action string '^[]6;1;image;brightness;160^G'
    end
    begin menuitem
      text "128 (50)"
      action string '^[]6;1;image;brightness;128^G'
    end
    begin menuitem
      text "96 (38)"
      action string '^[]6;1;image;brightness;96^G'
    end
    begin menuitem
      text "64 (25)"
      action string '^[]6;1;image;brightness;64^G'
    end
    begin menuitem
      text "32 (13)"
      action string '^[]6;1;image;brightness;32^G'
    end
    begin menuitem
      text "0 (0)"
      action string '^[]6;1;image;brightness;0^G'
    end
end menu
begin menu
    title "Contrast"
    begin menuitem
      text "512 (200)"
      action string '^[]6;1;image;contrast;512^G'
    end
    begin menuitem
      text "480 (188)"
      action string '^[]6;1;image;contrast;480^G'
    end
    begin menuitem
      text "448 (175)"
      action string '^[]6;1;image;contrast;448^G'
    end
    begin menuitem
      text "416 (163)"
      action string '^[]6;1;image;contrast;416^G'
    end
    begin menuitem
      text "384 (150)"
      action string '^[]6;1;image;contrast;384^G'
    end
    begin menuitem
      text "352 (138)"
      action string '^[]6;1;image;contrast;352^G'
    end
    begin menuitem
      text "320 (125)"
      action string '^[]6;1;image;contrast;320^G'
    end
    begin menuitem
      text "288 (113)"
      action string '^[]6;1;image;contrast;288^G'
    end
    begin menuitem
      text "256 (100)"
      action string '^[]6;1;image;contrast;256^G'
    end
    begin menuitem
      text "224 (88)"
      action string '^[]6;1;image;contrast;224^G'
    end
    begin menuitem
      text "192 (75)"
      action string '^[]6;1;image;contrast;192^G'
    end
    begin menuitem
      text "160 (63)"
      action string '^[]6;1;image;contrast;160^G'
    end
    begin menuitem
      text "128 (50)"
      action string '^[]6;1;image;contrast;128^G'
    end
    begin menuitem
      text "96 (38)"
      action string '^[]6;1;image;contrast;96^G'
    end
    begin menuitem
      text "64 (25)"
      action string '^[]6;1;image;contrast;64^G'
    end
    begin menuitem
      text "32 (13)"
      action string '^[]6;1;image;contrast;32^G'
    end
    begin menuitem
      text "0 (0)"
      action string '^[]6;1;image;contrast;0^G'
    end
end menu
begin menu
    title "Gamma"
    begin menuitem
      text "512 (200)"
      action string '^[]6;1;image;gamma;512^G'
    end
    begin menuitem
      text "480 (188)"
      action string '^[]6;1;image;gamma;480^G'
    end
    begin menuitem
      text "448 (175)"
      action string '^[]6;1;image;gamma;448^G'
    end
    begin menuitem
      text "416 (163)"
      action string '^[]6;1;image;gamma;416^G'
    end
    begin menuitem
      text "384 (150)"
      action string '^[]6;1;image;gamma;384^G'
    end
    begin menuitem
      text "352 (138)"
      action string '^[]6;1;image;gamma;352^G'
    end
    begin menuitem
      text "320 (125)"
      action string '^[]6;1;image;gamma;320^G'
    end
    begin menuitem
      text "288 (113)"
      action string '^[]6;1;image;gamma;288^G'
    end
    begin menuitem
      text "256 (100)"
      action string '^[]6;1;image;gamma;256^G'
    end
    begin menuitem
      text "224 (88)"
      action string '^[]6;1;image;gamma;224^G'
    end
    begin menuitem
      text "192 (75)"
      action string '^[]6;1;image;gamma;192^G'
    end
    begin menuitem
      text "160 (63)"
      action string '^[]6;1;image;gamma;160^G'
    end
    begin menuitem
      text "128 (50)"
      action string '^[]6;1;image;gamma;128^G'
    end
    begin menuitem
      text "96 (38)"
      action string '^[]6;1;image;gamma;96^G'
    end
    begin menuitem
      text "64 (25)"
      action string '^[]6;1;image;gamma;64^G'
    end
    begin menuitem
      text "32 (13)"
      action string '^[]6;1;image;gamma;32^G'
    end
    begin menuitem
      text "0 (0)"
      action string '^[]6;1;image;gamma;0^G'
    end
end menu
begin menu
    title "Background"
    begin menuitem
      text "Toggle Transparency"
      action string '^[]6;0^G'
    end
    begin menuitem
      text "Pixmap"
      action submenu "Pixmap"
    end
    begin menuitem
      text "Brightness"
      action submenu "Brightness"
    end
    begin menuitem
      text "Contrast"
      action submenu "Contrast"
    end
    begin menuitem
      text "Gamma"
      action submenu "Gamma"
    end
end menu
begin menu
    title "Eterm"
    begin menuitem
      text "Font"
      action submenu "Font"
    end
    begin menuitem
      text "Background"
      action submenu "Background"
    end
    begin menuitem
      text "Terminal"
      action submenu "Terminal"
    end
    -
    begin menuitem
      text "New Eterm Window"
      action script 'spawn(Eterm)'
    end
    begin menuitem
      text "Version"
      action string '^[[8n'
    end
    begin menuitem
      text "Status"
      action string '^[[9n'
    end
    -
    begin menuitem
      text "Save User Settings..."
      action script 'save'
    end
    begin menuitem
      text "Save Theme Settings..."
      action script 'save(theme)'
    end
    begin menuitem
      text "Exit"
      action script 'exit'
    end
end menu
begin menu
    title "Eterm Operations"
    begin menuitem
      text "New Eterm Window"
      action script 'spawn(Eterm)'
    end
    begin menuitem
      text "Version"
      action string '^[[8n'
    end
    begin menuitem
      text "Status"
      action string '^[[9n'
    end
    -
    begin menuitem
      text "Save User Settings..."
      action script 'save'
    end
    begin menuitem
      text "Save Theme Settings..."
      action script 'save(theme)'
    end
    begin menuitem
      text "Exit"
      action script 'exit'
    end
end menu

begin actions
    bind ctrl button1 to string '^[]5;^G'
    bind ctrl button2 to string '^[[?30t'
    bind ctrl button3 to menu "Eterm"
    bind ctrl shift button3 to string '^[]6;14^G'
end actions

begin multichar
    encoding iso-10646
    font 0 -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso10646-1
    font 1 -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso10646-1
    font 2 -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
    font 3 -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
    font 4 -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1
end multichar

begin xim
end xim

begin toggles
    map_alert 1
    visual_bell 0
    login_shell 1
    scrollbar 1
    utmp_logging 1
    meta8 0
    iconic 0
    home_on_output 1
    home_on_input 1
    no_input 0
    scrollbar_floating 0
    scrollbar_right 0
    scrollbar_popup 0
    borderless 0
    double_buffer 0
    no_cursor 0
    pause 0
    xterm_select 0
    select_line 0
    select_trailing_spaces 1
    report_as_keysyms 0
    itrans 0
    buttonbar 0
    resize_gravity 0
end toggles

begin keyboard
    smallfont_key less
    bigfont_key greater
    app_keypad 0
    app_cursor 0
end keyboard

begin misc
    print_pipe 'lp'''
    save_lines 10240
    min_anchor_size 0
    border_width 5
    term_name Eterm
    debug 0
end misc

Comment 3 SpanKY gentoo-dev 2005-05-07 17:54:28 UTC
weird, mine doesnt segfault ...

could you try doing:
FEATURES=nostrip CFLAGS=-g3 emerge eterm

and then running `gdb eterm` and posting the output of 'bt full' ?
Comment 4 Wonko 2005-05-07 19:56:31 UTC
It's a heisenbug, with CFLAGS=-g3 Eterm is working as expected:

wonko@weird wonko --> Eterm 
Eterm:  Error:  Unable to locate file "/usr/share/Eterm/pix/tile/atoms.jpg" in image path.

I played around a bit with a local copy of /var/tmp/portage/eterm-0.9.3-r3/work/Eterm-0.9.3, and found the propblem to be my -Os CFLAGS setting. Without, all is fine. CFLAGS="-Os -g" was used for the gdb session, I do not know why the -g does not make the bug go away like when using with emerge.

wonko@weird Eterm-0.9.3 --> gdb bin/Eterm 
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/wonko/tmp/Eterm-0.9.3/bin/Eterm 
Eterm:  Error:  
Program received signal SIGSEGV, Segmentation fault.
0xb7c6683b in strlen () from /lib/libc.so.6
(gdb) bt full
#0  0xb7c6683b in strlen () from /lib/libc.so.6
No symbol table info available.
#1  0xb7c3cfeb in vfprintf () from /lib/libc.so.6
No symbol table info available.
#2  0xb7c3e954 in vfprintf () from /lib/libc.so.6
No symbol table info available.
#3  0xb7c3ab8d in vfprintf () from /lib/libc.so.6
No symbol table info available.
#4  0xb7eeb73b in libast_print_error () from /usr/lib/libast.so.2
No symbol table info available.
#5  0xb7ef8852 in ?? () from /usr/lib/libast.so.2
No symbol table info available.
#6  0x0804a050 in ?? ()
No symbol table info available.
#7  0xb7fdca48 in ?? () from /home/wonko/tmp/Eterm-0.9.3/lib/libEterm-0.9.3.so
No symbol table info available.
#8  0xbfff9afd in ?? ()
No symbol table info available.
#9  0xbfff9afd in ?? ()
No symbol table info available.
#10 0xbfff6a58 in ?? ()
No symbol table info available.
#11 0xb7fa9e50 in load_image (file=0xbfff6a48 "/", simg=0xb7d11a27) at pixmap.c:1442
        f = 0x26fa <Address 0x26fa out of bounds>
        im = (Imlib_Image *) 0xb7fd4240
        im_err = IMLIB_LOAD_ERROR_NONE
        geom = 0x2f <Address 0x2f out of bounds>
Previous frame inner to this frame (corrupt stack?)

The problem seens to happen in libast. Again, when emerging libast with FEATURES=nostrip CFLAGS=-g, the error is gone. Oh, no, the Eterm opens, but the error message is corrupted, the filename is "h
Comment 5 Wonko 2005-05-07 19:56:31 UTC
It's a heisenbug, with CFLAGS=-g3 Eterm is working as expected:

wonko@weird wonko --> Eterm 
Eterm:  Error:  Unable to locate file "/usr/share/Eterm/pix/tile/atoms.jpg" in image path.

I played around a bit with a local copy of /var/tmp/portage/eterm-0.9.3-r3/work/Eterm-0.9.3, and found the propblem to be my -Os CFLAGS setting. Without, all is fine. CFLAGS="-Os -g" was used for the gdb session, I do not know why the -g does not make the bug go away like when using with emerge.

wonko@weird Eterm-0.9.3 --> gdb bin/Eterm 
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/wonko/tmp/Eterm-0.9.3/bin/Eterm 
Eterm:  Error:  
Program received signal SIGSEGV, Segmentation fault.
0xb7c6683b in strlen () from /lib/libc.so.6
(gdb) bt full
#0  0xb7c6683b in strlen () from /lib/libc.so.6
No symbol table info available.
#1  0xb7c3cfeb in vfprintf () from /lib/libc.so.6
No symbol table info available.
#2  0xb7c3e954 in vfprintf () from /lib/libc.so.6
No symbol table info available.
#3  0xb7c3ab8d in vfprintf () from /lib/libc.so.6
No symbol table info available.
#4  0xb7eeb73b in libast_print_error () from /usr/lib/libast.so.2
No symbol table info available.
#5  0xb7ef8852 in ?? () from /usr/lib/libast.so.2
No symbol table info available.
#6  0x0804a050 in ?? ()
No symbol table info available.
#7  0xb7fdca48 in ?? () from /home/wonko/tmp/Eterm-0.9.3/lib/libEterm-0.9.3.so
No symbol table info available.
#8  0xbfff9afd in ?? ()
No symbol table info available.
#9  0xbfff9afd in ?? ()
No symbol table info available.
#10 0xbfff6a58 in ?? ()
No symbol table info available.
#11 0xb7fa9e50 in load_image (file=0xbfff6a48 "/", simg=0xb7d11a27) at pixmap.c:1442
        f = 0x26fa <Address 0x26fa out of bounds>
        im = (Imlib_Image *) 0xb7fd4240
        im_err = IMLIB_LOAD_ERROR_NONE
        geom = 0x2f <Address 0x2f out of bounds>
Previous frame inner to this frame (corrupt stack?)

The problem seens to happen in libast. Again, when emerging libast with FEATURES=nostrip CFLAGS=-g, the error is gone. Oh, no, the Eterm opens, but the error message is corrupted, the filename is "h¢··h··", not "/usr/share/Eterm/pix/tile/atoms.jpg".
Comment 6 SpanKY gentoo-dev 2005-05-09 00:03:10 UTC
ok, instead of that approach, try using normal CFLAGS/FEATURES but appending --with-debugging=9 to the configure line ...

doing `EXTRA_ECONF="--with-debugging=9" emerge eterm` should work ...
Comment 7 Wonko 2005-05-19 04:08:42 UTC
Sorry, I went to holidays but forgot to hit the Commit button.

This is the output I get with 
EXTRA_ECONF="--with-debugging=9" FEATURES=nostrip emerge eterm:

(gdb) run
Starting program: /usr/bin/Eterm 
Eterm:  Error:  
Program received signal SIGSEGV, Segmentation fault.
0xb7c6d83b in strlen () from /lib/libc.so.6
(gdb) bt full
#0  0xb7c6d83b in strlen () from /lib/libc.so.6
No symbol table info available.
#1  0xb7c43feb in vfprintf () from /lib/libc.so.6
No symbol table info available.
#2  0xb7c45954 in vfprintf () from /lib/libc.so.6
No symbol table info available.
#3  0xb7c41b8d in vfprintf () from /lib/libc.so.6
No symbol table info available.
#4  0xb7f2073b in libast_print_error () from /usr/lib/libast.so.2
No symbol table info available.
#5  0xb7f2d852 in ?? () from /usr/lib/libast.so.2
No symbol table info available.
#6  0x0804a050 in ?? ()
No symbol table info available.
#7  0xb7fdc8e4 in ?? () from /usr/lib/libEterm-0.9.3.so
No symbol table info available.
#8  0xbfff9a51 in ?? ()
No symbol table info available.
#9  0xbfff9a51 in ?? ()
No symbol table info available.
#10 0x0804b0f8 in ?? ()
No symbol table info available.
#11 0xb7faeded in load_image () from /usr/lib/libEterm-0.9.3.so
No symbol table info available.
#12 0xb7fe5ba8 in images () from /usr/lib/libEterm-0.9.3.so
No symbol table info available.
#13 0xb7fa458e in parse_image () from /usr/lib/libEterm-0.9.3.so
No symbol table info available.
#14 0xb7d0d000 in in6addr_loopback () from /lib/libc.so.6
No symbol table info available.
#15 0xb7f301a8 in ?? () from /usr/lib/libast.so.2
No symbol table info available.
#16 0x0000000b in ?? ()
No symbol table info available.
#17 0xb7d19a20 in __after_morecore_hook () from /lib/libc.so.6
No symbol table info available.
#18 0xb7d17ff4 in ?? () from /lib/libc.so.6
No symbol table info available.
#19 0x0804b0f8 in ?? ()
No symbol table info available.
#20 0x0804b0f8 in ?? ()
No symbol table info available.
#21 0xb7c2a3b1 in __ctype_b_loc () from /lib/libc.so.6
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)
Comment 8 SpanKY gentoo-dev 2005-09-02 20:32:02 UTC
how about --debug 4 ?  pipe it into a log file and attach the file here (dont
post it as a comment):

Eterm --debug 4 >& log
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-08-02 05:32:13 UTC
User response required here. ;)
Comment 10 Wonko 2006-08-03 12:54:56 UTC
I did the --debug=4 thing, eterm crashed, but I did not yet pipe into a log file. I tried again to create a debug-enabled version first, but as before I got no segfault.
I re-emerged eterm, without debug option, but now this is working, too. 

Maybe it no longer happens with a new gcc, glibc or something? It's not the change from r3 to r4, I already had r4 installed since short after my initial reports here. CFLAGS are also identical.

I'd say let's close the bug :)