You are not logged in.

#1 2009-04-27 08:16:45

fac
Member
Registered: 2009-04-27
Posts: 10

[SOLVED] Emacs: fatal error(11)Segmentation fault

Hi everyone

I am problems with Emacs and X. After I upgraded to the new version of X, emacs will no longer start. It just ends up with a "fatal error(11)Segmentation fault" message. However if I start it with the -nx parameter it starts just fine.

Since I can find nobody else with this kind of problem I am guessing I am doing something wrong, so my question is what?

Last edited by fac (2009-05-01 15:16:05)

Offline

#2 2009-04-27 09:01:16

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] Emacs: fatal error(11)Segmentation fault

Which emacs? It works here, but I am using emacs-cvs.


To know or not to know ...
... the questions remain forever.

Offline

#3 2009-04-27 09:20:09

fac
Member
Registered: 2009-04-27
Posts: 10

Re: [SOLVED] Emacs: fatal error(11)Segmentation fault

I have tried both emacs-csv and the "official" emacs (version 22.3 - if i remember correctly).

I have tried moving emacs config files from my home directory but none of it helps.

Offline

#4 2009-04-27 09:35:04

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [SOLVED] Emacs: fatal error(11)Segmentation fault

Perhaps you should consider running a memtest overnight - just to cover that possibility...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#5 2009-04-27 23:03:14

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [SOLVED] Emacs: fatal error(11)Segmentation fault

So emacs is working alright within the terminal?

Offline

#6 2009-04-28 06:41:13

fac
Member
Registered: 2009-04-27
Posts: 10

Re: [SOLVED] Emacs: fatal error(11)Segmentation fault

Yeah it works fine in the terminal. It seg faults every time i start emacs without the -nw parameter

Offline

#7 2009-05-01 15:15:27

fac
Member
Registered: 2009-04-27
Posts: 10

Re: [SOLVED] Emacs: fatal error(11)Segmentation fault

I finally got it to work after changing the PKGBUILD file, so that the ./configure arguments was no longer "--with-x-toolkit=gtk" but "--with-x-toolkit=yes --with-x". The new PKGBUILD is pasted below. I am running the latest stable version of KDE4mod if this has anything to do with it.

# $Id: PKGBUILD 26660 2009-02-11 01:36:15Z eric $
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
# Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
pkgname=emacs
pkgver=22.3
pkgrel=1
pkgdesc="The Emacs Editor"
arch=(i686 x86_64)
url="http://www.gnu.org/software/emacs/emacs.html"
license=('GPL')
options=(docs)
depends=('ncurses' 'libpng' 'libtiff' 'giflib' 'libxpm' 'gtk2' 'texinfo')
source=(ftp://ftp.gnu.org/gnu/emacs/$pkgname-$pkgver.tar.gz emacs.desktop)
md5sums=('aa8ba34f548cd78b35914ae5a7bb87eb' 
         '8af038d2ba4561271e935bb444ceb4e3')
install=emacs.install

build() {
  cd $startdir/src/$pkgname-$pkgver
  mandir=/usr/share/man
  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
  --localstatedir=/var --mandir=${mandir} --without-sound --with-x-toolkit=yes --with-x
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1

  # remove conflict with ctags package
  mv $startdir/pkg/usr/bin/{ctags,ctags.emacs} || return 1
  mv $startdir/pkg/usr/bin/{etags,etags.emacs} || return 1
  mv $startdir/pkg${mandir}/man1/{etags.1,etags.emacs.1} || return 1
  mv $startdir/pkg${mandir}/man1/{ctags.1,ctags.emacs.1} || return 1
  # fix all the 777 perms on directories
  find $startdir/pkg/usr/share/emacs/$pkgver -type d -exec chmod 755 {} \;
  # fix user/root permissions on usr/share files
  find $startdir/pkg/usr/share/emacs/$pkgver -exec chown root.root {} \;

  # remove info dir
  rm $startdir/pkg/usr/share/info/dir
  gzip -9nf $startdir/pkg/usr/share/info/*

  # fix  FS#9253 
  mkdir -p $startdir/pkg/usr/share/pixmaps ${startdir}/pkg/usr/share/applications
  install -D -m644 ${startdir}/src/${pkgname}.desktop   ${startdir}/pkg/usr/share/applications
  ln -s ../emacs/${pkgver}/etc/images/icons/emacs_48.png  $startdir/pkg/usr/share/pixmaps/emacs-icon.png
}

Offline

Board footer

Powered by FluxBB