Hi, I've just emerge gpp 0.6. When I start it from the command line, it just hags there with no output (no segfault output, nothing). When I run it with strace, I see that it segfaults: ---CUT---- mkdir("/tmp/gconfd-charlie", 0700) = -1 EEXIST (File exists) open("/tmp/gconfd-charlie/lock/ior", O_RDONLY) = 13 fstat64(13, {st_mode=S_IFREG|0700, st_size=617, ...}) = 0 mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x405dc000 read(13, "7938:IOR:010000001500000049444c3"..., 131072) = 617 read(13, "", 131072) = 0 close(13) = 0 munmap(0x405dc000, 131072) = 0 socket(PF_UNIX, SOCK_STREAM, 0) = 13 fcntl64(13, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(13, F_SETFD, FD_CLOEXEC) = 0 connect(13, {sa_family=AF_UNIX, path="/tmp/orbit-charlie/linc-1f02-0-42fd1c092d79b"}, 47) = 0 writev(13, [{"GIOP\1\2\1\0T\0\0\0", 12}, {"\300\357\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 84}], 2) = 96 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}], 2, -1) = 1 read(13, "GIOP\1\2\1\1(\0\0\0", 12) = 12 read(13, "\300\357\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1"..., 40) = 40 gettimeofday({1069245236, 70233}, NULL) = 0 uname({sys="Linux", node="gentoo", ...}) = 0 getpid() = 23480 gettimeofday({1069245236, 90832}, NULL) = 0 socket(PF_UNIX, SOCK_STREAM, 0) = 14 setsockopt(14, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 bind(14, {sa_family=AF_UNIX, path="/tmp/orbit-charlie/linc-5bb8-0-4e3225b0162d0"}, 47) = 0 listen(14, 10) = 0 fcntl64(14, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(14, F_SETFD, FD_CLOEXEC) = 0 getsockname(14, {sa_family=AF_UNIX, path="/tmp/orbit-charlie/linc-5bb8-0-4e3225b0162d0"}, [47]) = 0 writev(13, [{"GIOP\1\2\1\0\200\1\0\0", 12}, {"P\360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 384}], 2) = 396 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI, revents=POLLIN}], 3, -1) = 2 read(13, "GIOP\1\2\1\1$\0\0\0", 12) = 12 read(13, "P\360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 36) = 36 accept(14, {sa_family=AF_UNIX, path=A`"}, [2]) = 15 fcntl64(15, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(15, F_SETFD, FD_CLOEXEC) = 0 writev(13, [{"GIOP\1\2\1\0d\0\0\0", 12}, {"\300\360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 100}], 2) = 112 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1P\1\0\0", 12) = 12 read(13, "\300\360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1"..., 336) = 336writev(13, [{"GIOP\1\2\1\0\334\1\0\0", 12}, {"`\360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 44}, {"\35\0\0\0add_listener_with_properties"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\0\0\0"..., 396}], 4) = 488 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1(\0\0\0", 12) = 12 read(13, "`\360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 40) = 40 writev(13, [{"GIOP\1\2\1\0\216\0\0\0", 12}, {"\360\357\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 44}, {"\35\0\0\0all_entries_with_schema_name"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\0\0\0"..., 62}], 4) = 154poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1\316\0\0\0", 12) = 12 read(13, "\360\357\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1"..., 206) = 206getpid() = 23480 writev(13, [{"GIOP\1\2\1\0`\0\0\0", 12}, {" \360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 96}], 2) = 108 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1$\0\0\0", 12) = 12 read(13, " \360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 36) = 36 writev(13, [{"GIOP\1\2\1\0\324\1\0\0", 12}, {" \360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 44}, {"\35\0\0\0add_listener_with_properties"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\1\0\0"..., 388}], 4) = 480 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1(\0\0\0", 12) = 12 read(13, " \360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 40) = 40 writev(13, [{"GIOP\1\2\1\0\340\1\0\0", 12}, {" \360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 44}, {"\35\0\0\0add_listener_with_properties"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\1\0\0"..., 400}], 4) = 492 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1(\0\0\0", 12) = 12 read(13, " \360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 40) = 40 writev(13, [{"GIOP\1\2\1\0\227\0\0\0", 12}, {"p\357\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\317\344"..., 151}], 2) = 163 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1a\0\0\0", 12) = 12 read(13, "p\357\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 97) = 97 access("/home/charlie/.gnome", F_OK) = 0 stat64("/home/charlie/.gnome", {st_mode=S_IFDIR|0700, st_size=320, ...}) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- write(3, "\22\0\20\0\1\0 \3\371\0\0\0\37\0\0\0\10_ID%\0\0\000117"..., 72) = 72 write(3, " \0\2\0\0\0\0\0", 8) = 8 write(3, "+\0\1\0", 4) = 4 read(3, "\1\2/\0\0\0\0\0\21\0\200\2\0\0\0\0\1\0\0\0\4\0\0\0@-\276"..., 32) = 32 rt_sigprocmask(SIG_SETMASK, NULL, [SEGV RTMIN], 8) = 0 rt_sigsuspend([SEGV]
Sorry, forgot emerge info: $ emerge info Portage 2.0.49-r13 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.6.0-test9-mm2)================================================================= System uname: 2.6.0-test9-mm2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -ffast-math -mfpmath=sse,387 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -falign-functions=32" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -ffast-math -mfpmath=sse,387 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -falign-functions=32" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms zlib gtkhtml gdbm berkdb slang readline arts tetex nas bonobo ggi tcltk java guile sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif mozilla gphoto2 ldap cdr X gtk2 gnome gnome2 menu gstreamer mmx sse sse2 oss alsa dvd dvdr opengl icc dga cups scanner usb acpi aalib directfb fbcon gpm svga xv breakme -3dnow"
I'm unable to reproduce this behavior, but it would be a good idea if you start by lowering the optimizations you set in your CFLAGS. Try removing most or all of them and run it again. Otherwise, try to provide a backtrace, after compiling gpp without optimizations and with appropriate debug flags. Thanks.
Compile with CFLAGS="-O2" and CFLAGS="-O" was the same. Here's the output after CFLAGS="-O" $ strace gnome-photo-printer ----CUT---- getsockname(14, {sa_family=AF_UNIX, path="/tmp/orbit-charlie/linc-2caf-0-5bd0339d743ca"}, [47]) = 0 writev(13, [{"GIOP\1\2\1\0\200\1\0\0", 12}, {"P\360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214`"..., 384}], 2) = 396 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI, revents=POLLIN}], 3, -1) = 2 read(13, "GIOP\1\2\1\1$\0\0\0", 12) = 12 read(13, "P\360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 36) = 36 accept(14, {sa_family=AF_UNIX, path=AP"}, [2]) = 15 fcntl64(15, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(15, F_SETFD, FD_CLOEXEC) = 0 writev(13, [{"GIOP\1\2\1\0d\0\0\0", 12}, {"\300\360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214"..., 100}], 2) = 112 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1P\1\0\0", 12) = 12 read(13, "\300\360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1"..., 336) = 336writev(13, [{"GIOP\1\2\1\0\334\1\0\0", 12}, {"`\360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214`"..., 44}, {"\35\0\0\0add_listener_with_properties"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\0\0\0"..., 396}], 4) = 488 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1(\0\0\0", 12) = 12 read(13, "`\360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 40) = 40 writev(13, [{"GIOP\1\2\1\0\216\0\0\0", 12}, {"\360\357\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214"..., 44}, {"\35\0\0\0all_entries_with_schema_name"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\0\0\0"..., 62}], 4) = 154 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1\316\0\0\0", 12) = 12 read(13, "\360\357\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1"..., 206) = 206getpid() = 11439 writev(13, [{"GIOP\1\2\1\0`\0\0\0", 12}, {" \360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214`"..., 96}], 2) = 108 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1$\0\0\0", 12) = 12 read(13, " \360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 36) = 36 writev(13, [{"GIOP\1\2\1\0\324\1\0\0", 12}, {" \360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214`"..., 44}, {"\35\0\0\0add_listener_with_properties"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\1\0\0"..., 388}], 4) = 480 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1(\0\0\0", 12) = 12 read(13, " \360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 40) = 40 writev(13, [{"GIOP\1\2\1\0\340\1\0\0", 12}, {" \360\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214`"..., 44}, {"\35\0\0\0add_listener_with_properties"..., 36}, {"\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0\1\5\t\1\1\0\1\0\0"..., 400}], 4) = 492 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1(\0\0\0", 12) = 12 read(13, " \360\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 40) = 40 writev(13, [{"GIOP\1\2\1\0\227\0\0\0", 12}, {"p\357\377\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0z\214`"..., 151}], 2) = 163 poll([{fd=6, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}], 4, -1) = 1 read(13, "GIOP\1\2\1\1a\0\0\0", 12) = 12 read(13, "p\357\377\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 97) = 97 access("/home/charlie/.gnome", F_OK) = 0 stat64("/home/charlie/.gnome", {st_mode=S_IFDIR|0700, st_size=320, ...}) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- write(3, "\22\0\20\0\1\0\300\2\372\0\0\0\37\0\0\0\10_ID%\0\0\000"..., 72) = 72 write(3, " \0\2\0\0\0\0\0", 8) = 8 write(3, "+\0\1\0", 4) = 4 read(3, "\1\2/\0\0\0\0\0\256\v\340\2\0\0\0\0\1\0\0\0\1\0\0\0\250"..., 32) = 32 rt_sigprocmask(SIG_SETMASK, NULL, [SEGV RTMIN], 8) = 0 rt_sigsuspend([SEGV] ------ This is with CFLAGS="-O". How can I compile with "appropriate debug flags" as you say ? Thanks for your help.
you'll need to use CFLAGS like "-O1 -g" for debugging symbols. but it seems like something weird in /home/charlie/.gnome because it just stops there. is there a /home/charlie/.gnome/gpp ? maybe you might want to try to delete that? if that doesn't help, run : gdb gpp (gdb)$ r ... crashes .. (gdb)$ bt that should give you a backtrace which you should paste there.
I have searched everywere in the .gnome directory, couldn't find any trace of gpp or gnome-photo-printer. I have also tried to run it as another user, didn't help. Here's the output of CFLAGS="-O1 -g": $ gdb gnome-photo-printer GNU gdb 6.0 Copyright 2003 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"... (no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /usr/bin/gnome-photo-printer (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 14867)] (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... ---Type <return> to continue, or q <return> to quit--- (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 14867)] 0x4159677a in _int_malloc () from /lib/libc.so.6 (gdb) bt #0 0x4159677a in _int_malloc () from /lib/libc.so.6 #1 0x4159616e in calloc () from /lib/libc.so.6 #2 0x41a2edc4 in g_malloc0 () from /usr/lib/libglib-2.0.so.0 #3 0x00000001 in ?? () #4 0x00000028 in ?? () #5 0x41788060 in __pthread_sig_debug () from /lib/libpthread.so.0 (gdb)
leonardop, the version is up to 0.6.3 by now.. maybe that fixes problems with it. If you add something pretty much beta quality i expect you to work on it and keep it up to date/fix bugs, otherwise it shouldn't have been added yet. reporter, try bumping the ebuild to 0.6.3 and see if it works. I'm not sure this package should be unmasked in portage at this time,
Yes, 0.6.3 works fine.
But then, I see that a gnome menu entry is still missing. It's not very convenient to have to start a command line every time... not very HIG... ;-)
Ok, version 0.6.3 is now in the Portage tree. Thanks for your input.