From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#14569: 24.3.50; bootstrap fails on Cygwin Date: Tue, 11 Jun 2013 17:39:00 +0200 Message-ID: <06F80BBC-D7CD-4E6C-97AD-EB8E476E2FC0@swipnet.se> References: <51B5DA82.4010703@alice.it> <3EC77598-24B8-42DD-8983-5069E64AAB60@swipnet.se> <51B62175.10307@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370965203 24000 80.91.229.3 (11 Jun 2013 15:40:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2013 15:40:03 +0000 (UTC) Cc: eggert@cs.ucla.edu, 14569@debbugs.gnu.org To: Angelo Graziosi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 17:40:02 2013 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 1UmQfy-00019d-Fb for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 17:40:02 +0200 Original-Received: from localhost ([::1]:41041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQfy-0005Cc-4x for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 11:40:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQfo-0005CA-1o for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:39:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmQfj-0006JX-17 for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:39:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQfi-0006J5-PW for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:39:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UmQfx-0000Z9-MR for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jun 2013 15:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14569 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-emacs , eggert@cs.ucla.edu Original-Received: via spool by submit@debbugs.gnu.org id=B.13709651732117 (code B ref -1); Tue, 11 Jun 2013 15:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jun 2013 15:39:33 +0000 Original-Received: from localhost ([127.0.0.1]:56610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UmQfU-0000Y4-Le for submit@debbugs.gnu.org; Tue, 11 Jun 2013 11:39:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59446) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UmQfS-0000Xo-JA for submit@debbugs.gnu.org; Tue, 11 Jun 2013 11:39:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmQf6-00069R-MW for submit@debbugs.gnu.org; Tue, 11 Jun 2013 11:39:09 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQf6-00069N-KW for submit@debbugs.gnu.org; Tue, 11 Jun 2013 11:39:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQf5-0004Zc-2d for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmQf3-00068c-Co for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:39:06 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:60266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQf3-00066S-2G for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:39:05 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 9369A95E4 for ; Tue, 11 Jun 2013 17:38:59 +0200 (CEST) Original-Received: (qmail 29083 invoked by uid 89); 11 Jun 2013 15:38:59 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 11 Jun 2013 15:38:59 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id EF9141A00FA; Tue, 11 Jun 2013 15:38:58 +0000 (UTC) In-Reply-To: <51B62175.10307@alice.it> X-Mailer: Apple Mail (2.1508) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74969 Archived-At: Hello. 10 jun 2013 kl. 20:56 skrev Angelo Graziosi : > Il 10/06/2013 18.27, Jan Dj=E4rv ha scritto: >> Hello. >>=20 >> This sounds like a bug in GLib. Put a breakpoint at g_thread_abort = to get a useful backtrace. >=20 > I am afraid but GDB is not for me... :( The error is not even consistent, it only occurs sometimes. There seems = to be a random memory corruption going on. Sometimes bootstrap fails = with a core dump, sometimes with GLib (gthread-posix.c): Unexpected error from C library during = 'pthread_setspecific': Invalid argument. Aborting. And this is while compiling .el-files. It is not crashing in the same = .el-file, many files compile just fine before the crash happens (if it = happens). Redoing the make after a crash usually produces an Emacs = executable. It seems to run fine, but I haven't run it for a very long = time. Maybe the bug manifests itself only in bootstrap-emacs when using = GLib? I got one backtrace for the setspecific error: Breakpoint 1, 0x610dcd26 in abort () from /usr/bin/cygwin1.dll (gdb) bt #0 0x610dcd26 in abort () from /usr/bin/cygwin1.dll #1 0x6a90d066 in g_spawn_close_pid () from /usr/bin/cygglib-2.0-0.dll #2 0x6a908e8c in g_private_set () from /usr/bin/cygglib-2.0-0.dll #3 0x6a8f06ce in g_thread_self () from /usr/bin/cygglib-2.0-0.dll #4 0x6a8ce250 in g_main_context_iteration () from = /usr/bin/cygglib-2.0-0.dll #5 0x6a8ce2aa in g_main_context_iteration () from = /usr/bin/cygglib-2.0-0.dll #6 0x6a8f017d in g_thread_proxy () from /usr/bin/cygglib-2.0-0.dll #7 0x610ffe1a in pthread::thread_init_wrapper(void*) () from /usr/bin/cygwin1.dll #8 0x6108974c in thread_wrapper(void*) () from /usr/bin/cygwin1.dll This is in a separate thread, Emacs is executing in another thread: (gdb) info threads Id Target Id Frame * 3 Thread 1564.0x2d4 0x610dcd26 in abort () from = /usr/bin/cygwin1.dll 2 Thread 1564.0xfd0 0x7c90e514 in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll 1 Thread 1564.0xa8c 0x0054b2d5 in oblookup (obarray=3D, ptr=3D, size=3D10, size_byte=3D) at = lread.c:3905 (gdb) thr 1 [Switching to thread 1 (Thread 1564.0xa8c)] #0 0x0054b2d5 in oblookup (obarray=3D, ptr=3D, size=3D10, size_byte=3D) at lread.c:3905 3905 if (SBYTES (SYMBOL_NAME (tail)) =3D=3D size_byte (gdb) thr 1 [Switching to thread 1 (Thread 1564.0xa8c)] #0 0x0054b2d5 in oblookup (obarray=3D, ptr=3D, size=3D10, size_byte=3D) at lread.c:3905 3905 if (SBYTES (SYMBOL_NAME (tail)) =3D=3D size_byte (gdb) bt #0 0x0054b2d5 in oblookup (obarray=3D, ptr=3D, size=3D10, size_byte=3D) at lread.c:3905 #1 0x0054b678 in intern_c_string_1 ( str=3D0x779503 ":keepalive", len=3D10) at = lread.c:3715 #2 0x0056b76b in intern_c_string ( str=3D0x779503 ":keepalive") at lisp.h:3332 #3 init_process_emacs () at process.c:7144 #4 0x004bf335 in main (argc=3D, argv=3D0x22abc0) at = emacs.c:1464 (gdb) fr3 Undefined command: "fr3". Try "help". (gdb) fr 3 #3 init_process_emacs () at process.c:7144 7144 subfeatures =3D pure_cons (intern_c_string (sopt->name), = subfeatures); As there seems to be no good memory debuggers for Cygwin, this will be = hard to find. I still think it is an GLib/Cygwin error. Jan D.