Bug 642992 - [abrt] gimp-2:2.6.11-1.fc13: timing_find: Process /usr/bin/gimp-2.6 was killed by signal 11 (SIGSEGV)
Summary: [abrt] gimp-2:2.6.11-1.fc13: timing_find: Process /usr/bin/gimp-2.6 was kille...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gegl
Version: 13
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7465771f25b2c22ebf65c77fb5d...
Depends On:
Blocks: 644390
TreeView+ depends on / blocked
 
Reported: 2010-10-14 12:10 UTC by Hung Vo
Modified: 2010-11-09 09:54 UTC (History)
2 users (show)

Fixed In Version: gegl-0.1.2-4.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 644390 (view as bug list)
Environment:
Last Closed: 2010-11-04 23:30:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (9.87 KB, text/plain)
2010-10-14 12:10 UTC, Hung Vo
no flags Details

Description Hung Vo 2010-10-14 12:10:44 UTC
abrt version: 1.1.13
architecture: i686
Attached file: backtrace
cmdline: gimp-2.6
component: gimp
crash_function: timing_find
executable: /usr/bin/gimp-2.6
kernel: 2.6.34.7-56.fc13.i686.PAE
package: gimp-2:2.6.11-1.fc13
rating: 4
reason: Process /usr/bin/gimp-2.6 was killed by signal 11 (SIGSEGV)
release: Fedora release 13 (Goddard)
time: 1287057659
uid: 500

Comment 1 Hung Vo 2010-10-14 12:10:47 UTC
Created attachment 453443 [details]
File: backtrace

Comment 2 Nils Philippsen 2010-10-14 14:54:47 UTC
Changing component to gegl as this is where the crash happens. I'm at a loss though why it would crash -- I don't understand how the "root" variable could ever become "0xffffffff".

Two questions:

What exactly were you doing when the crash happened?
Are you sure your memory (RAM) is okay?

Comment 3 Hung Vo 2010-10-15 06:49:57 UTC
FYI, I'm able to run memtest this morning. There is no error with my RAM. 

The crash happens whenever I run gimp (even after a fresh reboot)

Following is some additional info that may help to resolve this issue. Feel free to ask for more info.

Cheers,
H.


hung@hung-laptop:~$ uname -r
2.6.34.7-56.fc13.i686.PAE
hung@hung-laptop:~$ cat /proc/meminfo 
MemTotal:        4109840 kB
MemFree:         2299688 kB
Buffers:          256696 kB
Cached:           997736 kB
SwapCached:            0 kB
Active:           678388 kB
Inactive:         888788 kB
Active(anon):     313880 kB
Inactive(anon):    93824 kB
Active(file):     364508 kB
Inactive(file):   794964 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:       3277640 kB
HighFree:        1949724 kB
LowTotal:         832200 kB
LowFree:          349964 kB
SwapTotal:       1622528 kB
SwapFree:        1622528 kB
Dirty:                68 kB
Writeback:             0 kB
AnonPages:        312744 kB
Mapped:           126352 kB
Shmem:             94960 kB
Slab:             195936 kB
SReclaimable:     168144 kB
SUnreclaim:        27792 kB
KernelStack:        2544 kB
PageTables:        10300 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3677448 kB
Committed_AS:    1782476 kB
VmallocTotal:     122880 kB
VmallocUsed:       22004 kB
VmallocChunk:      79368 kB
HardwareCorrupted:     0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       10232 kB
DirectMap2M:      897024 kB
hung@hung-laptop:~$

Comment 4 Nils Philippsen 2010-10-15 10:13:53 UTC
(In reply to comment #3)
> FYI, I'm able to run memtest this morning. There is no error with my RAM. 

Just for reference: Which versions of gegl/babl do you have installed?

Maybe one of the gimp/gegl/babl packages is damaged in some way. Please verify these by running this command as root:

rpm -Va gimp\* gegl\* babl\*

Thanks.

Comment 5 Hung Vo 2010-10-17 13:11:14 UTC
This is the output from yum list installed
# yum list installed | grep gegl
gegl.i686                          0.1.2-3.fc13               @updates          
gegl-debuginfo.i686                0.1.2-3.fc13               @updates-debuginfo
gegl-devel.i686                    0.1.2-3.fc13               @updates          
# yum list installed | grep babl
babl.i686                          0.1.2-4.fc13               @updates          
babl-debuginfo.i686                0.1.2-4.fc13               @updates-debuginfo
babl-devel.i686                    0.1.2-4.fc13               @updates          

rpm -Va gimp\* gegl\* babl\* displayed nothing on the terminal.

Comment 6 Nils Philippsen 2010-10-19 15:00:56 UTC
This issue is most likely triggered because you have xvnkb installed (which Fedora doesn't ship) and it is preloaded because either the LD_PRELOAD environment variable or /etc/ld.so.preload are set accordingly:

1. Both libgegl.so and xvnkb.so export a symbol named "root".
2. Because xvnkb.so is loaded earlier than libgegl.so, its "root" symbol takes precedence. It is initialized to -1 in xvnkb.so.
3. Because root isn't NULL (0), gegl_instrument() doesn't allocate memory and passes on the value -1 (0xFFFFFFFF) to timing_find().
4. timing_find() tries to dereference root and crashes.

Concluding, both gegl and xvnkb libs are broken: they should not export a symbol named just "root" as this may clash in many places (applications may have global symbols shadowed by this e.g.).

I've already fixed this in gegl upstream: http://git.gnome.org/browse/gegl/commit/?id=75a5c4a5042aa3c531977637e5f0b5e62d14978c

I'll build a new version soon which contains this fix.

You should report this issue to xvnkb upstream so they can fix their library as well.

Comment 7 Fedora Update System 2010-10-19 15:28:23 UTC
gegl-0.1.2-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/gegl-0.1.2-4.fc14

Comment 8 Fedora Update System 2010-10-19 15:28:45 UTC
gegl-0.1.2-4.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/gegl-0.1.2-4.fc13

Comment 9 Fedora Update System 2010-10-21 06:02:56 UTC
gegl-0.1.2-4.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gegl'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gegl-0.1.2-4.fc13

Comment 10 Fedora Update System 2010-11-04 23:30:05 UTC
gegl-0.1.2-4.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-11-04 23:40:58 UTC
gegl-0.1.2-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Hung Vo 2010-11-05 06:24:30 UTC
The problem has gone after update (Fedora 13).

Comment 13 Nils Philippsen 2010-11-05 09:44:18 UTC
(In reply to comment #12)
> The problem has gone after update (Fedora 13).

I hoped so :-). Have you contacted the xvnkb maintainers about this problem? Otherwise you might run into the same issue with another library that inadvertently exports a "root" symbol.

Comment 14 Hung Vo 2010-11-09 00:30:53 UTC
I sent xvnkb maintainers an email pointing to this bug on bugzilla. Hope they have time to fix it :-)

Comment 15 Nils Philippsen 2010-11-09 09:54:23 UTC
It shouldn't be too complicated/time-consuming ;-).


Note You need to log in before you can comment on or make changes to this bug.