After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 609126 - gedit Segmentation fault (core dumped) when run over x tunnel ssh 64bit fedora12
gedit Segmentation fault (core dumped) when run over x tunnel ssh 64bit fedora12
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: X11
2.18.x
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-02-05 21:42 UTC by rjdavis99
Modified: 2013-10-06 23:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rjdavis99 2010-02-05 21:42:57 UTC
gedit aborts when run remotely via x tunnel over ssh.  Application launches normally and works until user selects text.  

o ssh to fedora 12 64bit machine
o tunnel x
o gedit
o type some text, select text -> crash 
o Segmentation fault (core dumped)



gedit runs normally when run directly on console.

Another editor kwrite works normally through tunnel.

Not sure if this is specific to gedit or more general gnome issue.

Output from ABRT follows


Count: 1
DUPHASH: 4f736f94089758f9cee5a6e98deda79d222b1736
DumpDir: /var/cache/abrt/ccpp-1265388189-2270
Reported: 0
UUID: a46ac2acd75e3e73c86fad2439f91ebf05bb6753
analyzer: CCpp
architecture: x86_64
cmdline: gedit
comment: Just trying to run gedit remotely x tunneled over ssh
component: gedit
coredump: /var/cache/abrt/ccpp-1265388189-2270/coredump
executable: /usr/bin/gedit
kernel: 2.6.31.12-174.2.3.fc12.x86_64
package: gedit-1:2.28.3-1.fc12
rating: 4
reason: Process was terminated by signal 11 (Segmentation fault)
release: Fedora release 12 (Constantine)
time: 1265388189
uid: 500

backtrace
-----
warning: section .gnu.liblist not found in /var/cache/abrt-di/usr/lib/debug/.build-id/62/880e3e138a4055da16445e4e37c6b5ec8bd21f.debug
warning: section .gnu.conflict not found in /var/cache/abrt-di/usr/lib/debug/.build-id/62/880e3e138a4055da16445e4e37c6b5ec8bd21f.debug
warning: section .gnu.liblist not found in /var/cache/abrt-di/usr/lib/debug/.build-id/62/880e3e138a4055da16445e4e37c6b5ec8bd21f.debug
warning: section .gnu.conflict not found in /var/cache/abrt-di/usr/lib/debug/.build-id/62/880e3e138a4055da16445e4e37c6b5ec8bd21f.debug
warning: section .gnu.liblist not found in /var/cache/abrt-di/usr/lib/debug/.build-id/62/880e3e138a4055da16445e4e37c6b5ec8bd21f.debug
warning: section .gnu.conflict not found in /var/cache/abrt-di/usr/lib/debug/.build-id/62/880e3e138a4055da16445e4e37c6b5ec8bd21f.debug
Core was generated by `gedit'.
Program terminated with signal 11, Segmentation fault.

Thread 1 (Thread 2270)

  • #0 _gdk_x11_screen_process_owner_change
    at gdkscreen-x11.c line 1149
  • #1 gdk_event_translate
    at gdkevents-x11.c line 2100
  • #2 _gdk_events_queue
    at gdkevents-x11.c line 2305
  • #3 gdk_event_dispatch
    at gdkevents-x11.c line 2366
  • #4 g_main_dispatch
    at gmain.c line 1960
  • #5 IA__g_main_context_dispatch
    at gmain.c line 2513
  • #6 g_main_context_iterate
    at gmain.c line 2591
  • #7 IA__g_main_loop_run
    at gmain.c line 2799
  • #8 IA__gtk_main
    at gtkmain.c line 1218
  • #9 main
    at gedit.c line 741

description
-----
Text editor for the GNOME desktop

gedit is a small, but powerful text editor designed specifically for
the GNOME desktop. It has most standard text editor functions and fully
supports international text in Unicode. Advanced features include syntax
highlighting and automatic indentation of source code, printing and editing
of multiple documents in one window.

gedit is extensible through a plugin system, which currently includes
support for spell checking, comparing files, viewing CVS ChangeLogs, and
adjusting indentation levels. Further plugins can be found in the
gedit-plugins package.

reproduce
-----
1.ssh to fedora 12 64 bit system
2.tunnel x through ssh
3.execute gedit as non-root user, select any text -> crash
Comment 1 Paolo Borelli 2010-02-07 11:16:00 UTC
Reassigning to gtk since the crash is at the gdk level.
Comment 2 Matthias Clasen 2010-02-08 20:55:18 UTC
> o ssh to fedora 12 64bit machine

So you are saying gedit is running on a 64bit machine but displaying on a 32bit X server ?

It would be helpful if you could capture this in gdb, go up to gdk_event_translate, and print the contents of the selection_notify struct.
Comment 3 rjdavis99 2010-02-09 15:25:19 UTC
(In reply to comment #2)
> > o ssh to fedora 12 64bit machine
> 
> So you are saying gedit is running on a 64bit machine but displaying on a 32bit
> X server ?
> 
> It would be helpful if you could capture this in gdb, go up to
> gdk_event_translate, and print the contents of the selection_notify struct.

The gnome application gedit was being run on a 64bit Fedora 12  OS.  The output was being displayed on an XP machine running Exceed.

I have subsequently tried this with 32bit Fedora 12 OS and the results are the same.

I have also tried to select text from other gnome applications (gnome-calculator) while running in these same configurations (x-tunnel via ssh) and they all seem to crash with (Segmentation fault (core dumped)).

Other X applications (non gnome) seem to work (kwrite, kdevelop).

I'm probably too stupid to understand (just use this stuff, don't claim to understand, and it all worked for Fedora 10) you request for additional debug info but if you can give me specific instructions I will get you whatever I can.

Thanks for the help
Comment 4 Petr Pisar 2010-06-03 14:55:21 UTC
I got similar bug report against Fedora 13 (gtk2-2.20.1-1)
<https://bugzilla.redhat.com/show_bug.cgi?id=598989>. Also x86_64 X11 client and Exceed on Windows XP as X11 server.

I have disasesembled code and register state in addition (see linked report in Red Hat Bugzilla). I think it's null pointer dereference of value returned from previous function.

I looked into source code and the function in question is ifdefed by XFIXES extension. I found 4 years old xpdyinfo of Exceed on the Web (don't remember where) and this extension was missing there.
Comment 5 Timothy Arceri 2013-10-06 23:25:05 UTC
Fedora 13 is long obsolete so marking this bug as obsolete. Feel free to reopen if you still have this issue on a recent version of Fedora/GTK+