Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4245B40BC61 for ; Mon, 16 Aug 2010 00:12:35 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.851 X-Spam-Level: X-Spam-Status: No, score=-0.851 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049] autolearn=no Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QoWkD9iI-zFR for ; Mon, 16 Aug 2010 00:12:21 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 8805B40BC63 for ; Mon, 16 Aug 2010 00:12:21 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id A5AB719F3367; Mon, 16 Aug 2010 09:12:04 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id KEBvRIM8b4DE; Mon, 16 Aug 2010 09:12:03 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 04C2219F3376; Mon, 16 Aug 2010 09:12:03 +0200 (CEST) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id B2A1AFA003; Mon, 16 Aug 2010 09:12:02 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1OkXma-000232-PK; Sun, 15 Aug 2010 09:37:28 +0200 From: Michal Sojka To: Chong Yidong Subject: Re: bug#6214: 23.1; json-read-string crashes emacs with long string In-Reply-To: <8739ug3mrr.fsf@stupidchicken.com> References: <87pr0t5h1q.fsf@yoom.home.cworth.org> <87fx1pkrsh.fsf@stupidchicken.com> <87tymzv6ga.fsf@steelpick.2x.cz> <878w4afozw.fsf@stupidchicken.com> <87sk2hbq3s.fsf@steelpick.2x.cz> <8739ug3mrr.fsf@stupidchicken.com> User-Agent: Notmuch/0.3.1-80-g86b7c46 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Sun, 15 Aug 2010 09:37:28 +0200 Message-ID: <87r5i02uo7.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: 6214@debbugs.gnu.org, Notmuch mailing list X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 07:12:35 -0000 On Sat, 14 Aug 2010, Chong Yidong wrote: > First, please check if this equivalent and simpler recipe also > reproduces the problem, to make sure this is the same bug: >=20 > emacs --batch -q --eval "(apply 'string (make-list 1122176 ?a)))" Yes, the problem is still here. > If so, please recompile without optimizations: >=20 > CFLAGS=3D"-g" ./configure > make >=20 > and see if you can obtain a cleaner backtrace. Program received signal SIGSEGV, Segmentation fault. 0x00000000005f81fc in Fapply (nargs=3D2, args=3D0x7fffffffc670) at eval.c:2= 492 2492 memcpy (funcall_args, args, nargs * sizeof (Lisp_Object)); #0 0x00000000005f81fc in Fapply (nargs=3D2, args=3D0x7fffffffc670) at eval= .c:2492 i =3D 0 numargs =3D 1122176 spread_arg =3D 38164022 funcall_args =3D 0x7fffff76c9d0 fun =3D 9260085 gcpro1 =3D { next =3D 0x2465636,=20 var =3D 0x95cb41,=20 nvars =3D 1122177 } #1 0x00000000005f7ade in Feval (form=3D19244870) at eval.c:2321 vals =3D 0x7fffffffc670 argnum =3D 2 numargs =3D 8 args_left =3D 12507474 i =3D 2 maxargs =3D -14728 argvals =3D {19244854, 18642001, 0, 6, 6, 25769803776, 16350976, 12= 420200} fun =3D 12011021 val =3D 24 original_fun =3D 12677650 original_args =3D 19244918 funcar =3D 19244870 backtrace =3D { next =3D 0x7fffffffc800,=20 function =3D 0x7fffffffc770,=20 args =3D 0x7fffffffc670,=20 nargs =3D 2,=20 evalargs =3D 1 '\001',=20 debug_on_exit =3D 0 '\000' } gcpro1 =3D { next =3D 0x0,=20 var =3D 0x11c7471,=20 nvars =3D 39 } gcpro2 =3D { next =3D 0x0,=20 var =3D 0x7fffffffd530,=20 nvars =3D -14512 } gcpro3 =3D { next =3D 0x125a416,=20 var =3D 0x7fffffffc670,=20 nvars =3D 2 } #2 0x00000000005f8ead in Ffuncall (nargs=3D2, args=3D0x7fffffffc880) at ev= al.c:2983 fun =3D 12010973 original_fun =3D 12677602 funcar =3D 9817142 numargs =3D 1 lisp_numargs =3D 6302634 val =3D 19244870 backtrace =3D { next =3D 0x7fffffffcc80,=20 function =3D 0x7fffffffc880,=20 args =3D 0x7fffffffc888,=20 nargs =3D 1,=20 evalargs =3D 0 '\000',=20 debug_on_exit =3D 0 '\000' } internal_args =3D 0x7fffffffc888 i =3D 0 #3 0x0000000000645887 in Fbyte_code (bytestr=3D9815377, vector=3D9815413, = maxdepth=3D40) at bytecode.c:679 count =3D 5 op =3D 1 vectorp =3D 0x95c580 bytestr_length =3D 1187 stack =3D { pc =3D 0xb48b63 "\210\202\300\003\016L=E5=9D=83\311\001\346\347\0= 16N\206\241\001\f\211A\024@!!\026F\016E\203\274\001\016E\016F\016EAB\241\21= 0\016EA\026E\202\300\003\016F\016RB\211\026R\026E\202\300\003\016L=E8=9D=83= \372\001\347\016N\206\333\001\f\211A\024@!\036S\346\016S!\036T\351\016T!\20= 3\357\001\016T\026S\352\016S\314\331#\210*\202\300\003\016L=EB=9D=83!\002\3= 47\016N\206\f\002\f\211A\024@!\036S\346\016S!\036T\352\016T\314=D9=89$\210*= \202\300\003\016L=EC=9A=83J\002\331\026Q\016N\206\065\002\f\211A\024@\211\0= 26F;\204@\002\332\355!\210\356\347\016F!!\210\202\300\003\016L=EF=9A=83X\00= 2", ...,=20 top =3D 0x7fffffffc888,=20 bottom =3D 0x7fffffffc880,=20 byte_string =3D 9815377,=20 byte_string_start =3D 0xb489d9 "\306 \210\b\203\021",=20 constants =3D 9815413,=20 next =3D 0x7fffffffcd70 } top =3D 0x7fffffffc880 result =3D 140737488341184 #4 0x00000000005f9701 in funcall_lambda (fun=3D9815317, nargs=3D1, arg_vec= tor=3D0x7fffffffcd08) at eval.c:3165 val =3D 12535520 syms_left =3D 12507474 next =3D 14517122 count =3D 4 i =3D 1 optional =3D 0 rest =3D 0 #5 0x00000000005f90bb in Ffuncall (nargs=3D2, args=3D0x7fffffffcd00) at ev= al.c:3029 fun =3D 9815317 original_fun =3D 14191698 funcar =3D 12535520 numargs =3D 1 lisp_numargs =3D 6152191 val =3D 19245862 backtrace =3D { next =3D 0x7fffffffd0f0,=20 function =3D 0x7fffffffcd00,=20 args =3D 0x7fffffffcd08,=20 nargs =3D 1,=20 evalargs =3D 0 '\000',=20 debug_on_exit =3D 0 '\000' } internal_args =3D 0x125ab36 i =3D 0 #6 0x0000000000645887 in Fbyte_code (bytestr=3D9788449, vector=3D9788485, = maxdepth=3D28) at bytecode.c:679 count =3D 4 op =3D 1 vectorp =3D 0x955c50 bytestr_length =3D 1723 stack =3D { pc =3D 0xb4b681 "\210\016N\203^\006\201", ,=20 top =3D 0x7fffffffcd08,=20 bottom =3D 0x7fffffffcd00,=20 byte_string =3D 9788449,=20 byte_string_start =3D 0xb4b02f "\306 \020\307\021\n\023\307\024\3= 10\311!\211\035\307=3D\204\064",=20 constants =3D 9788485,=20 next =3D 0x7fffffffd1d0 } top =3D 0x7fffffffcd00 result =3D 13467377 #7 0x00000000005f9701 in funcall_lambda (fun=3D9788405, nargs=3D0, arg_vec= tor=3D0x7fffffffd178) at eval.c:3165 val =3D 12535520 syms_left =3D 12507474 next =3D 13258642 count =3D 4 i =3D 0 optional =3D 0 rest =3D 0 #8 0x00000000005f90bb in Ffuncall (nargs=3D1, args=3D0x7fffffffd170) at ev= al.c:3029 fun =3D 9788405 original_fun =3D 13569954 funcar =3D 13569906 numargs =3D 0 lisp_numargs =3D 6152191 val =3D 13467377 backtrace =3D { next =3D 0x7fffffffd6c0,=20 function =3D 0x7fffffffd170,=20 args =3D 0x7fffffffd178,=20 nargs =3D 0,=20 evalargs =3D 0 '\000',=20 debug_on_exit =3D 0 '\000' } internal_args =3D 0xcd7ef1 i =3D 0 #9 0x0000000000645887 in Fbyte_code (bytestr=3D9783473, vector=3D9783509, = maxdepth=3D24) at bytecode.c:679 count =3D 2 op =3D 0 vectorp =3D 0x9548e0 bytestr_length =3D 220 stack =3D { pc =3D 0xb4be2e "\210*\340\341\342\"\210\343\321\344\"\211\036$;\= 203\251",=20 top =3D 0x7fffffffd170,=20 bottom =3D 0x7fffffffd170,=20 byte_string =3D 9783473,=20 byte_string_start =3D 0xb4bda0 "\b\203\b",=20 constants =3D 9783509,=20 next =3D 0x0 } top =3D 0x7fffffffd170 result =3D 4294967295 #10 0x00000000005f9701 in funcall_lambda (fun=3D9783429, nargs=3D0, arg_vec= tor=3D0x7fffffffd530) at eval.c:3165 val =3D 1 syms_left =3D 12507474 next =3D 140733193388033 count =3D 2 i =3D 0 optional =3D 0 rest =3D 0 #11 0x00000000005f932f in apply_lambda (fun=3D9783429, args=3D12507474, eva= l_flag=3D1) at eval.c:3092 args_left =3D 12507474 numargs =3D 0 arg_vector =3D 0x7fffffffd530 gcpro1 =3D { next =3D 0x7ffff1e40970,=20 var =3D 0x7ffff7fc14d0,=20 nvars =3D 0 } gcpro2 =3D { next =3D 0x83b,=20 var =3D 0x1000,=20 nvars =3D 8 } gcpro3 =3D { next =3D 0x1,=20 var =3D 0x81a4,=20 nvars =3D 0 } i =3D 0 tem =3D 5 #12 0x00000000005f7dea in Feval (form=3D12978838) at eval.c:2390 fun =3D 9783429 val =3D 140737488345192 original_fun =3D 14516546 original_args =3D 12507474 funcar =3D 140737354130560 backtrace =3D { next =3D 0x0,=20 function =3D 0x7fffffffd6f0,=20 args =3D 0x7fffffffd530,=20 nargs =3D 0,=20 evalargs =3D 0 '\000',=20 debug_on_exit =3D 0 '\000' } gcpro1 =3D { next =3D 0x7ffff7fb6488,=20 var =3D 0x7ffff7fc14d0,=20 nvars =3D -134225624 } gcpro2 =3D { next =3D 0x7fffffffd810,=20 var =3D 0x7ffff1e34c28,=20 nvars =3D -236739152 } gcpro3 =3D { next =3D 0x0,=20 var =3D 0x7fff00000017,=20 nvars =3D 44108294 } #13 0x00000000005599d1 in top_level_2 () at keyboard.c:1347 No locals. #14 0x00000000005f5f8c in internal_condition_case (bfun=3D0x5599be , handlers=3D12559570, hfun=3D0x5595a8 ) at eval.c:1458 val =3D 5609939 c =3D { tag =3D 12507474,=20 val =3D 12507474,=20 next =3D 0x7fffffffd930,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {5, 7988929332933021680, 4279008, 14073748834696= 0, 0, 0, 7988929332880592880, -7988928721167724560},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {4294967295, 140737488345248, 1, 9246952, 0, 0, 0= , 0, 140737351959490, 1, 0, 0, 140737251616176, 12936662, 5, 14073748834566= 4} } }},=20 backlist =3D 0x0,=20 handlerlist =3D 0x0,=20 lisp_eval_depth =3D 0,=20 pdlcount =3D 2,=20 poll_suppress_count =3D 1,=20 interrupt_input_blocked =3D 0,=20 byte_stack =3D 0x0 } h =3D { handler =3D 12559570,=20 var =3D 12507474,=20 chosen_clause =3D 140737488345104,=20 tag =3D 0x7fffffffd7c0,=20 next =3D 0x0 } #15 0x0000000000559a0b in top_level_1 (ignore=3D12507474) at keyboard.c:1355 No locals. #16 0x00000000005f592e in internal_catch (tag=3D12555634, func=3D0x5599d3 <= top_level_1>, arg=3D12507474) at eval.c:1202 c =3D { tag =3D 12555634,=20 val =3D 12507474,=20 next =3D 0x0,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {5, 7988929332987547632, 4279008, 14073748834696= 0, 0, 0, 7988929332960284656, -7988928721370886160},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {6153582, 140737255104152, 4301629832, 0, 1250747= 4, 12779824, 140737488345720, 60129542288, 12535520, 12033184, 6152158, 140= 737488345680, 12507474, 4279008, 140737488346960, 140737488345696} } }},=20 backlist =3D 0x0,=20 handlerlist =3D 0x0,=20 lisp_eval_depth =3D 0,=20 pdlcount =3D 2,=20 poll_suppress_count =3D 1,=20 interrupt_input_blocked =3D 0,=20 byte_stack =3D 0x0 } #17 0x0000000000559939 in command_loop () at keyboard.c:1310 No locals. #18 0x00000000005590df in recursive_edit_1 () at keyboard.c:940 count =3D 1 val =3D 5608104 #19 0x0000000000559292 in Frecursive_edit () at keyboard.c:1002 count =3D 0 buffer =3D 12507474 #20 0x00000000005575cc in main (argc=3D5, argv=3D0x7fffffffdf58) at emacs.c= :1764 dummy =3D 140737251592752 stack_bottom_variable =3D 0 '\000' do_initial_setlocale =3D 1 skip_args =3D 1 rlim =3D { rlim_cur =3D 8720000,=20 rlim_max =3D 18446744073709551615 } no_loadup =3D 0 junk =3D 0x0 dname_arg =3D 0x0 ch_to_dir =3D 0x45
Lisp Backtrace: "apply" (0xffffc670) "eval" (0xffffc888) "command-line-1" (0xffffcd08) "command-line" (0xffffd178) "normal-top-level" (0xffffd530)