When I run nico:/tmp $ gimp test.png , gimp-2.2.12 segfaults. I used the following line to emerge it: root:~ # FEATURES=nostrip CFLAGS="-Os -march=prescott -pipe -msse3 -mfpmath=sse -ggdb" USE=debug emerge gimp This caused emerge to build the package with the following use flags: USE="aalib debug* gimpprint jpeg lcms mng png python smp sse svg tiff wmf -doc -gtkhtml -hardened -mmx*" LDFLAGS were set as follows in make.conf: LDFLAGS="-Wl,-O1 -Wl,--sort-common -z combreloc -Wl,--enable-new-dtags -Wl,--relax" Here is the input/output of a gdb session: nico:/tmp $ LANG=C LC_ALL=C gdb --args gimp --verbose test.png GNU gdb 6.4 Copyright 2005 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: /usr/bin/gimp --verbose test.png [Thread debugging using libthread_db enabled] [New Thread -1218345296 (LWP 24051)] INIT: gimp_load_config Parsing '/etc/gimp/2.0/gimprc' Parsing '/home/nico/.gimp-2.2/gimprc' gimp_composite: use=yes, verbose=no Processor instruction sets: -mmx -sse -sse2 -3dnow -altivec -vis Adding theme 'Default' (/usr/share/gimp/2.0/themes/Default) Adding theme 'Small' (/usr/share/gimp/2.0/themes/Small) Writing '/home/nico/.gimp-2.2/themerc' INIT: gimp_initialize INIT: gimp_real_initialize INIT: gui_initialize_after_callback INIT: gimp_restore INIT: gui_restore_callback GimpClipboard: writable pixbuf format: image/png GimpClipboard: writable pixbuf format: image/x-icon GimpClipboard: writable pixbuf format: image/bmp GimpClipboard: writable pixbuf format: image/x-bmp GimpClipboard: writable pixbuf format: image/x-MS-bmp GimpClipboard: writable pixbuf format: image/jpeg INIT: gimp_real_restore Starting extension: 'extension_script_fu' INIT: gui_restore_after_callback loading menu '/usr/share/gimp/2.0/menus/toolbox-menu.xml' for /toolbox-menubar loading menu '/usr/share/gimp/2.0/menus/image-menu.xml' for /dummy-menubar loading menu '/usr/share/gimp/2.0/menus/image-menu.xml' for /image-menubar Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218345296 (LWP 24051)] 0x0809b877 in gimp_display_shell_scale_get_fraction (zoom_factor=0, numerator=0xbffda290, denominator=0xbffda294) at gimpdisplayshell-scale.c:172 172 gimpdisplayshell-scale.c: No such file or directory. in gimpdisplayshell-scale.c (gdb) t a a bt Thread 1 (Thread -1218345296 (LWP 24051)): #0 0x0809b877 in gimp_display_shell_scale_get_fraction (zoom_factor=0, numerator=0xbffda290, denominator=0xbffda294) at gimpdisplayshell-scale.c:172 #1 0x0809dad6 in gimp_display_shell_format_title (shell=0x82dd270, title=0xbffda2bc "\210\206��\b\v�\b\020���h�����\237�\b\v�\b\003", title_len=256, format=0x83194b0 "%n (%m)") at gimpdisplayshell-title.c:175 #2 0x0809e19c in gimp_display_shell_title_init (shell=0x82dd270) at gimpdisplayshell-title.c:76 #3 0x0809088a in gimp_display_shell_new (gdisp=0x8ac2650, unit=147069296, scale=1, menu_factory=0x85def00, popup_manager=0x873de40) at gimpdisplayshell.c:1050 #4 0x0808e08b in gimp_display_new (gimage=0x8341138, unit=GIMP_UNIT_PIXEL, scale=1, menu_factory=0x85def00, popup_manager=0x873de40) at gimpdisplay.c:345 #5 0x0806520f in gui_display_create (gimage=0x8341138, unit=GIMP_UNIT_PIXEL, scale=1) at gui-vtable.c:336 #6 0x0814532e in gimp_create_display (gimp=0x8303020, gimage=0x8341138, unit=GIMP_UNIT_PIXEL, scale=1) at gimp-gui.c:250 #7 0x081a8b39 in file_open_with_proc_and_display (gimp=0x8305ef8, context=0x83450c0, progress=0x8341138, uri=0x8c307e0 "file:///tmp/test.png", entered_filename=0x8c307e0 "file:///tmp/test.png", file_proc=0x0, status=0xbffda57c, error=0xbffda580) at file-open.c:317 #8 0x081a8bb5 in file_open_with_display (gimp=0x8303020, context=0x83450c0, progress=0x0, uri=0x1 <Address 0x1 out of bounds>, status=0xbffda57c, error=0xbffda580) at file-open.c:281 #9 0x08063106 in app_run (full_prog_name=0xbffdc10a "/usr/bin/gimp", gimp_argc=2, gimp_argv=0xbffda718, alternate_system_gimprc=0x0, alternate_gimprc=0x0, session_name=0x0, batch_interpreter=0x0, batch_commands=0x8306ec8, no_interface=0, no_data=0, no_fonts=0, no_splash=0, be_verbose=1, use_shm=1, use_cpu_accel=1, console_messages=0, stack_trace_mode=GIMP_STACK_TRACE_NEVER, pdb_compat_mode=GIMP_PDB_COMPAT_ON) at app_procs.c:339 #10 0x08063c40 in main (argc=3, argv=0xbffda714) at main.c:473 (gdb) quit The program is running. Exit anyway? (y or n) y (script-fu:24054): LibGimpBase-WARNING **: script-fu: wire_read(): error
You're having far too much stuff in your CFLAGS/LDFLAGS that's completely unsupported. Rebuild a sane system and report back if crash still occurs.