From unknown Tue Jun 17 21:49:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6579: 23.2; (require 'dbus) without dbus being available makes Emacs unresponsive, maxing out CPU and eating memory Resent-From: David Engster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jul 2010 12:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6579 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6579@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127850528417922 (code B ref -1); Wed, 07 Jul 2010 12:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jul 2010 12:21:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTcy-0004f1-EV for submit@debbugs.gnu.org; Wed, 07 Jul 2010 08:21:24 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTcs-0004ev-Qi for submit@debbugs.gnu.org; Wed, 07 Jul 2010 08:21:22 -0400 Received: from lists.gnu.org ([199.232.76.165]:49635) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OWTcm-0005Un-Bz for submit@debbugs.gnu.org; Wed, 07 Jul 2010 08:21:12 -0400 Received: from [140.186.70.92] (port=42336 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWTcf-0003ee-L7 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:21:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWTcb-0002wV-C0 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:21:03 -0400 Received: from m61s02.vlinux.de ([83.151.21.164]:43996) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTca-0002uh-Tp for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:21:01 -0400 Received: from [134.76.4.238] (helo=myhost) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1OWTcT-00020e-2R for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 14:20:53 +0200 From: David Engster Date: Wed, 07 Jul 2010 14:20:46 +0200 Message-ID: <87r5jffppd.fsf@engster.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) This was observed on GNU/Linux (Archlinux), but I also witnessed this under OS X. * Stop dbus or do not start it in the first place. * emacs -Q * evaluate (require 'dbus) in the scratch buffer Emacs now consumes 100% CPU and is quickly eating memory until there is no more. Pressing C-g (or any other key) doesn't have any effect. Attaching gdb to Emacs in this situation usually shows different backtraces; here is one example: (gdb) bt full #0 0x081c0ef7 in set_internal (symbol=3D23, newval=3D138692810, buf=3D0x0, # bindflag=3D1) at data.c:1180 voide =3D 0 valcontents =3D 138692810 innercontents =3D -1074816364 tem1 =3D -1074816364 current_alist_element =3D 0 #1 0x081d801a in unbind_to (count=3D2, value=3D138692810) at eval.c:3409 this_binding =3D { symbol =3D 138811818,=20 old_value =3D 138692810,=20 func =3D 0,=20 unused =3D 0 } quitf =3D 138692810 gcpro1 =3D { next =3D 0x85bf188,=20 var =3D 0x14c7ebde,=20 nvars =3D 140243341 } gcpro2 =3D { next =3D 0x81d7e0b,=20 var =3D 0x8468c12,=20 nvars =3D 138692858 } #2 0x082384f7 in update_compositions (from=3D37, to=3D38, check_mask=3D3) = at composite.c:605 count =3D 2 prop =3D 0 start =3D 38 end =3D 38 min_pos =3D 37 max_pos =3D 38 #3 0x08181024 in insert (string=3D0xbfef9337 "o\001", nbytes=3D1) at insdel.c:727 len =3D 1 opoint =3D 37 #4 0x0818118f in insert_char (c=3D111) at insdel.c:762 str =3D "o\001\000\000" len =3D 1 #5 0x081f0b26 in printchar (ch=3D111, fun=3D138692858) at print.c:337 multibyte_p =3D 1 str =3D "o\000\000\000" len =3D 1 #6 0x081f5ae7 in print_object (obj=3D348447145, printcharfun=3D138692858, escapeflag=3D1) at print.c:1720 len =3D 2 c =3D 111 i_byte =3D 23 gcpro1 =3D { next =3D 0x84448ca,=20 var =3D 0x14c7ed16,=20 nvars =3D 138839264 } str =3D 0x14c778cc "Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused" need_nonhex =3D 0 multibyte =3D 0 size_byte =3D 79 buf =3D "`\225\357\277K\177F\bh\225\357\277\354\r\034\bK\177F\b{`,\t\372HD\= b\000\000\000\000\000\000\000\000=C8=ADD\b" #7 0x081f49ba in print (obj=3D348447129, printcharfun=3D138692858, escapeflag=3D1) at print.c:1304 No locals. #8 0x081f2d52 in Fprin1 (object=3D348447129, printcharfun=3D138692858) at # print.c:750 old =3D 0x844adc8 old_point =3D -1 start_point =3D -1 old_point_byte =3D -1 start_point_byte =3D -1 specpdl_count =3D 2 free_print_buffer =3D 0 multibyte =3D 1 original =3D 138692858 #9 0x081f44b8 in print_error_message (data=3D348647862, stream=3D138692858, context=3D0xbfef9726 "", caller=3D138692810) at print.c:1105 obj =3D 348447129 errname =3D 138895850 errmsg =3D 136789105 file_error =3D 138692810 tail =3D 348647846 gcpro1 =3D { next =3D 0x0,=20 var =3D 0xb6a08847,=20 nvars =3D 1 } i =3D 0 #10 0x08156045 in cmd_error_internal (data=3D348647862, context=3D0xbfef972= 6 "") at keyboard.c:1305 sf =3D 0x9168410 ---Type to continue, or q to quit--- #11 0x08155e99 in cmd_error (data=3D348647862) at keyboard.c:1234 old_level =3D 138692810 old_length =3D 138692810 macroerror =3D "\000\000)\000\000\000\275\031+\b", '\000' "\312, HD\b\344\234=EF=BF=94\232\357\277\002\000\000\000Pa\025\b\000\000\0= 00\000\000\000\000" #12 0x081d4f19 in internal_condition_case (bfun=3D0x81563d1 , handlers=3D138730794, hfun=3D0x8155dab ) at eval.c:1480 val =3D 138939926 c =3D { tag =3D 138692810,=20 val =3D 348647862,=20 next =3D 0xbfef98a8,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {0, -1074815772, -1074816364, -1074816920, 1352025123, -1255756980},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {3220150368, 3220150304, 0, 3077898242, 307804389= 6, 134547426, 3065788424, 3078041532, 3063912900, 36, 3220150056, 3077961474, 100, 3065237492, 3064330609, 3065244704, 3220149964, 36, 3065237492, 138616160,=20 138616288, 3063930392, 3065788424, 135734916, 4294967295, 3078041532, 134547426, 1, 3220150384, 3077978728, 3078044336, 3060471368} } }},=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 138730794,=20 var =3D 138692810,=20 chosen_clause =3D 138692858,=20 tag =3D 0xbfef9794,=20 next =3D 0x0 } #13 0x08156127 in command_loop_2 () at keyboard.c:1360 val =3D 0 #14 0x081d4a4e in internal_catch (tag=3D138727866, func=3D0x8156102 , arg=3D138692810) at eval.c:1226 c =3D { tag =3D 138727866,=20 val =3D 138692810,=20 next =3D 0x0,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {-1074815632, -1074815772, -1074816364, -1074816648, 1351189539, -1255351476},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {0 , 3064348398, 0, 0, 0, 138858107, 3220150648, 136057552, 138860226, 138858107, 138692810, 138718664, 140838948, 136705628, 14, 22, 192} } }},=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 } #15 0x081560e0 in command_loop () at keyboard.c:1339 No locals. #16 0x081559ca in recursive_edit_1 () at keyboard.c:954 count =3D 1 val =3D -1074816504 #17 0x08155b35 in Frecursive_edit () at keyboard.c:1016 count =3D 0 buffer =3D 138692810 #18 0x0815431b in main (argc=3D2, argv=3D0xbfef9e14) at emacs.c:1833 dummy =3D 0 stack_bottom_variable =3D 0 '\000' do_initial_setlocale =3D 1 skip_args =3D 0 rlim =3D { rlim_cur =3D 8388608,=20 rlim_max =3D 18446744073709551615 } no_loadup =3D 0 junk =3D 0x0 dname_arg =3D 0x0 ---------------------- Configuration: In GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-05-08 on pidsley.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.10801902 configured using `configure '--prefix=3D/usr' '--sysconfdir=3D/etc' '--lib= execdir=3D/usr/lib' '--localstatedir=3D/var' '--mandir=3D/usr/share/man' '-= -without-sound' '-with-x-toolkit=3Dgtk' 'CFLAGS=3D-march=3Di686 -mtune=3Dge= neric -O2 -pipe -fno-optimize-sibling-calls' 'LDFLAGS=3D-Wl,--hash-style=3D= gnu -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t From unknown Tue Jun 17 21:49:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6579: 23.2; (require 'dbus) without dbus being available makes Emacs unresponsive, maxing out CPU and eating memory Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jul 2010 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6579 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: David Engster Cc: 6579@debbugs.gnu.org Received: via spool by 6579-submit@debbugs.gnu.org id=B6579.12786065193434 (code B ref 6579); Thu, 08 Jul 2010 16:29:02 +0000 Received: (at 6579) by debbugs.gnu.org; 8 Jul 2010 16:28:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWtxm-0000tL-JO for submit@debbugs.gnu.org; Thu, 08 Jul 2010 12:28:38 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OWtxk-0000tE-RU for 6579@debbugs.gnu.org; Thu, 08 Jul 2010 12:28:37 -0400 Received: (qmail invoked by alias); 08 Jul 2010 16:28:30 -0000 Received: from p4FC198A9.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.152.169] by mail.gmx.net (mp068) with SMTP; 08 Jul 2010 18:28:30 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+1d9go5Za1jw+nzcZKY537krkWjrwsNAwIApKYyO Ghdlj1n8m8cN0c From: Michael Albinus References: <87r5jffppd.fsf@engster.org> Date: Thu, 08 Jul 2010 18:28:28 +0200 In-Reply-To: <87r5jffppd.fsf@engster.org> (David Engster's message of "Wed, 07 Jul 2010 14:20:46 +0200") Message-ID: <87iq4qkker.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) David Engster writes: > This was observed on GNU/Linux (Archlinux), but I also witnessed this > under OS X. > > * Stop dbus or do not start it in the first place. > > * emacs -Q > > * evaluate (require 'dbus) in the scratch buffer > > Emacs now consumes 100% CPU and is quickly eating memory until there is > no more. Pressing C-g (or any other key) doesn't have any effect. Reproduced. I'll work on this next days. Best regards, Michael. From unknown Tue Jun 17 21:49:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6579: 23.2; (require 'dbus) without dbus being available makes Emacs unresponsive, maxing out CPU and eating memory Resent-From: David Engster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jul 2010 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6579 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 6579@debbugs.gnu.org Received: via spool by 6579-submit@debbugs.gnu.org id=B6579.12786747315066 (code B ref 6579); Fri, 09 Jul 2010 11:26:02 +0000 Received: (at 6579) by debbugs.gnu.org; 9 Jul 2010 11:25:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXBhy-0001Jf-Oa for submit@debbugs.gnu.org; Fri, 09 Jul 2010 07:25:30 -0400 Received: from m61s02.vlinux.de ([83.151.21.164]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXBhx-0001JQ-IL for 6579@debbugs.gnu.org; Fri, 09 Jul 2010 07:25:30 -0400 Received: from [134.76.4.238] (helo=myhost) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1OXBhq-0005mJ-TU; Fri, 09 Jul 2010 13:25:22 +0200 From: David Engster In-Reply-To: <878w5l10ka.fsf@gmx.de> (Michael Albinus's message of "Fri, 09 Jul 2010 11:12:05 +0200") References: <87r5jffppd.fsf@engster.org> <878w5l10ka.fsf@gmx.de> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Date: Fri, 09 Jul 2010 13:25:16 +0200 Message-ID: <87iq4o28yr.fsf@engster.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) Michael Albinus writes: > David Engster writes: > >> * Stop dbus or do not start it in the first place. >> >> * emacs -Q >> >> * evaluate (require 'dbus) in the scratch buffer >> >> Emacs now consumes 100% CPU and is quickly eating memory until there is >> no more. Pressing C-g (or any other key) doesn't have any effect. > > I've fixed it in the trunk. Works for me. Thank you! Maybe it would make sense to issue a warning when dbus is not available? -David From unknown Tue Jun 17 21:49:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: David Engster Subject: bug#6579: closed (Re: bug#6579: 23.2; (require 'dbus) without dbus being available makes Emacs unresponsive, maxing out CPU and eating memory) Message-ID: References: <877hl4rgbb.fsf@gmx.de> <87r5jffppd.fsf@engster.org> X-Gnu-PR-Message: they-closed 6579 X-Gnu-PR-Package: emacs Reply-To: 6579@debbugs.gnu.org Date: Fri, 09 Jul 2010 12:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1278678482-11557-1" This is a multi-part message in MIME format... ------------=_1278678482-11557-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6579: 23.2; (require 'dbus) without dbus being available makes Emacs unres= ponsive, maxing out CPU and eating memory which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6579@debbugs.gnu.org. --=20 6579: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6579 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1278678482-11557-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6579-done) by debbugs.gnu.org; 9 Jul 2010 12:27:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXCfz-00030E-Az for submit@debbugs.gnu.org; Fri, 09 Jul 2010 08:27:31 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OXCfx-000308-AL for 6579-done@debbugs.gnu.org; Fri, 09 Jul 2010 08:27:30 -0400 Received: (qmail invoked by alias); 09 Jul 2010 12:27:22 -0000 Received: from p4FC18F73.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.143.115] by mail.gmx.net (mp023) with SMTP; 09 Jul 2010 14:27:22 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/hQax4EVHhkf5HrapE7hu2kDVRf7oCM6O57QPjtZ UIEcs2LC6bmA+1 From: Michael Albinus To: David Engster Subject: Re: bug#6579: 23.2; (require 'dbus) without dbus being available makes Emacs unresponsive, maxing out CPU and eating memory References: <87r5jffppd.fsf@engster.org> <878w5l10ka.fsf@gmx.de> <87iq4o28yr.fsf@engster.org> Date: Fri, 09 Jul 2010 14:27:20 +0200 Message-ID: <877hl4rgbb.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6579-done Cc: 6579-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) David Engster writes: >> I've fixed it in the trunk. > > Works for me. Thank you! Thanks for the test, I'll close the bug. > Maybe it would make sense to issue a warning when dbus is not available? Not when the session bus is unavailable; this is a common use case. Maybe a chaeck for the unavailability of the system bus. OTHOH, I don't know whether there are collateral damages then. You can check the availability yourself: (dbus-ignore-errors (dbus-get-unique-name :system)) (dbus-ignore-errors (dbus-get-unique-name :session)) Both forms return nil, when the respective bus is not available. > -David Best regards, Michael. ------------=_1278678482-11557-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Jul 2010 12:21:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTcy-0004f1-EV for submit@debbugs.gnu.org; Wed, 07 Jul 2010 08:21:24 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTcs-0004ev-Qi for submit@debbugs.gnu.org; Wed, 07 Jul 2010 08:21:22 -0400 Received: from lists.gnu.org ([199.232.76.165]:49635) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OWTcm-0005Un-Bz for submit@debbugs.gnu.org; Wed, 07 Jul 2010 08:21:12 -0400 Received: from [140.186.70.92] (port=42336 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWTcf-0003ee-L7 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:21:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWTcb-0002wV-C0 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:21:03 -0400 Received: from m61s02.vlinux.de ([83.151.21.164]:43996) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTca-0002uh-Tp for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:21:01 -0400 Received: from [134.76.4.238] (helo=myhost) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1OWTcT-00020e-2R for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 14:20:53 +0200 From: David Engster To: bug-gnu-emacs@gnu.org Subject: 23.2; (require 'dbus) without dbus being available makes Emacs unresponsive, maxing out CPU and eating memory Date: Wed, 07 Jul 2010 14:20:46 +0200 Message-ID: <87r5jffppd.fsf@engster.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) This was observed on GNU/Linux (Archlinux), but I also witnessed this under OS X. * Stop dbus or do not start it in the first place. * emacs -Q * evaluate (require 'dbus) in the scratch buffer Emacs now consumes 100% CPU and is quickly eating memory until there is no more. Pressing C-g (or any other key) doesn't have any effect. Attaching gdb to Emacs in this situation usually shows different backtraces; here is one example: (gdb) bt full #0 0x081c0ef7 in set_internal (symbol=3D23, newval=3D138692810, buf=3D0x0, # bindflag=3D1) at data.c:1180 voide =3D 0 valcontents =3D 138692810 innercontents =3D -1074816364 tem1 =3D -1074816364 current_alist_element =3D 0 #1 0x081d801a in unbind_to (count=3D2, value=3D138692810) at eval.c:3409 this_binding =3D { symbol =3D 138811818,=20 old_value =3D 138692810,=20 func =3D 0,=20 unused =3D 0 } quitf =3D 138692810 gcpro1 =3D { next =3D 0x85bf188,=20 var =3D 0x14c7ebde,=20 nvars =3D 140243341 } gcpro2 =3D { next =3D 0x81d7e0b,=20 var =3D 0x8468c12,=20 nvars =3D 138692858 } #2 0x082384f7 in update_compositions (from=3D37, to=3D38, check_mask=3D3) = at composite.c:605 count =3D 2 prop =3D 0 start =3D 38 end =3D 38 min_pos =3D 37 max_pos =3D 38 #3 0x08181024 in insert (string=3D0xbfef9337 "o\001", nbytes=3D1) at insdel.c:727 len =3D 1 opoint =3D 37 #4 0x0818118f in insert_char (c=3D111) at insdel.c:762 str =3D "o\001\000\000" len =3D 1 #5 0x081f0b26 in printchar (ch=3D111, fun=3D138692858) at print.c:337 multibyte_p =3D 1 str =3D "o\000\000\000" len =3D 1 #6 0x081f5ae7 in print_object (obj=3D348447145, printcharfun=3D138692858, escapeflag=3D1) at print.c:1720 len =3D 2 c =3D 111 i_byte =3D 23 gcpro1 =3D { next =3D 0x84448ca,=20 var =3D 0x14c7ed16,=20 nvars =3D 138839264 } str =3D 0x14c778cc "Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused" need_nonhex =3D 0 multibyte =3D 0 size_byte =3D 79 buf =3D "`\225\357\277K\177F\bh\225\357\277\354\r\034\bK\177F\b{`,\t\372HD\= b\000\000\000\000\000\000\000\000=C8=ADD\b" #7 0x081f49ba in print (obj=3D348447129, printcharfun=3D138692858, escapeflag=3D1) at print.c:1304 No locals. #8 0x081f2d52 in Fprin1 (object=3D348447129, printcharfun=3D138692858) at # print.c:750 old =3D 0x844adc8 old_point =3D -1 start_point =3D -1 old_point_byte =3D -1 start_point_byte =3D -1 specpdl_count =3D 2 free_print_buffer =3D 0 multibyte =3D 1 original =3D 138692858 #9 0x081f44b8 in print_error_message (data=3D348647862, stream=3D138692858, context=3D0xbfef9726 "", caller=3D138692810) at print.c:1105 obj =3D 348447129 errname =3D 138895850 errmsg =3D 136789105 file_error =3D 138692810 tail =3D 348647846 gcpro1 =3D { next =3D 0x0,=20 var =3D 0xb6a08847,=20 nvars =3D 1 } i =3D 0 #10 0x08156045 in cmd_error_internal (data=3D348647862, context=3D0xbfef972= 6 "") at keyboard.c:1305 sf =3D 0x9168410 ---Type to continue, or q to quit--- #11 0x08155e99 in cmd_error (data=3D348647862) at keyboard.c:1234 old_level =3D 138692810 old_length =3D 138692810 macroerror =3D "\000\000)\000\000\000\275\031+\b", '\000' "\312, HD\b\344\234=EF=BF=94\232\357\277\002\000\000\000Pa\025\b\000\000\0= 00\000\000\000\000" #12 0x081d4f19 in internal_condition_case (bfun=3D0x81563d1 , handlers=3D138730794, hfun=3D0x8155dab ) at eval.c:1480 val =3D 138939926 c =3D { tag =3D 138692810,=20 val =3D 348647862,=20 next =3D 0xbfef98a8,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {0, -1074815772, -1074816364, -1074816920, 1352025123, -1255756980},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {3220150368, 3220150304, 0, 3077898242, 307804389= 6, 134547426, 3065788424, 3078041532, 3063912900, 36, 3220150056, 3077961474, 100, 3065237492, 3064330609, 3065244704, 3220149964, 36, 3065237492, 138616160,=20 138616288, 3063930392, 3065788424, 135734916, 4294967295, 3078041532, 134547426, 1, 3220150384, 3077978728, 3078044336, 3060471368} } }},=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 138730794,=20 var =3D 138692810,=20 chosen_clause =3D 138692858,=20 tag =3D 0xbfef9794,=20 next =3D 0x0 } #13 0x08156127 in command_loop_2 () at keyboard.c:1360 val =3D 0 #14 0x081d4a4e in internal_catch (tag=3D138727866, func=3D0x8156102 , arg=3D138692810) at eval.c:1226 c =3D { tag =3D 138727866,=20 val =3D 138692810,=20 next =3D 0x0,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {-1074815632, -1074815772, -1074816364, -1074816648, 1351189539, -1255351476},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {0 , 3064348398, 0, 0, 0, 138858107, 3220150648, 136057552, 138860226, 138858107, 138692810, 138718664, 140838948, 136705628, 14, 22, 192} } }},=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 } #15 0x081560e0 in command_loop () at keyboard.c:1339 No locals. #16 0x081559ca in recursive_edit_1 () at keyboard.c:954 count =3D 1 val =3D -1074816504 #17 0x08155b35 in Frecursive_edit () at keyboard.c:1016 count =3D 0 buffer =3D 138692810 #18 0x0815431b in main (argc=3D2, argv=3D0xbfef9e14) at emacs.c:1833 dummy =3D 0 stack_bottom_variable =3D 0 '\000' do_initial_setlocale =3D 1 skip_args =3D 0 rlim =3D { rlim_cur =3D 8388608,=20 rlim_max =3D 18446744073709551615 } no_loadup =3D 0 junk =3D 0x0 dname_arg =3D 0x0 ---------------------- Configuration: In GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-05-08 on pidsley.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.10801902 configured using `configure '--prefix=3D/usr' '--sysconfdir=3D/etc' '--lib= execdir=3D/usr/lib' '--localstatedir=3D/var' '--mandir=3D/usr/share/man' '-= -without-sound' '-with-x-toolkit=3Dgtk' 'CFLAGS=3D-march=3Di686 -mtune=3Dge= neric -O2 -pipe -fno-optimize-sibling-calls' 'LDFLAGS=3D-Wl,--hash-style=3D= gnu -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t ------------=_1278678482-11557-1-- From unknown Tue Jun 17 21:49:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6579: 23.2; (require 'dbus) without dbus being available makes Emacs unresponsive, maxing out CPU and eating memory In-Reply-To: <87r5jffppd.fsf@engster.org> Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jul 2010 16:03:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6579 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: David Engster Cc: 6579@debbugs.gnu.org Received: via spool by 6579-submit@debbugs.gnu.org id=B6579.127869135019786 (code B ref 6579); Fri, 09 Jul 2010 16:03:04 +0000 Received: (at 6579) by debbugs.gnu.org; 9 Jul 2010 16:02:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXG21-000593-Eu for submit@debbugs.gnu.org; Fri, 09 Jul 2010 12:02:30 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OX9cz-0008J1-8w for 6579@debbugs.gnu.org; Fri, 09 Jul 2010 05:12:14 -0400 Received: (qmail invoked by alias); 09 Jul 2010 09:12:08 -0000 Received: from p4FC18F73.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.143.115] by mail.gmx.net (mp057) with SMTP; 09 Jul 2010 11:12:08 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19syJo3535sGM6xEEQbhRuT9rrsCpjR0P1N8CmpUg V9DnUU85pgEl6c From: Michael Albinus References: <87r5jffppd.fsf@engster.org> Date: Fri, 09 Jul 2010 11:12:05 +0200 Message-ID: <878w5l10ka.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.6 (--) X-Mailman-Approved-At: Fri, 09 Jul 2010 12:02:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) David Engster writes: > * Stop dbus or do not start it in the first place. > > * emacs -Q > > * evaluate (require 'dbus) in the scratch buffer > > Emacs now consumes 100% CPU and is quickly eating memory until there is > no more. Pressing C-g (or any other key) doesn't have any effect. I've fixed it in the trunk. Best regards, Michael.