From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Crash caused by insert-file-contents, both trunk (bzr 111532) and 24.2.92 affected Date: Tue, 15 Jan 2013 14:26:08 +0400 Message-ID: <50F52EC0.2030309@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358245591 525 80.91.229.3 (15 Jan 2013 10:26:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 10:26:31 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 15 11:26:48 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Tv3jD-0006qn-A3 for ged-emacs-devel@m.gmane.org; Tue, 15 Jan 2013 11:26:47 +0100 Original-Received: from localhost ([::1]:53358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv3iw-0000ve-QF for ged-emacs-devel@m.gmane.org; Tue, 15 Jan 2013 05:26:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv3iq-0000fN-3N for emacs-devel@gnu.org; Tue, 15 Jan 2013 05:26:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv3il-0001po-OR for emacs-devel@gnu.org; Tue, 15 Jan 2013 05:26:23 -0500 Original-Received: from forward5.mail.yandex.net ([77.88.46.21]:41441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv3ik-0001oG-Rz; Tue, 15 Jan 2013 05:26:19 -0500 Original-Received: from smtp1.mail.yandex.net (smtp1.mail.yandex.net [77.88.46.101]) by forward5.mail.yandex.net (Yandex) with ESMTP id 565131200C8F; Tue, 15 Jan 2013 14:26:08 +0400 (MSK) Original-Received: from smtp1.mail.yandex.net (localhost [127.0.0.1]) by smtp1.mail.yandex.net (Yandex) with ESMTP id 2AAF2AA086D; Tue, 15 Jan 2013 14:26:08 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp1.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Q7OW3v7H-Q7OWoOWl; Tue, 15 Jan 2013 14:26:07 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1358245568; bh=9mNCXWsQeqKUucdpvez3OXsnLrGVZ5EprzhDe2Xawzw=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type:Content-Transfer-Encoding; b=EXFORiZlQFmEnoTFjMLsasfMBM66M69asA5psyFFRmFHDi/a5DWX2jUv53hKoOaoj whe2eBp69ptpu8fs1h1OJL1k/mstz5W5hMDsgSTAJUcrl7UxanmbtkGfZYB3+e4fXi mvE43pReMf6cKdDokbS0swNpGk/ib2JCQMJSg5yA= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 77.88.46.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156377 Archived-At: Steps to reproduce: ./src/emacs -Q M-x eval-expression RET (insert-file-contents "/dev/sda") (assuming /dev/sda is a readable block device). For trunk, the backtrace is: #0 0x000000377da0eebb in raise () from /lib64/libpthread.so.0 #1 0x0000000000525d38 in terminate_due_to_signal (sig=sig@entry=11, backtrace_limit=backtrace_limit@entry=40) at /home/dima/work/stuff/emacs/trunk/src/emacs.c:342 #2 0x0000000000546188 in handle_fatal_signal (sig=11) at /home/dima/work/stuff/emacs/trunk/src/sysdep.c:1653 #3 deliver_thread_signal (sig=11, handler=) at /home/dima/work/stuff/emacs/trunk/src/sysdep.c:1629 #4 deliver_fatal_thread_signal (sig=11) at /home/dima/work/stuff/emacs/trunk/src/sysdep.c:1665 #5 #6 0x00000000004ce56f in char_table_ref (table=..., c=c@entry=4195088) at /home/dima/work/stuff/emacs/trunk/src/chartab.c:234 #7 0x00000000006265bc in composition_compute_stop_pos (cmp_it=0x7fff169924d8, charpos=209, charpos@entry=192, bytepos=216, endpos=692, string=..., string@entry=...) at /home/dima/work/stuff/emacs/trunk/src/composite.c:1053 #8 0x000000000062767d in composition_reseat_it (cmp_it=cmp_it@entry=0x7fff169924d8, charpos=192, bytepos=192, endpos=139249, w=0x12c0648, face=0x1b8fb10, string=...) at /home/dima/work/stuff/emacs/trunk/src/composite.c:1224 #9 0x0000000000456a68 in next_element_from_buffer (it=0x7fff16991c70) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:8003 #10 0x000000000044b2fa in get_next_display_element (it=it@entry=0x7fff16991c70) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:6623 #11 0x00000000004515eb in display_line (it=it@entry=0x7fff16991c70) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:19437 #12 0x0000000000459f82 in try_window (window=..., window@entry=..., pos=..., flags=flags@entry=1) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:16301 #13 0x00000000004712a3 in redisplay_window (window=..., just_this_one_p=just_this_one_p@entry=0) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:15827 #14 0x0000000000474873 in redisplay_window_0 (window=..., window@entry=...) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:13881 #15 0x00000000005b38bb in internal_condition_case_1 (bfun=bfun@entry=0x474840 , arg=..., handlers=..., hfun=hfun@entry=0x430130 ) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1231 #16 0x0000000000437f5e in redisplay_windows (window=...) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:13861 #17 0x0000000000437eea in redisplay_windows (window=...) at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:13855 #18 0x000000000045b195 in redisplay_internal () at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:13453 #19 0x000000000045d945 in redisplay () at /home/dima/work/stuff/emacs/trunk/src/xdisp.c:12731 #20 0x0000000000534134 in read_char (commandflag=1, nmaps=nmaps@entry=2, maps=maps@entry=0x7fff16998d00, prev_event=..., used_mouse_menu=used_mouse_menu@entry=0x7fff16998e33, end_time=end_time@entry=0x0) at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:2428 #21 0x0000000000536cb9 in read_key_sequence (keybuf=keybuf@entry=0x7fff16998f20, prompt=..., dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, bufsize=30) at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:9241 #22 0x0000000000539900 in command_loop_1 () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:1460 #23 0x00000000005b3773 in internal_condition_case (bfun=bfun@entry=0x5396c0 , handlers=..., hfun=hfun@entry=0x52b6a0 ) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1193 #24 0x000000000052997e in command_loop_2 (ignore=..., ignore@entry=...) at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:1175 #25 0x00000000005b3650 in internal_catch (tag=..., func=func@entry=0x529960 , arg=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:964 #26 0x000000000052afb3 in command_loop () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:1146 #27 recursive_edit_1 () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:787 #28 0x000000000052b3cc in Frecursive_edit () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:851 #29 0x00000000005b59aa in Ffuncall (nargs=, args=) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2672 #30 0x00000000005fc753 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=4611686018645491712, args=0x2, args@entry=0x7fff16999778) at /home/dima/work/stuff/emacs/trunk/src/bytecode.c:898 #31 0x00000000005b5305 in funcall_lambda (fun=..., nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fff16999778) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2841 #32 0x00000000005b57ab in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fff16999770) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2736 #33 0x00000000005b687e in Fapply (nargs=nargs@entry=2, args=args@entry=0x7fff16999830) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2209 #34 0x00000000005b5c9e in apply1 (fn=..., arg=..., arg@entry=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2443 #35 0x00000000005b5e46 in call_debugger (arg=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:222 #36 0x00000000005b63e6 in maybe_call_debugger (data=..., sig=..., conditions=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1611 #37 Fsignal (error_symbol=..., data=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1431 #38 0x00000000005b64a9 in xsignal (error_symbol=..., error_symbol@entry=..., data=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1466 #39 0x00000000005b6dc7 in xsignal1 (error_symbol=..., arg=..., arg@entry=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1481 #40 0x00000000005b6e39 in verror (m=, ap=ap@entry=0x7fff1699a8d8) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1680 #41 0x00000000005b6ecc in error (m=m@entry=0x6fd9d9 "IO error reading %s: %s") at /home/dima/work/stuff/emacs/trunk/src/eval.c:1692 #42 0x00000000005684c3 in Finsert_file_contents (filename=..., visit=..., beg=..., end=..., replace=...) at /home/dima/work/stuff/emacs/trunk/src/fileio.c:4329 #43 0x00000000005b4994 in eval_sub (form=..., form@entry=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2054 #44 0x00000000005b73ae in Feval (form=..., lexical=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1902 #45 0x00000000005b598e in Ffuncall (nargs=, args=) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2678 #46 0x00000000005fc753 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=4611686018645491712, args=0x2, args@entry=0x7fff169af1a8) at /home/dima/work/stuff/emacs/trunk/src/bytecode.c:898 #47 0x00000000005b5305 in funcall_lambda (fun=..., nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fff169af1a8) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2841 #48 0x00000000005b57ab in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fff169af1a0) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2736 #49 0x00000000005b687e in Fapply (nargs=nargs@entry=2, args=args@entry=0x7fff169af260) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2209 #50 0x00000000005b5c9e in apply1 (fn=..., arg=..., arg@entry=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2443 #51 0x00000000005b13b4 in Fcall_interactively (function=..., record_flag=..., keys=...) at /home/dima/work/stuff/emacs/trunk/src/callint.c:377 #52 0x00000000005b597c in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x7fff169af400) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2682 #53 0x00000000005b5b64 in call3 (fn=..., arg1=..., arg1@entry=..., arg2=..., arg2@entry=..., arg3=..., arg3@entry=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:2500 #54 0x0000000000528ab5 in Fcommand_execute (cmd=..., record_flag=..., keys=..., special=...) at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:10251 #55 0x0000000000539bbd in command_loop_1 () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:1588 #56 0x00000000005b3773 in internal_condition_case (bfun=bfun@entry=0x5396c0 , handlers=..., hfun=hfun@entry=0x52b6a0 ) at /home/dima/work/stuff/emacs/trunk/src/eval.c:1193 #57 0x000000000052997e in command_loop_2 (ignore=..., ignore@entry=...) at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:1175 #58 0x00000000005b3650 in internal_catch (tag=..., func=func@entry=0x529960 , arg=...) at /home/dima/work/stuff/emacs/trunk/src/eval.c:964 #59 0x000000000052b02e in command_loop () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:1154 #60 recursive_edit_1 () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:787 #61 0x000000000052b3cc in Frecursive_edit () at /home/dima/work/stuff/emacs/trunk/src/keyboard.c:851 #62 0x0000000000417f85 in main (argc=2, argv=) at /home/dima/work/stuff/emacs/trunk/src/emacs.c:1554 For 24.2.92, the backtrace looks nearly the same: #0 0x000000377da0eebb in raise () from /lib64/libpthread.so.0 #1 0x00000000004deb28 in terminate_due_to_signal (sig=sig@entry=11, backtrace_limit=backtrace_limit@entry=40) at emacs.c:344 #2 0x00000000004f8478 in handle_fatal_signal (sig=11) at sysdep.c:1638 #3 deliver_thread_signal (sig=11, handler=) at sysdep.c:1614 #4 deliver_fatal_thread_signal (sig=11) at sysdep.c:1650 #5 #6 0x0000000000499c52 in char_table_ref (table=, c=4195088) at chartab.c:234 #7 0x00000000005ab4c8 in composition_compute_stop_pos (cmp_it=0x7fffc90e0e98, charpos=209, charpos@entry=192, bytepos=216, endpos=692, string=string@entry=12079650) at composite.c:1053 #8 0x00000000005ac49d in composition_reseat_it (cmp_it=cmp_it@entry=0x7fffc90e0e98, charpos=192, bytepos=192, endpos=139249, w=, face=0xc701b0, string=12079650) at composite.c:1224 #9 0x0000000000446ec8 in next_element_from_buffer (it=0x7fffc90e0630) at xdisp.c:7992 #10 0x000000000043d9e2 in get_next_display_element (it=it@entry=0x7fffc90e0630) at xdisp.c:6612 #11 0x0000000000442dea in display_line (it=it@entry=0x7fffc90e0630) at xdisp.c:19475 #12 0x0000000000449782 in try_window (window=window@entry=18402949, pos=..., flags=flags@entry=1) at xdisp.c:16352 #13 0x000000000045b853 in redisplay_window (window=18402949, just_this_one_p=just_this_one_p@entry=0) at xdisp.c:15878 #14 0x000000000045db03 in redisplay_window_0 (window=window@entry=18402949) at xdisp.c:13933 #15 0x0000000000552a1b in internal_condition_case_1 (bfun=0x45dad0 , arg=18402949, handlers=12050374, hfun=0x42a4b0 ) at eval.c:1327 #16 0x000000000042f91e in redisplay_windows (window=4195088) at xdisp.c:13913 #17 0x000000000042f940 in redisplay_windows (window=4195088) at xdisp.c:13907 #18 0x000000000044a471 in redisplay_internal () at xdisp.c:13492 #19 0x000000000044beb5 in redisplay () at xdisp.c:12692 #20 0x00000000004e9522 in read_char (commandflag=1, nmaps=nmaps@entry=2, maps=maps@entry=0x7fffc90e7650, prev_event=12079650, used_mouse_menu=used_mouse_menu@entry=0x7fffc90e7763, end_time=0x0, end_time@entry=0x7fffc90e7650) at keyboard.c:2429 #21 0x00000000004eb8d3 in read_key_sequence (keybuf=keybuf@entry=0x7fffc90e7840, prompt=12079650, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, bufsize=30) at keyboard.c:9231 #22 0x00000000004ed8ce in command_loop_1 () at keyboard.c:1459 #23 0x00000000005528d3 in internal_condition_case (bfun=bfun@entry=0x4ed6e0 , handlers=12131330, hfun=hfun@entry=0x4e2f40 ) at eval.c:1289 #24 0x00000000004e16de in command_loop_2 (ignore=ignore@entry=12079650) at keyboard.c:1168 #25 0x00000000005527b0 in internal_catch (tag=202662897254400, func=func@entry=0x4e16c0 , arg=12079650) at eval.c:1060 #26 0x00000000004e29b3 in command_loop () at keyboard.c:1139 #27 recursive_edit_1 () at keyboard.c:779 #28 0x00000000004e2d45 in Frecursive_edit () at keyboard.c:843 #29 0x000000000055447a in Ffuncall (nargs=, args=) at eval.c:2772 #30 0x00000000005895a3 in exec_byte_code (bytestr=12230933, vector=83, maxdepth=4611686018695757824, args_template=4611686018695757824, nargs=4611686018430533632, args=0x400310, args@entry=0x0) at bytecode.c:900 #31 0x0000000000553fc1 in funcall_lambda (fun=17644901, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fffc90e7f98) at eval.c:3007 #32 0x00000000005542db in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fffc90e7f90) at eval.c:2836 #33 0x00000000005552ad in Fapply (nargs=nargs@entry=2, args=args@entry=0x7fffc90e8040) at eval.c:2309 #34 0x00000000005547c0 in apply1 (fn=12196898, arg=arg@entry=19184070) at eval.c:2543 #35 0x0000000000554976 in call_debugger (arg=19184070) at eval.c:223 #36 0x0000000000554d98 in maybe_call_debugger (data=19184118, sig=12131330, conditions=8596294) at eval.c:1707 #37 Fsignal (error_symbol=error_symbol@entry=12131330, data=19184118) at eval.c:1527 #38 0x0000000000554f59 in xsignal (error_symbol=error_symbol@entry=12131330, data=) at eval.c:1562 #39 0x0000000000555647 in xsignal1 (error_symbol=12131330, arg=arg@entry=14430769) at eval.c:1577 #40 0x00000000005556b9 in verror (m=, ap=ap@entry=0x7fffc90e90e8) at eval.c:1776 #41 0x000000000055574c in error (m=m@entry=0x5e8c03 "IO error reading %s: %s") at eval.c:1788 #42 0x0000000000513b8f in Finsert_file_contents (filename=14436673, visit=12079650, beg=12079650, end=12079650, replace=) at fileio.c:3768 #43 0x0000000000553925 in eval_sub (form=form@entry=19187158) at eval.c:2154 #44 0x0000000000555a25 in Feval (form=19187158, lexical=) at eval.c:2005 #45 0x0000000000554461 in Ffuncall (nargs=, args=) at eval.c:2778 #46 0x00000000005895a3 in exec_byte_code (bytestr=12230933, vector=0, maxdepth=4611686018695757824, args_template=4611686018695757824, nargs=4611686018430533632, args=0x400310, args@entry=0x0) at bytecode.c:900 #47 0x0000000000553fc1 in funcall_lambda (fun=9492837, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fffc90fd988) at eval.c:3007 #48 0x00000000005542db in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fffc90fd980) at eval.c:2836 #49 0x00000000005552ad in Fapply (nargs=nargs@entry=2, args=args@entry=0x7fffc90fda30) at eval.c:2309 #50 0x00000000005547c0 in apply1 (fn=fn@entry=15603250, arg=arg@entry=19184406) at eval.c:2543 #51 0x00000000005503ac in Fcall_interactively (function=15603250, record_flag=12079650, keys=12114869) at callint.c:377 #52 0x000000000055444f in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x7fffc90fdbc0) at eval.c:2782 #53 0x0000000000554684 in call3 (fn=, arg1=, arg2=, arg3=) at eval.c:2600 #54 0x00000000004e0c8d in Fcommand_execute (cmd=, record_flag=, keys=, special=) at keyboard.c:10241 #55 0x00000000004eda7a in command_loop_1 () at keyboard.c:1587 #56 0x00000000005528d3 in internal_condition_case (bfun=bfun@entry=0x4ed6e0 , handlers=12131330, hfun=hfun@entry=0x4e2f40 ) at eval.c:1289 #57 0x00000000004e16de in command_loop_2 (ignore=ignore@entry=12079650) at keyboard.c:1168 #58 0x00000000005527b0 in internal_catch (tag=202662897254400, func=func@entry=0x4e16c0 , arg=12079650) at eval.c:1060 #59 0x00000000004e2a27 in command_loop () at keyboard.c:1147 #60 recursive_edit_1 () at keyboard.c:779 #61 0x00000000004e2d45 in Frecursive_edit () at keyboard.c:843 #62 0x0000000000416f2f in main (argc=2, argv=) at emacs.c:1547 Dmitry