From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Micha=C3=ABl?= Cadilhac Newsgroups: gmane.emacs.bugs Subject: bug#65877: 29.1; line-number-at-pos crashes with args-out-of-range when ran using emacsclient Date: Mon, 11 Sep 2023 16:07:42 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38952"; mail-complaints-to="usenet@ciao.gmane.io" To: 65877@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 11 23:09: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 1qfo9e-0009km-Ku for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Sep 2023 23:09:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfo9T-0001mN-NA; Mon, 11 Sep 2023 17:08:59 -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 1qfo9S-0001mE-1N for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 17:08:58 -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 1qfo9R-0004Bz-P8 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 17:08:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfo9V-0005DM-MX for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 17:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Micha=C3=ABl?= Cadilhac Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2023 21:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65877 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.169446652320016 (code B ref -1); Mon, 11 Sep 2023 21:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Sep 2023 21:08:43 +0000 Original-Received: from localhost ([127.0.0.1]:54951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfo9C-0005Cm-Ox for submit@debbugs.gnu.org; Mon, 11 Sep 2023 17:08:43 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:40758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfo97-0005CV-KB for submit@debbugs.gnu.org; Mon, 11 Sep 2023 17:08:41 -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 1qfo8x-0001KN-ND for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 17:08:27 -0400 Original-Received: from cadilhac.name ([163.172.56.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfo8u-00046s-62 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 17:08:27 -0400 Original-Received: from cadilhac.name (localhost [127.0.0.1]) by cadilhac.name (OpenSMTPD) with ESMTP id f6b806c2 for ; Mon, 11 Sep 2023 21:08:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cadilhac.name; h= mime-version:from:date:message-id:subject:to:content-type; s= default; bh=cfig0wle2Cb0JFKZRRckiU5aJHs=; b=j26bYB+lyEXFkOBgW3iF 06jpeptipEeG5y9TjqU59H3/YaspQSxp5hTJyF8GXSzUJAB4cqmg/f9zlmEGDU1e 4q3gmxzZm8HraNPwJyBnOCo5UMHUQwkElr5RmHlAEcYzWL6MR9r0oStNNDtTv8lJ UJKezJDutNxIgfiWmjLiKJKKHFnE3NmJ3bvjAjcIMZSV/07piElqwBdR2fQ7waBQ E66aeHGDKr136+xQvj/qps/Q/Oi5P/MdbYzeBfEQ7lk0VOmgqgCW9S+k8t2UM8kg TXwBDUifY2vz/PHhpuHzHVzLSIUNIyDEODU3F9GBkzDyDBFdTGvIifgnWl1V0RoS ug== DomainKey-Signature: a=rsa-sha1; c=nofws; d=cadilhac.name; h= mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=M2EdMFSlbCOZq5IAuPamYz1kBCXA5cUjbzb1P643w5bRus zp6z26YUMAcjikaDFQuV/73fbcbVtez281m/qNSB89843lsgRy1Pf7aqryyKwQm5 HpowY1K2AHN+BKJSPjkC35gX8KmuxHrVC+WmqHjPgnRJT/dK5dU/H8G4w327BObv 3KuSz9M38lWKanji2i2q8pvCfkr57n/I8InUPL/Zzkz0Gfneb9nYr0KM7KPBjha2 SdcBaYXn3o04CkM4W49eiu8nPmPEkrypo31hchlOUsEz3Hj4/6ZbROIsLQ9VOM1L d0PfcWgQXPjP6OICQZJ0hhDC3ZnEW2VAfK8+McFw== Original-Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by cadilhac.name (OpenSMTPD) with ESMTPSA id 8bf0e601 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Mon, 11 Sep 2023 21:08:19 +0000 (UTC) Original-Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6bf04263dc8so3647725a34.3 for ; Mon, 11 Sep 2023 14:08:19 -0700 (PDT) X-Gm-Message-State: AOJu0YxhL9+WSFCXL3pVrEan9fTZ73qqzACE+yWGHSb1bBS/tpr6/kmb O3KWdBN06H+kRDjCBLOwthVdMipNb9k5bVllvyM= X-Google-Smtp-Source: AGHT+IH6vEiNrFcskhSXjPb3KdeonO6zYGpp09SU1a2y2FzZ2Pm3LyIrCtpRim20V6ooh1JJXCwHzU7JSQtd3F300Ec= X-Received: by 2002:a05:6358:6f86:b0:134:d128:9f5f with SMTP id s6-20020a0563586f8600b00134d1289f5fmr8553461rwn.9.1694466498583; Mon, 11 Sep 2023 14:08:18 -0700 (PDT) X-Gmail-Original-Message-ID: Received-SPF: pass client-ip=163.172.56.42; envelope-from=michael@cadilhac.name; helo=cadilhac.name 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:270088 Archived-At: How to reproduce: start with $ emacs -Q M-x server-start Open a file with say 200 lines, scroll at the bottom, so that the first line of the file is not at the top of the window. Then in a shell, run: $ emacsclient -e '(line-number-at-pos (window-start))' *ERROR*: Args out of range: 146, 1, 1 This error is unexpected. If the top of the window is visible in the main emacs, this command returns 1. If it isn't, it crashes. Configuration details follow----------------------------------------- In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Arch Linux Configured using: 'configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --with-tree-sitter --localstatedir=/var --with-cairo --disable-build-details --with-harfbuzz --with-libsystemd --with-modules --with-x-toolkit=gtk3 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: server-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 37743 8089) (symbols 48 5363 0) (strings 32 13739 2164) (string-bytes 1 390492) (vectors 16 9609) (vector-slots 8 155004 11315) (floats 8 22 19) (intervals 56 233 0) (buffers 984 12))