From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc =?UTF-8?Q?D=C3=BCrner?= Newsgroups: gmane.emacs.bugs Subject: bug#4582: crash during buffer scrolling - trace available Date: Mon, 28 Sep 2009 18:45:22 +0200 Message-ID: <52a7da0f0909280945ha411a12xe4cc83c7c3306c83@mail.gmail.com> References: <52a7da0f0909240359i684b5fa6i21425db4f4448f14@mail.gmail.com> Reply-To: Marc =?UTF-8?Q?D=C3=BCrner?= , 4582@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00032555a1961d20e80474a60665 X-Trace: ger.gmane.org 1254166234 25724 80.91.229.12 (28 Sep 2009 19:30:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2009 19:30:34 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 28 21:30:27 2009 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.50) id 1MsLvS-0004p4-9n for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2009 21:30:24 +0200 Original-Received: from localhost ([127.0.0.1]:44874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsLvR-000887-M8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2009 15:30:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsJgz-0001nT-0E for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 13:07:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsJgt-0001mr-PE for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 13:07:16 -0400 Original-Received: from [199.232.76.173] (port=35871 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsJgt-0001mo-DS for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 13:07:11 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45253) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsJgs-0007fh-Iu for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 13:07:11 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8SH770O003463; Mon, 28 Sep 2009 10:07:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8SGo3TY032494; Mon, 28 Sep 2009 09:50:03 -0700 Resent-Date: Mon, 28 Sep 2009 09:50:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Marc =?UTF-8?Q?D=C3=BCrner?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 28 Sep 2009 16:50:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4582 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125415633332105 (code B ref -1); Mon, 28 Sep 2009 16:50:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 28 Sep 2009 16:45:33 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8SGjUBU032098 for ; Mon, 28 Sep 2009 09:45:32 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsJLu-00012n-Ad for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 12:45:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsJLp-00010n-9t for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 12:45:29 -0400 Original-Received: from [199.232.76.173] (port=43380 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsJLp-00010i-3G for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 12:45:25 -0400 Original-Received: from mail-bw0-f220.google.com ([209.85.218.220]:39759) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsJLn-0002hQ-RU for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2009 12:45:24 -0400 Original-Received: by bwz20 with SMTP id 20so3782740bwz.42 for ; Mon, 28 Sep 2009 09:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=KlEwpfm6RCQAQ4xBgB9H/hTO5kgWOnD/h2p+cICtmYo=; b=nzS/PYoq2JmCothflQEoc+GQboGErluM+IlHufBCz0P8DGMJFGY6YLxIfzlSTLSs9S v90RZ+07r+p18Kc3qRXVmos/homJBRk0o2nEAkkAQ9FGUiNmbVyl+UPnl91tsNTBrvOq 6u3DcDOvvhuIKqub4fP/aFdHuqrGQ1bo2Mcfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hSx16Q8BEyGDaYeXIbENO5C7BUal+aCkjBodccttPNqytYz2GDKr4pT5IhX91+uJg8 QK3KPXDn10KeZGI6ACCWH0z/8+0Gt1n+qZP/f+v9iS7fdKaddxhEVs1NR2TsMZjKMeSH ZpV1J9kj6NsLKRv98hTyS51k67IrJ51j4lPrs= Original-Received: by 10.204.34.9 with SMTP id j9mr3206188bkd.10.1254156322807; Mon, 28 Sep 2009 09:45:22 -0700 (PDT) In-Reply-To: <52a7da0f0909240359i684b5fa6i21425db4f4448f14@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 28 Sep 2009 13:07:16 -0400 X-Mailman-Approved-At: Mon, 28 Sep 2009 15:29:56 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:31567 Archived-At: --00032555a1961d20e80474a60665 Content-Type: text/plain; charset=ISO-8859-1 Hello, I have built emacs 23.1 for AIX/PowerPC using the xlc compiler (config.log is available) using the lucid toolkit. Emacs crashes sometimes when I try to scroll in a buffer or modify the buffer. The crash occurs about one or two times per week. I have included a trace from dbx inspecting the core file. It seems to have to do with garbage collection or memory management. My guess is that garbage collection is performed during buffer scrolling. The binary was built with -g and -O2 using xlc_r. I have tried for a week to reproduce a crash with an unoptimized build, but was not successful, so the trace below is the best I can provide for now. When I compiled emacs I get warnings about alloca. I also tried to build emacs with gcc, but it crashes in the same way. The following crash happens sometimes when I try to scroll in a buffer: IOT/Abort trap in fatal_error_signal at line 403 in file "" couldn't read "emacs.c" (dbx) where fatal_error_signal(sig = 538249088), line 403 in "emacs.c" emacs.abort(), line 432 in "emacs.c" Fsignal(error_symbol = 550856640, data = 538298528), line 1652 in "eval.c" xsignal(error_symbol = 270962724, data = 20439), line 1751 in "eval.c" xsignal1(error_symbol = 538291456, arg = 538293456), line 1768 in "eval.c" compile_pattern_1(cp = 0x2ff20ab0, pattern = 20439, translate = 549181824, regp = 0x00000004, posix = 540852040), line 179 in "search.c" compile_pattern(pattern = 269324080, regp = (nil), translate = 804386800, posix = 543383040, multibyte = 269324080), line 266 in "search.c" fast_string_match(regexp = 538291456, string = 538293456), line 507 in "search.c" Ffind_file_name_handler(filename = 538291456, operation = 538293456), line 382 in "fileio.c" Fexpand_file_name(name = 1623917056, default_directory = -1606969344), line 862 in "fileio.c" Fdo_auto_save(no_message = 0, current_only = -2133330944), line 5235 in "fileio.c" shut_down_emacs(sig = 538291456, no_x = 538293456, stuff = 540398608), line 2216 in "emacs.c" fatal_error_signal(sig = 0), line 389 in "emacs.c" mark_object(arg = 538291456), line 5650 in "alloc.c" traverse_intervals_noorder(tree = (nil), function = 0x40000000, arg = 804388752), line 216 in "intervals.c" traverse_intervals_noorder(tree = 0x20150780, function = 0x20150764, arg = 1073758208), line 221 in "intervals.c" mark_interval_tree(tree = 0x2015ad00), line 1524 in "alloc.c" mark_object(arg = 540115424), line 5554 in "alloc.c" mark_object(arg = 0), line 5549 in "alloc.c" unnamed block in Fgarbage_collect(), line 5109 in "alloc.c" Fgarbage_collect(), line 5109 in "alloc.c" Fbyte_code(bytestr = 9, vector = 540514352, maxdepth = 1127219200), line 527 in "bytecode.c" funcall_lambda(fun = 537672800, nargs = -2146681760, arg_vector = 0x2ff203c0), line 3232 in "eval.c" apply_lambda(fun = -2146761924, args = 540514304, eval_flag = 1), line 3156 in "eval.c" Feval(form = -1602180136), line 2418 in "eval.c" internal_condition_case_1(bfun = 0x20155194, arg = -1602180136, handlers = 540582032, hfun = 0x201551a0), line 1560 in "eval.c" menu_item_eval_property(sexpr = 544948944), line 7783 in "keyboard.c" parse_tool_bar_item(key = 270477396, item = -1596107872), line 8478 in "keyboard.c" process_tool_bar_item(key = 540705056, def = -1596468104, data = 540514304, args = (nil)), line 8300 in "keyboard.c" map_keymap_item(fun = (nil), args = 1, key = 804391104, val = 1, data = 0x101f69a8), line 643 in "keymap.c" map_keymap_internal(map = -1596107872, fun = 0x201553b0, args = 540514304, data = (nil)), line 681 in "keymap.c" map_keymap(map = -1596107872, fun = 0x201553b0, args = 540514304, data = (nil), autoload = 1), line 728 in "keymap.c" tool_bar_items(reuse = -2132707328, nitems = 0x60b92490), line 8257 in "keyboard.c" unnamed block in update_tool_bar(f = 0x2088a200, save_match_data = 538293456), line 9936 in "xdisp.c" unnamed block in update_tool_bar(f = 0x2088a200, save_match_data = 538293456), line 9936 in "xdisp.c" update_tool_bar(f = 0x2088a200, save_match_data = 538293456), line 9936 in "xdisp.c" unnamed block in prepare_menu_bars(), line 9631 in "xdisp.c" unnamed block in prepare_menu_bars(), line 9631 in "xdisp.c" prepare_menu_bars(), line 9631 in "xdisp.c" redisplay_internal(preserve_echo_area = 538293456), line 11475 in "xdisp.c" redisplay(), line 11050 in "xdisp.c" unnamed block in read_char(commandflag = 1, nmaps = 4, maps = 0x2ff217c0, prev_event = 540514304, used_mouse_menu = 0x2ff2182c, end_time = (nil)), line 2707 in "keyboard.c" read_char(commandflag = 1, nmaps = 4, maps = 0x2ff217c0, prev_event = 540514304, used_mouse_menu = 0x2ff2182c, end_time = (nil)), line 2707 in "keyboard.c" unnamed block in read_key_sequence(keybuf = 0x00000002, bufsize = 540514304, prompt = 540514304, dont_downcase_last = 540514304, can_return_switch_frame = 546349624, fix_current_buffer = 0), line 9460 in "keyboard.c" unnamed block in read_key_sequence(keybuf = 0x00000002, bufsize = 540514304, prompt = 540514304, dont_downcase_last = 540514304, can_return_switch_frame = 546349624, fix_current_buffer = 0), line 9460 in "keyboard.c" unnamed block in read_key_sequence(keybuf = 0x00000002, bufsize = 540514304, prompt = 540514304, dont_downcase_last = 540514304, can_return_switch_frame = 546349624, fix_current_buffer = 0), line 9460 in "keyboard.c" unnamed block in read_key_sequence(keybuf = 0x00000002, bufsize = 540514304, prompt = 540514304, dont_downcase_last = 540514304, can_return_switch_frame = 546349624, fix_current_buffer = 0), line 9460 in "keyboard.c" read_key_sequence(keybuf = 0x00000002, bufsize = 540514304, prompt = 540514304, dont_downcase_last = 540514304, can_return_switch_frame = 546349624, fix_current_buffer = 0), line 9460 in "keyboard.c" command_loop_1(), line 1642 in "keyboard.c" internal_condition_case(bfun = 0x20155164, handlers = 540582032, hfun = 0x20155158), line 1512 in "eval.c" command_loop_2(), line 1359 in "keyboard.c" internal_catch(tag = 268986704, func = 0x2015517c, arg = 540514304), line 1248 in "eval.c" keyboard.command_loop(), line 1338 in "keyboard.c" recursive_edit_1(), line 953 in "keyboard.c" Frecursive_edit(), line 1015 in "keyboard.c" main(argc = 0, argv = (nil)), line 1852 in "emacs.c" regards, Marc --00032555a1961d20e80474a60665 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I have built emacs 23.1 for AIX/Po= werPC using the xlc compiler (config.log is available) using the lucid toolkit. Emacs crashes sometimes = when I try to scroll in a buffer or modify the buffer. The crash occurs about one or two times per week.

