From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miroslav Lichvar Newsgroups: gmane.lisp.guile.devel Subject: Re: `scm_c_read ()' and `swap_buffer' trick harmful Date: Sat, 20 Dec 2008 00:32:57 +0100 Message-ID: <20081219233256.GA32465@localhost> References: <87vduo92nj.fsf@gnu.org> <49dd78620811200522k315281c8m9d952a17145b2479@mail.gmail.com> <871vx6ik42.fsf@gnu.org> <49dd78620811201425j5dcd7e0g4165c8ea4c6b08ce@mail.gmail.com> <87fxllt3f7.fsf@gnu.org> <49dd78620811231430o5f0d6dc7u16c2fbf29b73c57c@mail.gmail.com> <20081219144446.GC20162@localhost> <87myerdia0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1229729591 2356 80.91.229.12 (19 Dec 2008 23:33:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 23:33:11 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Dec 20 00:34:16 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LDorG-0006sc-Ja for guile-devel@m.gmane.org; Sat, 20 Dec 2008 00:34:14 +0100 Original-Received: from localhost ([127.0.0.1]:33032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDoq4-00075L-5B for guile-devel@m.gmane.org; Fri, 19 Dec 2008 18:33:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDoq0-00073u-TU for guile-devel@gnu.org; Fri, 19 Dec 2008 18:32:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDopz-00073f-9v for guile-devel@gnu.org; Fri, 19 Dec 2008 18:32:55 -0500 Original-Received: from [199.232.76.173] (port=59953 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDopz-00073c-4R for guile-devel@gnu.org; Fri, 19 Dec 2008 18:32:55 -0500 Original-Received: from mx2.redhat.com ([66.187.237.31]:57680) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LDopy-0003Cs-NQ for guile-devel@gnu.org; Fri, 19 Dec 2008 18:32:55 -0500 Original-Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mBJNWrLJ024501 for ; Fri, 19 Dec 2008 18:32:53 -0500 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mBJNWrvg007470 for ; Fri, 19 Dec 2008 18:32:53 -0500 Original-Received: from localhost (dhcp-lab-101.englab.brq.redhat.com [10.34.33.101]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mBJNWpBm010266 for ; Fri, 19 Dec 2008 18:32:52 -0500 Content-Disposition: inline In-Reply-To: <87myerdia0.fsf@gnu.org> User-Agent: Mutt/1.5.18 (2008-11-24) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-MIME-Autoconverted: from 8bit to quoted-printable by mx2.redhat.com id mBJNWrLJ024501 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7937 Archived-At: On Fri, Dec 19, 2008 at 09:25:27PM +0100, Ludovic Court=E8s wrote: > > It seems that the optimizations broke lilypond, it's now failing with > > this message: > > > > ports.c:978: scm_fill_input: Assertion `pt->read_pos =3D=3D pt->read_= end' failed. >=20 > Ouch! >=20 > > A bug report is here: > > https://bugzilla.redhat.com/show_bug.cgi?id=3D477007 >=20 > Can you get a full C backtrace? Here it is, let me know if you need anything else. (gdb) bt #0 0x00007f6b232b6f05 in raise () from /lib64/libc.so.6 #1 0x00007f6b232b8a73 in abort () from /lib64/libc.so.6 #2 0x00007f6b232afef9 in __assert_fail () from /lib64/libc.so.6 #3 0x0000000000d52b92 in scm_fill_input (port=3D0x7f6b1d4b7420) at ports= .c:978 #4 0x0000000000638b66 in internal_ly_parse_scm (ps=3D0x7fff2b827bc0) at = parse-scm.cc:43 #5 0x0000000000638d38 in ly_parse_scm ( s=3D0x1fe907c "(if (and #t (defined? 'set-debug-cell-accesses!))\n (= set-debug-cell-accesses! 5000))\n\n\\version \"2.10.0\"\n\n\\include \"de= clarations-init.ly\"\n\n\n#(ly:set-option 'old-relative #f)\n#(define top= level-scores (l"..., n=3D0x7fff2b827dcc, i=3D {start_ =3D 0x1fe907c "(if (and #t (defined? 'set-debug-cell-access= es!))\n (set-debug-cell-accesses! 5000))\n\n\\version \"2.10.0\"\n\n\\in= clude \"declarations-init.ly\"\n\n\n#(ly:set-option 'old-relative #f)\n#(= define toplevel-scores (l"..., end_ =3D 0x1fe907c "(if (and #t (defined? = 'set-debug-cell-accesses!))\n (set-debug-cell-accesses! 5000))\n\n\\vers= ion \"2.10.0\"\n\n\\include \"declarations-init.ly\"\n\n\n#(ly:set-option= 'old-relative #f)\n#(define toplevel-scores (l"..., source_file_ =3D 0x2= 08cdd0}, safe=3Dfalse, parser=3D0x2083ee0) at parse-scm.cc:131 #6 0x0000000000751c0b in Lily_lexer::yylex (this=3D0x1fc2d40) at lexer.l= l:340 #7 0x000000000075506e in yylex (s=3D0x7fff2b82a4a0, loc=3D0x7fff2b82a480= , v=3D0x2083ee0) at parser.yy:2696 #8 0x000000000075680f in yyparse (my_lily_parser=3D0x2083ee0) at out/par= ser.cc:2612 #9 0x0000000000762d31 in Lily_parser::do_yyparse (this=3D0x2083ee0) at p= arser.yy:2476 #10 0x00000000005a3278 in Lily_parser::parse_file (this=3D0x2083ee0, init= =3D {static npos =3D 18446744073709551615, _M_dataplus =3D {> =3D {<__gnu_cxx::new_allocator> =3D {= }, }, _M_p =3D 0x2000f38 "init.ly"}}, name=3D {static npos =3D 18446744073709551615, _M_dataplus =3D {> =3D {<__gnu_cxx::new_allocator> =3D {= }, }, _M_p =3D 0x2083a18 "/tmp/lilypond-2.11.65/ly/genera= te-documentation.ly"}}, out_name=3D {static npos =3D 18446744073709551615, _M_dataplus =3D {> =3D {<__gnu_cxx::new_allocator> =3D {= }, }, _M_p =3D 0x2040a18 "generate-documentation"}}) at lily-parser.cc:114 #11 0x00000000005a1118 in ly_parse_file (name=3D0x7f6b21d1b260) at lily-p= arser-scheme.cc:124 #12 0x0000000000d1d2b4 in deval (x=3D0x404, env=3D0x7f6b1d4b57b0) at eval= .c:4232 #13 0x0000000000d1f512 in scm_dapply (proc=3D0x7f6b1d4b58c0, arg1=3D0x404= , args=3D0x7f6b1d4b57b0) at eval.c:5012 #14 0x0000000000d13e73 in scm_apply (proc=3D0x7f6b1d4b58a0, arg1=3D0x404,= args=3D0x404) at eval.c:4811 #15 0x0000000000d13bb8 in scm_call_0 (proc=3D0x7f6b1d4b58a0) at eval.c:46= 66 #16 0x0000000000d826b1 in scm_body_thunk (body_data=3D0x7fff2b82d100) at = throw.c:355 #17 0x0000000000d821c9 in scm_c_catch (tag=3D0x7f6b21d66860, body=3D0xd82= 690 ,=20 body_data=3D0x7fff2b82d100, handler=3D0xd826b3 , = handler_data=3D0x7fff2b82d0e8,=20 pre_unwind_handler=3D0, pre_unwind_handler_data=3D0x7fff2b82d0e0) at = throw.c:203 #18 0x0000000000d82b72 in scm_catch_with_pre_unwind_handler (key=3D0x7f6b= 21d66860, thunk=3D0x7f6b1d4b58a0,=20 handler=3D0x7f6b1d4b5830, pre_unwind_handler=3D0x204) at throw.c:587 #19 0x0000000000d3438c in scm_gsubr_apply (args=3D0x404) at gsubr.c:223 #20 0x0000000000d1efcc in scm_dapply (proc=3D0x7f6b21fb84f0, arg1=3D0x7f6= b229ab8e0, args=3D0x7f6b1d4b5800) at eval.c:4930 #21 0x0000000000d1dda2 in deval (x=3D0x7f6b20320f90, env=3D0x7f6b1d4b5950= ) at eval.c:4378 #22 0x0000000000d17c02 in deval (x=3D0x7f6b20324010, env=3D0x7f6b1d4b5a60= ) at eval.c:3397 #23 0x0000000000d1f512 in scm_dapply (proc=3D0x7f6b1d4b3db0, arg1=3D0x404= , args=3D0x7f6b1d4b3d20) at eval.c:5012 #24 0x0000000000d13e73 in scm_apply (proc=3D0x7f6b1d4b3d90, arg1=3D0x7f6b= 21d1b260, args=3D0x7f6b229aa700) at eval.c:4811 #25 0x0000000000d13be2 in scm_call_1 (proc=3D0x7f6b1d4b3d90, arg1=3D0x7f6= b21d1b260) at eval.c:4672 #26 0x00007f6b20ad295b in scm_srfi1_for_each (proc=3D0x7f6b1d4b3d90, arg1= =3D0x7f6b20283060, args=3D0x404) at srfi-1.c:1516 #27 0x0000000000d1dca3 in deval (x=3D0x404, env=3D0x7f6b20282930) at eval= .c:4367 #28 0x0000000000d17c02 in deval (x=3D0x7f6b20323790, env=3D0x7f6b20282930= ) at eval.c:3397 #29 0x0000000000d19c96 in deval (x=3D0x7f6b20282b60, env=3D0x7f6b20282fa0= ) at eval.c:3648 #30 0x0000000000d1f512 in scm_dapply (proc=3D0x7f6b203290f0, arg1=3D0x404= , args=3D0x7f6b20282fa0) at eval.c:5012 #31 0x0000000000d13e73 in scm_apply (proc=3D0x7f6b20328f40, arg1=3D0x7f6b= 20283060, args=3D0x7f6b229aa700) at eval.c:4811 #32 0x0000000000d13be2 in scm_call_1 (proc=3D0x7f6b20328f40, arg1=3D0x7f6= b20283060) at eval.c:4672 #33 0x00000000005bb2a1 in main_with_guile () at main.cc:426 #34 0x0000000000d38aee in invoke_main_func (body_data=3D0x7fff2b830890) a= t init.c:367 #35 0x0000000000cfc9ea in c_body (d=3D0x7fff2b8307d0) at continuations.c:= 349 #36 0x0000000000d821c9 in scm_c_catch (tag=3D0x104, body=3D0xcfc9c5 , body_data=3D0x7fff2b8307d0,=20 handler=3D0xcfc9fc , handler_data=3D0x7fff2b8307d0,=20 pre_unwind_handler=3D0xd82a02 , pre_unw= ind_handler_data=3D0x0) at throw.c:203 #37 0x0000000000cfc98e in scm_i_with_continuation_barrier (body=3D0xcfc9c= 5 ,=20 body_data=3D0x7fff2b8307d0, handler=3D0xcfc9fc , handler_d= ata=3D0x7fff2b8307d0,=20 pre_unwind_handler=3D0xd82a02 , pre_unw= ind_handler_data=3D0x0) at continuations.c:325 #38 0x0000000000cfca72 in scm_c_with_continuation_barrier (func=3D0xd38aa= 1 ,=20 data=3D0x7fff2b830890) at continuations.c:367 #39 0x0000000000d8035d in scm_i_with_guile_and_parent (func=3D0xd38aa1 ,=20 data=3D0x7fff2b830890, parent=3D0x0) at threads.c:726 #40 0x0000000000d8032a in scm_with_guile (func=3D0xd38aa1 , data=3D0x7fff2b830890) at threads.c:714 #41 0x0000000000d38a82 in scm_boot_guile (argc=3D3, argv=3D0x7fff2b830a08= ,=20 main_func=3D0x5bad7a , closure=3D0x0) at init.c:350 #42 0x00000000005bad6c in main (argc=3D3, argv=3D0x7fff2b830a08, envp=3D0= x7fff2b830a28) at main.cc:622 --=20 Miroslav Lichvar