From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: bug#6579: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278505956 13940 80.91.229.12 (7 Jul 2010 12:32:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Jul 2010 12:32:36 +0000 (UTC) To: 6579@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 07 14:32:35 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTnl-00041t-RT for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jul 2010 14:32:34 +0200 Original-Received: from localhost ([127.0.0.1]:56461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWTnl-0002UT-56 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jul 2010 08:32:33 -0400 Original-Received: from [140.186.70.92] (port=48643 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWTlC-0001LW-6k for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:29:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWTlA-0004f3-Qb for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:29:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43500) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTlA-0004ez-P9 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:29:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OWTda-0004fR-F9; Wed, 07 Jul 2010 08:22:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127850528417922 (code B ref -1); Wed, 07 Jul 2010 12:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2010 12:21:24 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 07 Jul 2010 08:22:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38286 Archived-At: 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