Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emacs --daemon being crashed by emacsclient -c
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Kruppe
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2008
Posts: 120

PostPosted: Fri Nov 20, 2009 7:55 pm    Post subject: emacs --daemon being crashed by emacsclient -c Reply with quote

emacs --daemon crashes under the following scenario:

1. start emacs --daemon
2. start emacsclient -c
3. close emacsclient -c (at this point emacs --daemon is still shown as a running process in htop)
4. start emacsclient -c again to resume session (at this point emacs --daemon closes quietly in the background)

Anyone have any Idea what this might be caused by?
Back to top
View user's profile Send private message
Kruppe
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2008
Posts: 120

PostPosted: Fri Nov 20, 2009 9:06 pm    Post subject: Reply with quote

It should be noted that this problem doesn't appear to happen in KDE but does happen when I'm using xmonad.
Back to top
View user's profile Send private message
V-Li
Retired Dev
Retired Dev


Joined: 03 Jan 2006
Posts: 606

PostPosted: Fri Dec 11, 2009 10:52 am    Post subject: Reply with quote

Did you start emacs-daemon via the init script or on the console. Is there any message when it is dying? Else, try to use gdb and generate a backtrace. Which Emacs version are you using? The current emacs-cvs or a pretest of 23.2 or 23.1?
Back to top
View user's profile Send private message
Kruppe
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2008
Posts: 120

PostPosted: Fri Dec 11, 2009 4:08 pm    Post subject: Reply with quote

Happened on both cvs and 23.1. I am starting it via the console. The issue only seems to happen when im only running a window manager, for example: xmonad, openbox, awesome.

How do I get a gdb output on emacs --daemon. Every time I start it from within gdb it backgrounds and I don't get any debug messages.
Back to top
View user's profile Send private message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 92
Location: Mainz, Germany

PostPosted: Mon Dec 14, 2009 9:16 am    Post subject: Reply with quote

Kruppe wrote:
How do I get a gdb output on emacs --daemon. Every time I start it from within gdb it backgrounds and I don't get any debug messages.

You can attach gdb to a running process:
Code:
gdb /usr/bin/emacs $(cat /var/run/emacs/${USER}/emacs.pid)
Back to top
View user's profile Send private message
mathfeel
l33t
l33t


Joined: 03 Aug 2004
Posts: 700

PostPosted: Fri Jan 15, 2010 12:16 pm    Post subject: Re: emacs --daemon being crashed by emacsclient -c Reply with quote

Kruppe wrote:
emacs --daemon crashes under the following scenario:

1. start emacs --daemon
2. start emacsclient -c
3. close emacsclient -c (at this point emacs --daemon is still shown as a running process in htop)
4. start emacsclient -c again to resume session (at this point emacs --daemon closes quietly in the background)

Anyone have any Idea what this might be caused by?


Did you try to close emacsclient -c with C-x C-c or C-x 5 0?
_________________
-----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche
Back to top
View user's profile Send private message
f15091983
n00b
n00b


Joined: 15 Jan 2006
Posts: 34

PostPosted: Tue Jun 15, 2010 6:52 am    Post subject: Reply with quote

Try to compile emacs with toolkit-scroll-bars use flag [1] and without gtk flag.

[1] http://osdir.com/ml/bug-gnu-emacs-gnu/2010-04/msg00051.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum