From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id E9A8A7904E for ; Thu, 1 Oct 2015 16:22:19 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id AB93F401385; Thu, 1 Oct 2015 16:25:45 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id t91NPjmX006033; Thu, 1 Oct 2015 16:25:45 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id t91NPixE006026; Thu, 1 Oct 2015 16:25:44 -0700 Date: Thu, 1 Oct 2015 16:25:44 -0700 (PDT) From: Kevin Carhart To: Karl Dahlke cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20150830062758.eklhad@comcast.net> Message-ID: References: <20150829133224.eklhad@comcast.net> <20150830062758.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Edbrowse-dev] Stack smashing detected in jsrt X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2015 23:22:20 -0000 Here is some more on jsrt crashing on Ubuntu. I can even make this happen on a tiny, 6-line file, which is rather strange. I kept taking things away and got it down to this.
OR
Regardless of whether or not there is a formUnload routine to go to. Backtrace is included below. In htmlParse, it is calling runOnload The crash happens in runOnload. I wasn't able to add any printf's to runOnload. I think it's happening immediately upon entry into runOnload. thanks Kevin xxxxxx (gdb) bt #0 0x00007fd8bd133f77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007fd8bd1375e8 in __GI_abort () at abort.c:90 #2 0x00007fd8bd1714fb in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7fd8bd282f10 "*** %s ***: %s terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:199 #3 0x00007fd8bd20f08c in __GI___fortify_fail (msg=, msg@entry=0x7fd8bd282ef8 "stack smashing detected") at fortify_fail.c:37 #4 0x00007fd8bd20f030 in __stack_chk_fail () at stack_chk_fail.c:28 #5 0x000000000042dc69 in runOnload () at html.c:2008 #6 0x000000000042a805 in htmlParse (buf=0x243cb20 "", remote=0) at html.c:711 #7 0x00000000004152a8 in browseCurrentBuffer () at buffers.c:5328 #8 0x000000000041459a in runCommand (line=0x68e520 "jsrt_crash") at buffers.c:4992 #9 0x0000000000414cee in edbrowseCommand ( line=0x68c6a0 "b jsrt_crash", script=0 '\000') at buffers.c:5164 #10 0x0000000000406988 in main (argc=0, argv=0x7ffe2a9f2f10) at main.c:1364