jupyter icon indicating copy to clipboard operation
jupyter copied to clipboard

Emacs seg faults on installation on Emacs 28.0.50 on GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-01-23

Open jbulow opened this issue 5 years ago • 6 comments

Both prebuild zmq dependency or locally built during installation in emacs causes emacs to crash during installation process of emacs-jupyter.

Only trace of seg. fault is in dmesg:

emacs[19120]: segfault at 56326d2b3a80 ip 00007ffbbc5b0978 sp 00007ffd3ae41a10 error 7 in emacs-zmq.so[7ffbbc502000+236000]

Running on Ubuntu 18.04.3 LTS

jbulow avatar Jan 27 '20 13:01 jbulow

Thanks, I'll have a look into this. Could you open up an issue in the emacs-zmq project.

nnicandro avatar Mar 06 '20 00:03 nnicandro

I've tested the emacs-zmq package against a recent Emacs 28 snapshot on Ubuntu 18.04.1 (using a locally built module) and no errors popped up (https://travis-ci.com/dzop/emacs-zmq/jobs/295486883#L9279) so far.

Its been a while since your original post, could you try a newer Emacs 28 snapshot to see if you are still experiencing issues.

nnicandro avatar Mar 06 '20 20:03 nnicandro

I installed emacs-jupyter (20220419.1852) from melpa, emacs-zmq (20220510.1820) was installed as a dependency. As soon as I eval

(require 'package)
  (package-initialize)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((python . t)
     (jupyter . t)
     ))

I get the Check for compatible module binary to download message. Answering yes starts downloading, but then emacs crashes with the following dmesg: emacs[53952]: segfault at 55dc9c3e3190 ip 00007f5cade8121a sp 00007ffe31b08470 error 7 in emacs-zmq.so[7f5cade00000+1a8000]

I'm running GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-09-06, from https://launchpad.net/~ubuntu-elisp/+archive/ubuntu/ppa

dinojr avatar Sep 06 '22 22:09 dinojr

I was also having some trouble with emacs-zmq segfaulting. Solved it by manualling building emacs-zmqwith make command. It automatically clones a version of zmq.

Occhima avatar Sep 20 '22 01:09 Occhima

Also, make sure that you' ve configured your emacs with the --with-modules flag. You can check that by inspecting if your module-file-suffix is set to '.so'

Occhima avatar Sep 20 '22 01:09 Occhima

I had the same problem with Emacs 29.0.50 (compiled from the Emacs source as of 2022-10-05 --- x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0). Strangely, I had this problem in one machine but not in another. Installation seemed to work, but on jupyter-run-repl Emacs would crash. Also, if I started Emacs and tried (require 'zmq) it would crash. The segfaults were

emacs[3990103]: segfault at 555a723cf128 ip 00007fdd1888121a sp 00007ffeb48afcf0 error 7 in emacs-zmq.so[7fdd18800000+1a8000]
emacs[3992079]: segfault at 5634e3b65128 ip 00007fc53bc8121a sp 00007ffc9ec87bd0 error 7 in emacs-zmq.so[7fc53bc00000+1a8000]

...

I followed @Occhima's suggestion and https://github.com/nnicandro/emacs-zmq#installation: cloned the emacs-zmq repo, run make and copied the resulting emacs-zmq.so under .emacs.d/elpa/zmq-20220510.1820 and it is working now.

rdiaz02 avatar Nov 12 '22 01:11 rdiaz02