Skip to content

Instantly share code, notes, and snippets.

@fleimgruber
Created April 26, 2019 19:12
Show Gist options
  • Save fleimgruber/e7d0dbd73052f334761a7f4c05f47196 to your computer and use it in GitHub Desktop.
Save fleimgruber/e7d0dbd73052f334761a7f4c05f47196 to your computer and use it in GitHub Desktop.
zmq-ENOTSOCK backtrace without emacs-jupyter
Debugger entered--Lisp error: (zmq-subprocess-error zmq-ENOTSOCK ("Unknown error"))
signal(zmq-subprocess-error (zmq-ENOTSOCK ("Unknown error")))
(progn (signal 'zmq-subprocess-error (cdr event)))
(if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil)))
(while (consp --cl-var--) (setq event (car --cl-var--)) (if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil))) (setq --cl-var-- (cdr --cl-var--)))
(let* ((--cl-var-- stream) (event nil)) (while (consp --cl-var--) (setq event (car --cl-var--)) (if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil))) (setq --cl-var-- (cdr --cl-var--))) nil)
(let ((stream (let ((inhibit-read-only t)) (zmq--subprocess-read-output output)))) (let* ((--cl-var-- stream) (event nil)) (while (consp --cl-var--) (setq event (car --cl-var--)) (if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil))) (setq --cl-var-- (cdr --cl-var--))) nil))
(progn (let ((stream (let ((inhibit-read-only t)) (zmq--subprocess-read-output output)))) (let* ((--cl-var-- stream) (event nil)) (while (consp --cl-var--) (setq event (car --cl-var--)) (if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil))) (setq --cl-var-- (cdr --cl-var--))) nil)))
(if filter (progn (let ((stream (let ((inhibit-read-only t)) (zmq--subprocess-read-output output)))) (let* ((--cl-var-- stream) (event nil)) (while (consp --cl-var--) (setq event (car --cl-var--)) (if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil))) (setq --cl-var-- (cdr --cl-var--))) nil))))
(let ((filter (process-get process :filter))) (if filter (progn (let ((stream (let ((inhibit-read-only t)) (zmq--subprocess-read-output output)))) (let* ((--cl-var-- stream) (event nil)) (while (consp --cl-var--) (setq event (car --cl-var--)) (if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil))) (setq --cl-var-- (cdr --cl-var--))) nil)))))
(save-current-buffer (set-buffer (process-buffer process)) (goto-char (process-mark process)) (let ((filter (process-get process :filter))) (if filter (progn (let ((stream (let ((inhibit-read-only t)) (zmq--subprocess-read-output output)))) (let* ((--cl-var-- stream) (event nil)) (while (consp --cl-var--) (setq event (car --cl-var--)) (if (and (listp event) (eq (car event) 'error)) (progn (signal 'zmq-subprocess-error (cdr event))) (condition-case err (funcall filter event) ((debug error) (message "Error in ZMQ subprocess filter: %S" err) nil))) (setq --cl-var-- (cdr --cl-var--))) nil))))) (set-marker (process-mark process) (point-max)))
zmq--subprocess-filter(#<process zmq> "(start)(error zmq-ENOTSOCK (\"Unknown error\"))")
sleep-for(0.2)
(progn (sleep-for 0.2) (zmq-subprocess-send proc (list 'foo "bar")) (sleep-for 0.2))
(unwind-protect (progn (sleep-for 0.2) (zmq-subprocess-send proc (list 'foo "bar")) (sleep-for 0.2)) (delete-process proc))
(let ((proc (zmq-start-process '(lambda (ctx) (let ((poller (zmq-poller))) (zmq-poller-add poller 0 zmq-POLLIN) (let (events) (condition-case nil (progn (zmq-prin1 '(start)) (while t (setq events (condition-case nil (zmq-poller-wait-all poller 1 200) ((zmq-EAGAIN zmq-EINTR zmq-ETIMEDOUT) nil))) (let ((stdin-event (assq 0 events))) (when stdin-event (setq events (delq stdin-event events)) (zmq-prin1 (zmq-subprocess-read)))))) (quit (zmq-prin1 '(quit))))))) :filter (function (lambda (event) (message "EVENT: %s" event)))))) (unwind-protect (progn (sleep-for 0.2) (zmq-subprocess-send proc (list 'foo "bar")) (sleep-for 0.2)) (delete-process proc)))
eval((let ((proc (zmq-start-process '(lambda (ctx) (let ((poller (zmq-poller))) (zmq-poller-add poller 0 zmq-POLLIN) (let (events) (condition-case nil (progn (zmq-prin1 '(start)) (while t (setq events (condition-case nil (zmq-poller-wait-all poller 1 200) ((zmq-EAGAIN zmq-EINTR zmq-ETIMEDOUT) nil))) (let ((stdin-event (assq 0 events))) (when stdin-event (setq events (delq stdin-event events)) (zmq-prin1 (zmq-subprocess-read)))))) (quit (zmq-prin1 '(quit))))))) :filter (function (lambda (event) (message "EVENT: %s" event)))))) (unwind-protect (progn (sleep-for 0.2) (zmq-subprocess-send proc (list 'foo "bar")) (sleep-for 0.2)) (delete-process proc))) nil)
elisp--eval-last-sexp(nil)
#f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #<bytecode 0x1000d575b>)(nil)
#f(compiled-function (&rest _it) #<bytecode 0x3956031>)()
eval-sexp-fu-flash-doit-simple(#f(compiled-function (&rest _it) #<bytecode 0x3956031>) #f(compiled-function (&rest args2) #<bytecode 0x4e8f451>) #f(compiled-function (&rest args2) #<bytecode 0x4e90c69>))
eval-sexp-fu-flash-doit(#f(compiled-function (&rest _it) #<bytecode 0x3956031>) #f(compiled-function (&rest args2) #<bytecode 0x4e8f451>) #f(compiled-function (&rest args2) #<bytecode 0x4e90c69>))
esf-flash-doit(#f(compiled-function (&rest _it) #<bytecode 0x3956031>) #f(compiled-function (&rest args2) #<bytecode 0x4e8f451>) #f(compiled-function (&rest args2) #<bytecode 0x4e90c69>) #f(compiled-function (&rest args2) #<bytecode 0x4e8d431>))
ad-Advice-eval-last-sexp(#f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #<bytecode 0x1000d575b>) nil)
apply(ad-Advice-eval-last-sexp #f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #<bytecode 0x1000d575b>) nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment