From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23424: 25.0.93; error in process sentinel with Melpa added to package-archives Date: Mon, 02 May 2016 18:49:04 +0300 Message-ID: <8337q0mpe7.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1462204261 8253 80.91.229.3 (2 May 2016 15:51:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 May 2016 15:51:01 +0000 (UTC) Cc: 23424@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 02 17:50:46 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axG7Q-0003vg-Qy for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 May 2016 17:50:45 +0200 Original-Received: from localhost ([::1]:37390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axG7M-0006Rw-OR for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 May 2016 11:50:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axG6z-0005p4-Ke for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:50:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axG6n-0005J0-IH for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:50:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axG6n-0005HO-FE for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:50:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axG6k-0005UZ-2d for bug-gnu-emacs@gnu.org; Mon, 02 May 2016 11:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 May 2016 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23424 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23424-submit@debbugs.gnu.org id=B23424.146220416421055 (code B ref 23424); Mon, 02 May 2016 15:50:02 +0000 Original-Received: (at 23424) by debbugs.gnu.org; 2 May 2016 15:49:24 +0000 Original-Received: from localhost ([127.0.0.1]:34023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axG68-0005TX-F9 for submit@debbugs.gnu.org; Mon, 02 May 2016 11:49:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axG66-0005TK-QC for 23424@debbugs.gnu.org; Mon, 02 May 2016 11:49:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axG5r-0004zQ-K3 for 23424@debbugs.gnu.org; Mon, 02 May 2016 11:49:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axG5r-0004yO-GM; Mon, 02 May 2016 11:49:07 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3379 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1axG5l-0002JR-Ch; Mon, 02 May 2016 11:49:01 -0400 In-reply-to: (message from Kaushal Modi on Mon, 02 May 2016 15:19:02 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117574 Archived-At: > From: Kaushal Modi > Date: Mon, 02 May 2016 15:19:02 +0000 > > I can recreate this error in "emacs -Q" after evaluating the below and then doing M-x list-packages. > > ===== > > (require 'package) > (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) > > ===== > > Here is the error I get: > > ===== > > Importing package-keyring.gpg...done > error in process filter: End of file during parsing > > ===== Here's the problem: Emacs tries to read from an empty string, and fails. The backtrace is below. > As an additional request (hopefully minor), can this process filter error be improved to give more info as to > which file caused it? Given the cause of the problem, how would you wish to improve the error message? Thread 1 hit Breakpoint 3, Fsignal (error_symbol=20888, data=0) at eval.c:1471 1471 = (NILP (error_symbol) ? Fcar (data) : error_symbol); $44 = 20888 $45 = (struct Lisp_Symbol *) 0x2b2ad00 "end-of-file" (gdb) bt #0 Fsignal (error_symbol=20888, data=0) at eval.c:1471 #1 0x0121cf5d in xsignal (error_symbol=20888, data=0) at eval.c:1577 #2 0x0121cf9a in xsignal0 (error_symbol=20888) at eval.c:1586 #3 0x01262e25 in end_of_file_error () at lread.c:1736 #4 0x01267417 in read1 (readcharfun=-9223372036748765968, pch=0x82c3bc, first_in_list=false) at lread.c:3094 #5 0x01264604 in read0 (readcharfun=-9223372036748765968) at lread.c:2137 #6 0x01268c64 in read_list (flag=false, readcharfun=-9223372036748765968) at lread.c:3629 #7 0x01265049 in read1 (readcharfun=-9223372036748765968, pch=0x82c70c, first_in_list=true) at lread.c:2484 #8 0x01268a8e in read_list (flag=false, readcharfun=-9223372036748765968) at lread.c:3585 #9 0x01265049 in read1 (readcharfun=-9223372036748765968, pch=0x82ca1c, first_in_list=false) at lread.c:2484 #10 0x01268a8e in read_list (flag=true, readcharfun=-9223372036748765968) at lread.c:3585 #11 0x012684f6 in read_vector (readcharfun=-9223372036748765968, bytecodeflag=false) at lread.c:3495 #12 0x0126506e in read1 (readcharfun=-9223372036748765968, pch=0x82cdbc, first_in_list=false) at lread.c:2487 #13 0x01264604 in read0 (readcharfun=-9223372036748765968) at lread.c:2137 #14 0x01268c64 in read_list (flag=false, readcharfun=-9223372036748765968) at lread.c:3629 #15 0x01265049 in read1 (readcharfun=-9223372036748765968, pch=0x82d10c, first_in_list=false) at lread.c:2484 #16 0x01268a8e in read_list (flag=false, readcharfun=-9223372036748765968) at lread.c:3585 #17 0x01265049 in read1 (readcharfun=-9223372036748765968, pch=0x82d41c, first_in_list=false) at lread.c:2484 #18 0x01264604 in read0 (readcharfun=-9223372036748765968) at lread.c:2137 #19 0x01264526 in read_internal_start (stream=-9223372036748765968, start=0, end=0) at lread.c:2110 #20 0x0126427b in Fread_from_string (string=-9223372036748765968, start=0, end=0) at lread.c:2073 #21 0x01221a0c in Ffuncall (nargs=2, args=0x82d698) at eval.c:2700 #22 0x012826e1 in exec_byte_code (bytestr=-9223372036759330616, vector=-6917529027537623584, maxdepth=4611686018427387924, args_template=4611686018427388161, nargs=1, args=0x82de40) at bytecode.c:880 #23 0x01222972 in funcall_lambda (fun=-6917529027537623184, nargs=1, arg_vector=0x82de38) at eval.c:2855 #24 0x01221f3b in Ffuncall (nargs=2, args=0x82de30) at eval.c:2742 #25 0x0122018e in Fapply (nargs=2, args=0x82de30) at eval.c:2278 #26 0x0122180d in Ffuncall (nargs=3, args=0x82de28) at eval.c:2673 #27 0x012826e1 in exec_byte_code (bytestr=-9223372036754479384, vector=-6917529027537762864, maxdepth=4611686018427387912, args_template=0, nargs=0, args=0x0) at bytecode.c:880 #28 0x01222fd4 in funcall_lambda (fun=-6917529027537762616, nargs=0, arg_vector=0x82e400) at eval.c:2921 #29 0x01221f3b in Ffuncall (nargs=1, args=0x82e3f8) at eval.c:2742 #30 0x012826e1 in exec_byte_code (bytestr=-9223372036754478168, vector=-6917529027537762424, maxdepth=4611686018427387909, args_template=0, nargs=0, args=0x0) at bytecode.c:880 #31 0x01222fd4 in funcall_lambda (fun=-6917529027537762152, nargs=2, arg_vector=0x82e9b0) at eval.c:2921 #32 0x01221f3b in Ffuncall (nargs=3, args=0x82e9a8) at eval.c:2742 #33 0x012826e1 in exec_byte_code (bytestr=-9223372036754110784, vector=-6917529027537760712, maxdepth=4611686018427387918, args_template=0, nargs=0, args=0x0) at bytecode.c:880 #34 0x01222fd4 in funcall_lambda (fun=-6917529027537760416, nargs=2, arg_vector=0x82ef98) at eval.c:2921 #35 0x01221f3b in Ffuncall (nargs=3, args=0x82ef90) at eval.c:2742 #36 0x01220805 in Fapply (nargs=2, args=0x82f050) at eval.c:2321 #37 0x01221047 in apply1 (fn=58089576, arg=-4611686018321073728) at eval.c:2537 #38 0x012942bd in read_process_output_call (fun_and_args=-4611686018321073712) at process.c:5224 #39 0x0121c61a in internal_condition_case_1 ( bfun=0x12941d4 , arg=-4611686018321073712, handlers=21168, hfun=0x1297822 ) at eval.c:1333 #40 0x01297ace in exec_sentinel (proc=-6917529027537622792, reason=-9223372036749244816) at process.c:6577 #41 0x01297deb in status_notify (deleting_process=0x0, wait_proc=0x0) at process.c:6679 #42 0x012929b0 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:4661 #43 0x0101126c in sit_for (timeout=4611686018427387934, reading=true, display_option=1) at dispnew.c:5762 #44 0x01158765 in read_char (commandflag=1, map=-4611686018321074016, prev_event=0, used_mouse_menu=0x82f62f, end_time=0x0) at keyboard.c:2706 #45 0x0116cff6 in read_key_sequence (keybuf=0x82f7c0, bufsize=30, prompt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9055 #46 0x01153df2 in command_loop_1 () at keyboard.c:1357 #47 0x0121c56e in internal_condition_case (bfun=0x1153820 , handlers=21168, hfun=0x1152a9d ) at eval.c:1309 #48 0x011532b7 in command_loop_2 (ignore=0) at keyboard.c:1099 #49 0x0121b6eb in internal_catch (tag=56728, func=0x115327b , arg=0) at eval.c:1074 #50 0x01153235 in command_loop () at keyboard.c:1078 #51 0x011524ab in recursive_edit_1 () at keyboard.c:684 #52 0x01152771 in Frecursive_edit () at keyboard.c:755 #53 0x0114ff7b in main (argc=2, argv=0xa427e0) at emacs.c:1606 Lisp Backtrace: "read-from-string" (0x82d6a0) 0x62aa770 PVEC_COMPILED "apply" (0x82de30) "url-http-activate-callback" (0x82e400) "url-http-end-of-document-sentinel" (0x82e9b0) "url-http-async-sentinel" (0x82ef98) (gdb) frame 20 #20 0x0126427b in Fread_from_string (string=-9223372036748765968, start=0, end=0) at lread.c:2073 2073 ret = read_internal_start (string, start, end); (gdb) p string $46 = -9223372036748765968 (gdb) xstring $47 = (struct Lisp_String *) 0x65194f0 0