From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Wid=C3=A9n?= Newsgroups: gmane.emacs.bugs Subject: bug#65445: 29.1; Android emacs: False memory full condition, due to Java exception (?) Date: Mon, 21 Aug 2023 22:46:13 +0200 Message-ID: <878ra4m77d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1056"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.5; emacs 29.1 To: 65445@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 21 23:43:11 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qYCg2-000Abl-7d for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Aug 2023 23:43:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYCfu-0000u6-G8; Mon, 21 Aug 2023 17:43:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYCfs-0000tg-Ub for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 17:43:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYCfs-0006n5-N7 for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 17:43:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYCfu-0007Mw-ML for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Wid=C3=A9n?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Aug 2023 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65445 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169265416428301 (code B ref -1); Mon, 21 Aug 2023 21:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2023 21:42:44 +0000 Original-Received: from localhost ([127.0.0.1]:58049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYCfb-0007MO-LR for submit@debbugs.gnu.org; Mon, 21 Aug 2023 17:42:44 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:58358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYCBt-0006ST-5W for submit@debbugs.gnu.org; Mon, 21 Aug 2023 17:12:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYCBl-00047o-CK for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 17:11:53 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYCBi-0000lu-Pn for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 17:11:53 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fe2d152f62so5805377e87.0 for ; Mon, 21 Aug 2023 14:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692652307; x=1693257107; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=Ujy2wYk2OYUqIRpQfSHImj3O4hgQes2Rdd/M/lXk3A8=; b=EKx/soZrfKCzZTTRK4Xd/MhNg7bBxOsqP7XA4XMGKGpmZRLC5YriKZ5QkONpheVKY0 zaZeZrhujFugvxq/H/Aj4V1qImyZpf9yIcgGw/c28bNWgODdLwsELw5a2xuJT4UF+tL0 jO4KmVX2yxNDX5NPE0wg17N1gMzWQjl8FRC3wLsin+oHo5lr8z19GrMlJj3DeZyQQSqo FZptrZno+uT6Eww86QobdG0+OnfSG44RAND834CeLNWXIZeZlMVhCgd8l2NlARvA1EaC Sw6wRU4iGgYrL5Ug3Cf4DE10XPUpk5rl7KP7iOp7syJ8zFH3sSRxlI7lVlrk24R/XOtm DRCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692652307; x=1693257107; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ujy2wYk2OYUqIRpQfSHImj3O4hgQes2Rdd/M/lXk3A8=; b=JWyaxZ/uWBL8BmNzht5hMHZ4EYBHdvQ+vskwJPXdm6/RRZ1BuVYm7IvSsplyEWE0X4 qcLM8z2bnnu260tNxzybV7WZiF1Gd5YVqmNGlde8MhLLTo5gvEIZpjp+OxzO711LglQM gW5Ol8SSuuzZO0+ui1RVOzh1EFE4JHUXwx0zL6yJDAGQ7mP8G6IEqHjo+S8VqPM4eH/z agLFwOM7TTGM1/OzS0ntQUPILSrXSYP2SaT2dzMg4NdAmsuOZC5SrHBRXxR9d36yKPN8 9pvyjF3YRDDZfFZFOJ9VTIlGD6fKyH7s9+sOL5M+yZLUpQ1Lf3KA1O058KErIT66AiiQ r2dg== X-Gm-Message-State: AOJu0YxegiZeN3xNpdSOhA7dxsGM2pLFgcLMTXGwdZqeabu7t7pf2sIg zN3CSqjBq0xf2rpSHcbUmpTfEVqp8/A= X-Google-Smtp-Source: AGHT+IG4bUbxhWjp3WPjRvLYZ6c+Zh671iVe3dze4gQ/HvkHAw2cguz5/Oe1Qk675gPyhfzsydO8PA== X-Received: by 2002:a05:6512:2396:b0:4fd:fafd:1ed4 with SMTP id c22-20020a056512239600b004fdfafd1ed4mr7067175lfv.2.1692652306618; Mon, 21 Aug 2023 14:11:46 -0700 (PDT) Original-Received: from localhost (h-82-196-111-90.NA.cust.bahnhof.se. [82.196.111.90]) by smtp.gmail.com with ESMTPSA id q4-20020a19a404000000b0050078c9b53asm1023790lfc.231.2023.08.21.14.11.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 14:11:46 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=j.e.widen@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 21 Aug 2023 17:42:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268125 Archived-At: This bug report is for Android emacs, but I am writing it in my Ubuntu emacs, so the config of the Ubuntu emacs is irrelevant. I can send the Android emacs figures later, if so desired. I currently have Android emacs connected to a debugger, with the stacktrace active, so for now I would like to avoid executing report-emacs-bug there. The following bug, or similar, have appeared in all Android emacs versions that I have downloaded from Sourceforge. The latest was downloaded 20-aug-2023 15:38 UTC. I append a stacktrace. This is from my own build, but the only file that is modifed relative to the repo is alloc.c where I have added 20 lines or so before the place where I triggered an abort(). I put an abort() in memory full, as I so far have not been able to set functioning break points. What happens is that after some editing emacs reports that memory is full. But (memory-info) and (memory-report) shows that there is a lot of free memory. Emacs internal data allocation is about 150 megabyte, and free memory is about 300 megabyte. I will try to analyze the stack trace more, but I thought it might be of in= terest. I can trigger the bug fairly repeatable, in the following manner: I use spacemacs in evil mode. I start spacemacs and open a pdf book in pdf-tools. I then split the window and open a (non empty) text file. At the beginning of the text file I enter the evil commands: i0C-[yl which inserts a '0' and then copies it to evils two 'yank' registers. That is when the memory full condition occurs. I have triggered the bug or a similar bug several times in other editing conditions, but I have not been able to repeat those. It was a bit of phase of the moon. frame #1: 0x0000007b9d0cd304 libemacs.so`memory_full(nbytes=3D0) at all= oc.c:4354:7 frame #2: 0x0000007b9d20f4c4 libemacs.so`android_exception_check_1(obje= ct=3D0x000000000000004d) at android.c:5669:3 frame #3: 0x0000007b9d240d34 libemacs.so`Fandroid_get_clipboard_data(ty= pe=3D0xb400007d2da9b964) at androidselect.c:386:3 frame #4: 0x0000007b9d1125d0 libemacs.so`funcall_subr(subr=3D0x0000007b= 9d3d8868, numargs=3D1, args=3D0xb400007b94185480) at eval.c:3047:15 frame #5: 0x0000007b9d16cfc4 libemacs.so`exec_byte_code(fun=3D0x0000007= b95c2e245, args_template=3D257, nargs=3D1, args=3D0xb400007b94185450) at by= tecode.c:815:14 frame #6: 0x0000007b9d115ee8 libemacs.so`fetch_and_exec_byte_code(fun= =3D0x0000007b95c2e015, args_template=3D514, nargs=3D2, args=3D0x0000007b99b= ec658) at eval.c:3094:10 frame #7: 0x0000007b9d1129a4 libemacs.so`funcall_lambda(fun=3D0x0000007= b95c2e015, nargs=3D2, arg_vector=3D0x0000007b99bec658) at eval.c:3166:9 frame #8: 0x0000007b9d112324 libemacs.so`funcall_general(fun=3D0x000000= 7b95c2e015, numargs=3D2, args=3D0x0000007b99bec658) at eval.c:2958:12 frame #9: 0x0000007b9d10de94 libemacs.so`Ffuncall(nargs=3D3, args=3D0x0= 000007b99bec650) at eval.c:3008:21 frame #10: 0x0000007b9d1118a0 libemacs.so`Fapply(nargs=3D2, args=3D0xb4= 00007b941853b8) at eval.c:2679:24 frame #11: 0x0000007b9d1127bc libemacs.so`funcall_subr(subr=3D0x0000007= b9d3d2208, numargs=3D2, args=3D0xb400007b941853b8) at eval.c:3072:9 frame #12: 0x0000007b9d16cfc4 libemacs.so`exec_byte_code(fun=3D0x000000= 7b95a44385, args_template=3D770, nargs=3D3, args=3D0xb400007b94185630) at b= ytecode.c:815:14 frame #13: 0x0000007b9d115ee8 libemacs.so`fetch_and_exec_byte_code(fun= =3D0x0000007b957b18e5, args_template=3D513, nargs=3D1, args=3D0xb400007b941= 851f0) at eval.c:3094:10 frame #14: 0x0000007b9d1129a4 libemacs.so`funcall_lambda(fun=3D0x000000= 7b957b18e5, nargs=3D1, arg_vector=3D0xb400007b941851f0) at eval.c:3166:9 frame #15: 0x0000007b9d112324 libemacs.so`funcall_general(fun=3D0x00000= 07b957b18e5, numargs=3D1, args=3D0xb400007b941851f0) at eval.c:2958:12 frame #16: 0x0000007b9d10de94 libemacs.so`Ffuncall(nargs=3D2, args=3D0x= b400007b941851e8) at eval.c:3008:21 frame #17: 0x0000007b9d1114f4 libemacs.so`Fapply(nargs=3D2, args=3D0xb4= 00007b941851e8) at eval.c:2636:14 frame #18: 0x0000007b9d1127bc libemacs.so`funcall_subr(subr=3D0x0000007= b9d3d2208, numargs=3D2, args=3D0xb400007b941851e8) at eval.c:3072:9 frame #19: 0x0000007b9d16cfc4 libemacs.so`exec_byte_code(fun=3D0xb40000= 7d7d28d1b5, args_template=3D128, nargs=3D1, args=3D0xb400007b94185190) at b= ytecode.c:815:14 frame #20: 0x0000007b9d115ee8 libemacs.so`fetch_and_exec_byte_code(fun= =3D0xb400007d7ced0d05, args_template=3D1282, nargs=3D5, args=3D0x0000007b99= bedd70) at eval.c:3094:10 frame #21: 0x0000007b9d1129a4 libemacs.so`funcall_lambda(fun=3D0xb40000= 7d7ced0d05, nargs=3D5, arg_vector=3D0x0000007b99bedd70) at eval.c:3166:9 frame #22: 0x0000007b9d112324 libemacs.so`funcall_general(fun=3D0xb4000= 07d7ced0d05, numargs=3D5, args=3D0x0000007b99bedd70) at eval.c:2958:12 --=20 Johan Wid=C3=A9n, tel: +46705367346 Risv=C3=A4gen 5 A, 192 73 Sollentuna, SWEDEN