Maybe I found out what was the problem. I added some key bindings by defining a function.

This is the function ~/.config/fish/functions/keybindings.fish:

function keybindings -d "User keybindings"
    fish_default_key_bindings
    bind \eu 'cd .. ; commandline -f repaint'
    bind \e\. history-token-search-backward
    bind \eg __fish_grep
    bind \eh 'commandline -aj "~/"; commandline -f end-of-line'
    bind \es 'commandline -aj "/etc/rc.d/"; commandline -f end-of-line'
    bind \ej prevd-or-backward-word
    bind \ek nextd-or-forward-word
end

Then I added this to my ~/.config/fish/config.fish

set -U fish_key_bindings keybindings

I don't know why but this thing has a strange effect on fish. If you start several terminal emulators and then switch between them they begin to crash.
Another strange thing is that once a terminal emulator has obtained the focus and you start writing the first character get lost.
For example you start writing ls and on the prompt you get just s. Weird. This happens only the first time you start writing then everything goes fine untile the crash :D.

Anyway, I solved this by copying fish_default_keybindings.fish from /usr/share/fish/functions to ~/.config/fish/functions.
I added to this function my key bindings and now the problem seems to be fixed.


-------- Original Message --------
Subject: Re: [Fish-users] occasional segmentation fault
Date: Fri, 18 Dec 2009 09:28:37 +0100
From: Goran Josic <[email protected]>
To: Jan Kanis <[email protected]>
CC: [email protected] <[email protected]>, [email protected] <[email protected]>


You are lucky not having this problem. I also consider fish better shell but I cannot use a shell that crashes randomly. If fish shell development stops there aren't many alternatives there other than bash. Zsh is too complex to configure IMHO. Bash syntax is ugly but it's the only shell I would chose after fish experience.

On 18/12/09 02:05, Jan Kanis wrote:
I've been running fish for over half a year, and I haven't experienced this. Running version 1.23.1 on ubuntu, compiled myself. Even though it isn't really active at the moment, I still consider fish a better shell than others like bash (though I don't know a lot about zsh). The main thing I run into are parsing/encoding inconsistencies, like when additional characters appear when I edit a function.

Jan


On Thu, Dec 17, 2009 at 17:17, Goran Josic <[email protected]> wrote:
I will try to fix it myself. I'm not good with c though and I never used
gdb but before I switch back to bash I would like to try to fix this
bug. At the moment is the only thing that bothers me. It's frustrating
when you are doing something and your terminal emulator just disappears.
I really like fish syntax and it's really pity that a project such this
one just stops being developed.
Thank you for your attention Steve.

Sorry, I forgot to Reply-all.

On 17/12/09 15:03, [email protected] wrote:
> No, I've been seeing this problem too. Unfortunately, it only does
> this on my work machine, so I don't have much opportunity to debug it.
> Also, there doesn't seem to be too much movement on this project, so
> unless someone wants to pick it up, then there probably won't be much
> interest in fixing the problem.
>
> Steve Stagg
>
>
> On Dec 17, 2009 1:23pm, Goran Josic <[email protected]> wrote:
> > Dec 17 14:18:20 infinity kernel: fish[16467]: segfault at 1 ip b763ddc0
> >
> > sp bffea620 error 4 in libc-2.11.1.so[b75c1000+141000]
> >
> > Dec 17 14:18:20 infinity kernel: fish[14771]: segfault at 0 ip 08071973
> >
> > sp bfc363a0 error 4 in fish[8048000+54000]
> >
> >
> >
> > The second row is a new error output. Am I the only one in the world
> >
> > having this problem?
> >
> >
> >
> > *________________*
> >
> >
> >
> >
> >
> >
> >
> > On 11/12/09 13:53, Goran Josic wrote:
> >
> > > I tried to recompile the fish shell on my system guessing the problem
> >
> > > could be solved this way.
> >
> > > That didn't solved the problem but i have a different message in
> >
> > > /var/log/messages.log
> >
> > >
> >
> > > Dec 11 13:45:59 infinity kernel: fish[30003]: segfault at 20 ip
> b761e7e0
> >
> > > sp bffcb9b0 error 4 in libc-2.11.so[b75a2000+140000]
> >
> > >
> >
> > > I am at disposal for other information if needed.
> >
> > >
> >
> > > OT: There isn't much life on this mailing list so I was wondering if
> >
> > > fish shell project is still active?
> >
> > >
> >
> > >
> >
> > > On 08/12/09 03:02, Josic Goran wrote:
> >
> > >
> >
> > >> Hi,
> >
> > >>
> >
> > >> I have an occasional segmentation fault. Sometimes when my
> terminal emulator running fish shell receives the focus just crashes.
> >
> > >>
> >
> > >> I'm running Archlinux with these packages:
> >
> > >>
> >
> > >> Xfce terminal 0.4.2-1
> >
> > >> vte 0.22.5-1
> >
> > >> glibc 2.11-1
> >
> > >> kernel26 2.6.31.6-1
> >
> > >>
> >
> > >> here is an extract from /var/log/messages.log file:
> >
> > >>
> >
> > >> Dec  6 00:59:33 cube kernel: fish[9019]: segfault at 0 ip
> 00007f5a8888c980 sp 00007fff1e9acdf8 error 4 in
> libc-2.11.so[7f5a88807000+14d000]
> >
> > >> Dec  6 20:45:37 cube kernel: fish[16001]: segfault at 0 ip
> 00007fc6c6a36888 sp 00007fff44478eb8 error 4 in
> libc-2.11.so[7fc6c69b1000+14d000]
> >
> > >> Dec  6 22:10:44 cube kernel: fish[2632]: segfault at 0 ip
> 00007f0b1c957980 sp 00007fff4d449408 error 4 in
> libc-2.11.so[7f0b1c8d2000+14d000]
> >
> > >> Dec  6 22:14:37 cube kernel: fish[3427]: segfault at 0 ip
> 00007fa47ffb2980 sp 00007fff9a774908 error 4 in
> libc-2.11.so[7fa47ff2d000+14d000]
> >
> > >> Dec  6 22:49:37 cube kernel: fish[4891]: segfault at 0 ip
> 00007fe574adb980 sp 00007ffff8d600e8 error 4 in
> libc-2.11.so[7fe574a56000+14d000]
> >
> > >>
> >
> > >> If you need other information I will be happy to provide it.
> >
> > >>
> >
> > >> Regards
> >
> > >>
> >
> > >> Goran
> >
> > >>
> >
> > >>
> >
> > >> .
> >
> > >>
> >
> > >>
> >
> > >>
> >
> > >
> ------------------------------------------------------------------------------
> >
> > > Return on Information:
> >
> > > Google Enterprise Search pays you back
> >
> > > Get the facts.
> >
> > > http://p.sf.net/sfu/google-dev2dev
> >
> > > _______________________________________________
> >
> > > Fish-users mailing list
> >
> > > [email protected]
> >
> > > https://lists.sourceforge.net/lists/listinfo/fish-users
> >
> > > .
> >
> > >
> >
> > >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> >
> > This SF.Net email is sponsored by the Verizon Developer Community
> >
> > Take advantage of Verizon's best-in-class app development support
> >
> > A streamlined, 14 day to market process makes app distribution fast
> and easy
> >
> > Join now and get one step closer to millions of Verizon customers
> >
> > http://p.sf.net/sfu/verizon-dev2dev
> >
> > _______________________________________________
> >
> > Fish-users mailing list
> >
> > [email protected]
> >
> > https://lists.sourceforge.net/lists/listinfo/fish-users
> >

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to