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 360792 - Crash in bacon_message_connection_new when using multiple displays or VNC
Crash in bacon_message_connection_new when using multiple displays or VNC
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.15.x
Other All
: High critical
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 371362 376836 388047 390831 391966 392607 394035 402525 404933 411483 412691 412762 413204 417491 419526 431038 431415 433360 446457 456291 475710 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-09 00:41 UTC by John Jong Bae KO
Modified: 2008-11-29 11:27 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
gedit-root-segv.backtrace (2.28 KB, text/plain)
2006-12-12 02:39 UTC, Jens Petersen
  Details
minimal patch (1.36 KB, patch)
2006-12-12 10:20 UTC, Paolo Borelli
committed Details | Review

Description John Jong Bae KO 2006-10-09 00:41:37 UTC
Version: 2.15.9

What were you doing when the application crashed?
running 2 desktop


Distribution: Fedora Core release 5.92 (FC6 Test3)
Gnome Release: 2.16.0 2006-09-04 (Red Hat, Inc)
BugBuddy Version: 2.16.0

Memory status: size: 103157760 vsize: 0 resident: 103157760 share: 0 rss: 21458944 rss_rlim: 0
CPU usage: start_time: 1160354485 rtime: 0 utime: 60 stime: 0 cutime:58 cstime: 0 timeout: 2 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/gedit'

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208587520 (LWP 3244)]
(no debugging symbols found)
0x00cb6402 in __kernel_vsyscall ()

Thread 1 (Thread -1208587520 (LWP 3244))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 strcmp
    from /lib/libc.so.6
  • #5 bacon_message_connection_new
  • #6 _gedit_app_get_window_in_workspace
  • #7 _start
  • #0 __kernel_vsyscall

Comment 1 Paolo Maggi 2006-10-29 14:34:23 UTC
Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 2 André Klapper 2006-11-06 09:16:37 UTC
*** Bug 371362 has been marked as a duplicate of this bug. ***
Comment 3 André Klapper 2006-11-19 00:53:30 UTC
*** Bug 376836 has been marked as a duplicate of this bug. ***
Comment 4 Jens Petersen 2006-12-08 06:52:48 UTC
I think this is pretty easy to reproduce:

Steps to Reproduce:
1. su -c gedit on display :0
2. su -c gedit on display :1
  
Actual results:
- gedit crashes

Expected results:
- no crash
- gedit to use one process per display
Comment 5 Paolo Maggi 2006-12-08 11:49:47 UTC
Could you please provide a stack trace with debugging symbols?

Does it crash only when using "su -c"?
Comment 6 Jens Petersen 2006-12-12 02:39:33 UTC
Created attachment 78181 [details]
gedit-root-segv.backtrace

How about this one?

(I think preventing gedit from running across different X display would
avoid this problem FWIW.)
Comment 7 Paolo Borelli 2006-12-12 10:08:46 UTC
> I think preventing gedit from running across different X display would
> avoid this problem FWIW

Why? It seems a completely valid use case to me. Or you just mean for the root user?

(gedit:3028): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

I'd be more interested to know why this happen, since I think is the reason for the crash... maybe it is enforced at the system level that root cannot run gui apps remotely?
Comment 8 Paolo Borelli 2006-12-12 10:20:34 UTC
Created attachment 78197 [details] [review]
minimal patch

Can you check if this minimal patch at least prevents the crash?

I still would like to understand if the fact that we cannot open that display is a system policy or what.

About the patch, I am really not sure how to do error reporting for this condition... I put a g_warning in there for now, but this (or an eventual dialog) are displayed server-side, that is on the wrong display.
Comment 9 Jens Petersen 2006-12-13 02:55:11 UTC
Thanks for the patch.  I will try to test that soon.

You may well be right that the authentication warning relates
to the crash.  With a root desktop session or using ssh -Y
I don't see the crash.

I still think it is a bit unintuitive sharing the gedit process for a user
across different displays, but I guess it is considered a feature.
Comment 10 Paolo Borelli 2006-12-17 15:34:52 UTC
I am committing the above patch, because handling gracefully the case where the returned display is NULL is something we should do no matter what.

I am leaving the bug open to:

1) Investigate under which conditions a display can't be opened
2) Figure out what should we do in the GUI when that happens
Comment 11 Damien Durand 2006-12-20 22:05:19 UTC
*** Bug 388047 has been marked as a duplicate of this bug. ***
Comment 12 Jens Granseuer 2006-12-30 10:14:30 UTC
*** Bug 390831 has been marked as a duplicate of this bug. ***
Comment 13 Paolo Maggi 2007-01-02 17:58:40 UTC
I'm not sure it is the same crash, but they have a very similar stack traces, so I'm going to file as duplicate a list of crashes happening using gedit with VNC.
Comment 14 Paolo Maggi 2007-01-02 18:01:08 UTC
*** Bug 391966 has been marked as a duplicate of this bug. ***
Comment 15 Bruno Boaventura 2007-01-04 04:13:49 UTC
*** Bug 392607 has been marked as a duplicate of this bug. ***
Comment 16 Damien Durand 2007-01-07 21:37:45 UTC
*** Bug 394035 has been marked as a duplicate of this bug. ***
Comment 17 Bruno Boaventura 2007-01-30 21:32:11 UTC
*** Bug 402525 has been marked as a duplicate of this bug. ***
Comment 18 Damien Durand 2007-02-06 17:40:48 UTC
*** Bug 404933 has been marked as a duplicate of this bug. ***
Comment 19 Paolo Borelli 2007-02-24 15:58:49 UTC
*** Bug 411483 has been marked as a duplicate of this bug. ***
Comment 20 Damien Durand 2007-02-27 18:45:49 UTC
*** Bug 412691 has been marked as a duplicate of this bug. ***
Comment 21 Damien Durand 2007-02-28 01:01:30 UTC
*** Bug 412762 has been marked as a duplicate of this bug. ***
Comment 22 Pedro Villavicencio 2007-02-28 22:51:09 UTC
*** Bug 413204 has been marked as a duplicate of this bug. ***
Comment 23 Pedro Villavicencio 2007-03-12 23:09:31 UTC
*** Bug 417491 has been marked as a duplicate of this bug. ***
Comment 24 Damien Durand 2007-03-18 10:01:48 UTC
*** Bug 419526 has been marked as a duplicate of this bug. ***
Comment 25 Iestyn Pryce 2007-04-18 15:56:18 UTC
*** Bug 431038 has been marked as a duplicate of this bug. ***
Comment 26 Iestyn Pryce 2007-04-19 20:31:58 UTC
*** Bug 431415 has been marked as a duplicate of this bug. ***
Comment 27 Pedro Villavicencio 2007-04-26 01:55:25 UTC
*** Bug 433360 has been marked as a duplicate of this bug. ***
Comment 28 Damien Durand 2007-06-11 20:52:28 UTC
*** Bug 446457 has been marked as a duplicate of this bug. ***
Comment 29 palfrey 2007-09-05 17:47:04 UTC
*** Bug 456291 has been marked as a duplicate of this bug. ***
Comment 30 André Klapper 2007-09-13 10:22:59 UTC
*** Bug 475710 has been marked as a duplicate of this bug. ***
Comment 31 Paolo Borelli 2008-11-29 11:27:23 UTC
we got no more reports of this crash. closing.