I have included a trace from dbx inspecting the core file. It seems to have to do with garbage collection or memory management. My guess is that garbage collection is performed during buffer scrolling. The binary was built with -g and -O2 using xlc_r. I have tried for a week t= o reproduce a crash with an unoptimized build, but was not successful, so the= trace below is the best I can provide for now.

When I compiled emacs I get warnings about alloca. I also tried to buil= d emacs with gcc, but it crashes in the same way.

The following cras= h happens sometimes when I try to scroll in a buffer:

IOT/Abort trap= in fatal_error_signal at line 403 in file ""
couldn't read "emacs.c"
(dbx) where
fatal_error_signal(= sig =3D 538249088), line 403 in "emacs.c"
emacs.abort(), line 432 in "emacs.c"
Fsignal(error_symbol =3D 550856640, data =3D 538298528), line 1652 in "= ;eval.c"
xsignal(error_symbol =3D 270962724, data =3D 20439), line = 1751 in "eval.c"
xsignal1(error_symbol =3D 538291456, arg =3D = 538293456), line 1768 in "eval.c"
compile_pattern_1(cp =3D 0x2ff20ab0, pattern =3D 20439, translate =3D 549181824, regp =3D 0x00000004, posix =3D 540852040), line 179 in "sea= rch.c"
compile_pattern(pattern =3D 269324080, regp =3D (nil), translate =3D 804386800, posix =3D 543383040= , multibyte =3D 269324080), line 266 in "search.c"
fast_string_match(regexp =3D 538291456, string =3D 538293456), line 507 in = "search.c"
Ffind_file_name_handler(
filename =3D 538291456= , operation =3D 538293456), line 382 in "fileio.c"
Fexpand_file_name(name =3D 1623917056, default_directory =3D -1606969344), = line 862 in "fileio.c"
Fdo_auto_save(no_message =3D 0, current_only =3D -2133330944), line 5235 in= "fileio.c"
shut_down_emacs(sig =3D 538291456, no_x =3D 538293= 456, stuff =3D 540398608), line 2216 in "emacs.c"
fatal_error_= signal(sig =3D 0), line 389 in "emacs.c"
mark_object(arg =3D 538291456), line 5650 in "alloc.c"
travers= e_intervals_noorder(tree =3D (nil), function =3D 0x40000000, arg =3D 804388= 752), line 216 in "intervals.c"
traverse_intervals_noorder(tre= e =3D 0x20150780, function =3D 0x20150764, arg =3D 1073758208), line 221 in= "intervals.c"
mark_interval_tree(tree =3D 0x2015ad00), line 1524 in "alloc.c"mark_object(arg =3D 540115424), line 5554 in "alloc.c"
mark_= object(arg =3D 0), line 5549 in "alloc.c"
unnamed block in Fga= rbage_collect(), line 5109 in "alloc.c"
Fgarbage_collect(), line 5109 in "alloc.c"
Fbyte_code(bytestr = =3D 9, vector =3D 540514352, maxdepth =3D 1127219200), line 527 in "by= tecode.c"
funcall_lambda(fun =3D 537672800, nargs =3D -2146681760, = arg_vector =3D 0x2ff203c0), line 3232 in "eval.c"
apply_lambda(fun =3D -2146761924, args =3D 540514304, eval_flag =3D 1), lin= e 3156 in "eval.c"
Feval(form =3D -1602180136), line 2418 in &= quot;eval.c"
internal_condition_case_1(bfun =3D 0x20155194, arg =3D= -1602180136, handlers =3D 540582032, hfun =3D 0x201551a0), line 1560 in &q= uot;eval.c"
menu_item_eval_property(sexpr =3D 544948944), line 7783 in "keyboard.c= "
parse_tool_bar_item(key =3D 270477396, item =3D -1596107872), lin= e 8478 in "keyboard.c"
process_tool_bar_item(key =3D 540705056= , def =3D -1596468104, data =3D 540514304, args =3D (nil)), line 8300 in &q= uot;keyboard.c"
map_keymap_item(fun =3D (nil), args =3D 1, key =3D 804391104, val =3D 1, da= ta =3D 0x101f69a8), line 643 in "keymap.c"
map_keymap_internal= (map =3D -1596107872, fun =3D 0x201553b0, args =3D 540514304, data =3D (nil= )), line 681 in "keymap.c"
map_keymap(map =3D -1596107872, fun =3D 0x201553b0, args =3D 540514304, dat= a =3D (nil), autoload =3D 1), line 728 in "keymap.c"
tool_bar_= items(reuse =3D -2132707328, nitems =3D 0x60b92490), line 8257 in "key= board.c"
unnamed block in update_tool_bar(f =3D 0x2088a200, save_match_data =3D 5382= 93456), line 9936 in "xdisp.c"
unnamed block in update_tool_ba= r(f =3D 0x2088a200, save_match_data =3D 538293456), line 9936 in "xdis= p.c"
update_tool_bar(f =3D 0x2088a200, save_match_data =3D 538293456), line 9936= in "xdisp.c"
unnamed block in prepare_menu_bars(), line 9631 = in "xdisp.c"
unnamed block in prepare_menu_bars(), line 9631 i= n "xdisp.c"
prepare_menu_bars(), line 9631 in "xdisp.c"
redisplay_internal= (preserve_echo_area =3D 538293456), line 11475 in "xdisp.c"
re= display(), line 11050 in "xdisp.c"
unnamed block in read_char(commandflag =3D 1, nmaps =3D 4, maps =3D 0x2ff217c0, prev_event =3D 540514304, used_mouse_menu =3D 0x2ff2182c, end_time =3D (nil)), line 2707 in "keyboard.c"
read_char(commandflag =3D 1, nmaps =3D 4, maps =3D 0x2ff217c0, prev_event = =3D 540514304, used_mouse_menu =3D 0x2ff2182c, end_time =3D (nil)), line 2707 in "keyboard.c"
unnamed block in read_key_sequence(keybuf =3D 0x00000002, bufsize =3D 540514304, prompt =3D 540514304, dont_downcase_last =3D 540514304, can_return_switch_frame =3D 546349624, fix_current_buffer =3D 0), line 9460 in "keyboard.c"
unnamed block in read_key_sequence(keybuf =3D 0x00000002, bufsize =3D 540514304, prompt =3D 540514304, dont_downcase_last =3D 540514304, can_return_switch_frame =3D 546349624, fix_current_buffer =3D 0), line 9460 in "keyboard.c"
unnamed block in read_key_sequence(keybuf =3D 0x00000002, bufsize =3D 540514304, prompt =3D 540514304, dont_downcase_last =3D 540514304, can_return_switch_frame =3D 546349624, fix_current_buffer =3D 0), line 9460 in "keyboard.c"
unnamed block in read_key_sequence(keybuf =3D 0x00000002, bufsize =3D 540514304, prompt =3D 540514304, dont_downcase_last =3D 540514304, can_return_switch_frame =3D 546349624, fix_current_buffer =3D 0), line 9460 in "keyboard.c"
read_key_sequence(keybuf =3D 0x00000002, bufsize =3D 540514304, prompt =3D 540514304, dont_downcase_last =3D 540514304, can_return_switch_frame =3D 546349624, fix_current_buffer =3D 0), line 9460 in "keyboard.c"command_loop_1(), line 1642 in "keyboard.c"
internal_condition_case(bfun =3D 0x20155164, handlers =3D 540582032, hfun = =3D 0x20155158), line 1512 in "eval.c"
command_loop_2(), line = 1359 in "keyboard.c"
internal_catch(tag =3D 268986704, func = =3D 0x2015517c, arg =3D 540514304), line 1248 in "eval.c"
keyboard.command_loop(), line 1338 in "keyboard.c"
recursive_e= dit_1(), line 953 in "keyboard.c"
Frecursive_edit(), line 1015= in "keyboard.c"
main(argc =3D 0, argv =3D (nil)), line 1852 i= n "emacs.c"

regards,
Marc



--00032555a1961d20e80474a60665--