From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ax Subject: segfault when org-ellipsis is empty Date: Mon, 26 Jun 2017 20:09:09 +0200 Message-ID: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------5601722505DD7D9DEEA52385" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPYRz-0006XX-SJ for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 14:09:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPYRw-0003DB-LO for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 14:09:27 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36965) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPYRw-0003B8-EP for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 14:09:24 -0400 Received: by mail-wm0-x236.google.com with SMTP id i127so5052875wma.0 for ; Mon, 26 Jun 2017 11:09:22 -0700 (PDT) Received: from [10.11.12.10] (ip5f5b275f.dynamic.kabel-deutschland.de. [95.91.39.95]) by smtp.googlemail.com with ESMTPSA id g55sm12507edg.66.2017.06.26.11.09.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jun 2017 11:09:19 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------5601722505DD7D9DEEA52385 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, I trust that this is the right place to report a segfault. Using whatever is current in debian 9, emacs segfaults from a minimum setup when using an empty string for org-ellipsis. Here's how to reproduce it: > emacs -Q (setq org-ellipsis "") C-x C-e (org-mode) C-x C-e * asd ** def C-p tab < and boom My emacs isn't built from sources, so the ftrace/backtrace is meaningless for the "Fatal error 11: Segmentation fault" If there is a bugtracker and there always is a bugtracker, then my apologies in case this has already been dealt with. m --------------5601722505DD7D9DEEA52385 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hello, I trust that this is the right place to report a segfault.

Using whatever is current in debian 9, emacs segfaults
from a minimum setup when using an empty string for org-ellipsis.

Here's how to reproduce it:
> emacs -Q 
(setq org-ellipsis "") C-x C-e
(org-mode)  C-x C-e
* asd
** def C-p tab  < and boom

My emacs isn't built from sources, so the ftrace/backtrace
is meaningless for the "Fatal error 11: Segmentation fault"

If there is a bugtracker and there always is a bugtracker,
then my apologies in case this has already been dealt with.

m

--------------5601722505DD7D9DEEA52385-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: segfault when org-ellipsis is empty Date: Mon, 26 Jun 2017 18:20:42 +0000 Message-ID: References: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f40304360a02eabb740552e102a0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPYd8-000438-46 for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 14:20:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPYd7-0001lu-1O for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 14:20:58 -0400 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:34699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPYd6-0001lF-Oq for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 14:20:56 -0400 Received: by mail-lf0-x229.google.com with SMTP id l13so5203790lfl.1 for ; Mon, 26 Jun 2017 11:20:54 -0700 (PDT) In-Reply-To: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Michael Ax , emacs-orgmode@gnu.org --f40304360a02eabb740552e102a0 Content-Type: text/plain; charset="UTF-8" On Mon, Jun 26, 2017 at 2:10 PM Michael Ax wrote: > Hello, I trust that this is the right place to report a segfault. > The right place to report emacs segfault (whether caused by another package or not) would be by M-x report-emacs-bug from within emacs. If you haven't set up to send emails from within emacs (I haven't), then copy the To email address, email subject and the generated email body and email it it using your default email client. > Using whatever is current in debian 9, emacs segfaults > from a minimum setup when using an empty string for org-ellipsis. > > Here's how to reproduce it: > > > emacs -Q > > (setq org-ellipsis "") C-x C-e > (org-mode) C-x C-e > * asd > ** def C-p tab < and boom > > Cool! I can recreate that error on emacs master + org 9.0.9. > My emacs isn't built from sources, so the ftrace/backtrace > is meaningless for the "Fatal error 11: Segmentation fault" > > If there is a bugtracker and there always is a bugtracker, > then my apologies in case this has already been dealt with. > > m > Once you send that bug report, you will get a debbugs number. Please post that number in this thread (for people curious about this bug like me). -- Kaushal Modi --f40304360a02eabb740552e102a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jun 26, 2017 at 2:10 PM Michael Ax <michaelax@gmail.com> wrote:
=20 =20 =20
Hello, I trust that this is the right place to report a segfault.

The right place to report emacs segfau= lt (whether caused by another package or not) would be by M-x report-emacs-= bug from within emacs. If you haven't set up to send emails from within= emacs (I haven't), then copy the To email address, email subject and t= he generated email body and email it it using your default email client.
=C2=A0
Using whatever is current in debian 9, emacs segfaults from a minimum setup when using an empty string for org-ellipsis.

Here's how to reproduce it:
> emacs -Q 
(setq org-ellipsis "") C-x C-e
(org-mode)=C2=A0 C-x C-e
* asd
** def C-p tab=C2=A0 < and boom
Cool!

I can recreate that error on emacs master=C2= =A0+ org 9.0.9.
=C2=A0

My emacs isn't built from sources, so the ftrace/backtrace
is meaningless for the "Fatal error 11: Segmentation fault"=

If there is a bugtracker and there always is a bugtracker,
then my apologies in case this has already been dealt with.

m


Once you send that = bug report, you will get a debbugs number. Please post that number in this = thread (for people curious about this bug like me).=C2=A0
=
--

Kaushal Modi

--f40304360a02eabb740552e102a0-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: segfault when org-ellipsis is empty Date: Mon, 26 Jun 2017 22:18:56 +0200 Message-ID: <87zicuv6xb.fsf@nicolasgoaziou.fr> References: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPaTL-000576-L2 for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 16:19:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPaTK-0007Mv-QO for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 16:18:59 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:53591) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dPaTK-0007M3-Jm for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 16:18:58 -0400 In-Reply-To: (Kaushal Modi's message of "Mon, 26 Jun 2017 18:20:42 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi Cc: emacs-orgmode@gnu.org, Michael Ax Hello, Kaushal Modi writes: > The right place to report emacs segfault (whether caused by another package > or not) would be by M-x report-emacs-bug from within emacs. If you haven't > set up to send emails from within emacs (I haven't), then copy the To email > address, email subject and the generated email body and email it it using > your default email client. > [...] > Once you send that bug report, you will get a debbugs number. Please post > that number in this thread (for people curious about this bug like > me). Meanwhile, we could simply change :safe keyword from `org-ellipsis' to (lambda (v) (and (string-or-null-p v) (not (equal v "")))) WDYT? Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: segfault when org-ellipsis is empty Date: Mon, 26 Jun 2017 21:13:36 +0000 Message-ID: References: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> <87zicuv6xb.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11411c823e1df40552e36d53" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPbKQ-0004Zq-2W for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 17:13:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPbKP-0001pq-4m for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 17:13:50 -0400 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:33495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPbKO-0001oy-Td for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 17:13:49 -0400 Received: by mail-lf0-x22d.google.com with SMTP id m77so7333440lfe.0 for ; Mon, 26 Jun 2017 14:13:48 -0700 (PDT) In-Reply-To: <87zicuv6xb.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Michael Ax --001a11411c823e1df40552e36d53 Content-Type: text/plain; charset="UTF-8" On Mon, Jun 26, 2017 at 4:19 PM Nicolas Goaziou wrote: > > Meanwhile, we could simply change :safe keyword from `org-ellipsis' to > > (lambda (v) (and (string-or-null-p v) (not (equal v "")))) > > > WDYT? > But that would still allow the user to use setq to set that variable. -- Kaushal Modi --001a11411c823e1df40552e36d53 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jun 26= , 2017 at 4:19 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

Meanwhile, we could simply change :safe keyword from `org-ellipsis' to<= br>
=C2=A0 (lambda (v) (and (string-or-null-p v) (not (equal v ""))))=


WDYT?

But that would still allow the us= er to use setq to set that variable.
-- <= br>

Kaushal Mod= i

--001a11411c823e1df40552e36d53-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: segfault when org-ellipsis is empty Date: Mon, 26 Jun 2017 23:42:59 +0200 Message-ID: <87efu6v318.fsf@nicolasgoaziou.fr> References: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> <87zicuv6xb.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPbmh-0007lc-EO for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 17:43:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPbmg-0004by-R3 for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 17:43:03 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:37160) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dPbmg-0004al-Kq for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 17:43:02 -0400 In-Reply-To: (Kaushal Modi's message of "Mon, 26 Jun 2017 21:13:36 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi Cc: Michael Ax , emacs-orgmode@gnu.org Kaushal Modi writes: > On Mon, Jun 26, 2017 at 4:19 PM Nicolas Goaziou > wrote: > >> >> Meanwhile, we could simply change :safe keyword from `org-ellipsis' to >> >> (lambda (v) (and (string-or-null-p v) (not (equal v "")))) >> >> >> WDYT? >> > > But that would still allow the user to use setq to set that variable. True, but can we always prevent them from shooting themselves in the foot? Anyway, I updated the :safe value and changed the test below: (vconcat (mapcar (lambda (c) (make-glyph-code c 'org-ellipsis)) (if (stringp org-ellipsis) org-ellipsis "..."))) Regards, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ax Subject: Re: segfault when org-ellipsis is empty Date: Tue, 27 Jun 2017 00:46:52 +0200 Message-ID: <63d09dd2-f2be-eff4-e9e9-402ccff7ac53@gMail.com> References: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> <87zicuv6xb.fsf@nicolasgoaziou.fr> <87efu6v318.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------16FEA6C5312CFC64B56D5B26" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPcmk-0002Vd-8P for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 18:47:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPcmg-0007Lm-D0 for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 18:47:10 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPcmg-0007LC-6I for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 18:47:06 -0400 Received: by mail-wm0-x234.google.com with SMTP id i127so10550803wma.0 for ; Mon, 26 Jun 2017 15:47:06 -0700 (PDT) In-Reply-To: <87efu6v318.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Cc: Michael Ax This is a multi-part message in MIME format. --------------16FEA6C5312CFC64B56D5B26 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit cool compromise; covers my use-cases. tks! >> But that would still allow the user to use setq to set that variable. > True, but can we always prevent them from shooting themselves in the > foot? > --------------16FEA6C5312CFC64B56D5B26 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit

cool compromise; covers my use-cases. tks!

But that would still allow the user to use setq to set that variable.
True, but can we always prevent them from shooting themselves in the
foot?


--------------16FEA6C5312CFC64B56D5B26-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: segfault when org-ellipsis is empty Date: Tue, 27 Jun 2017 16:26:37 +0000 Message-ID: References: <6b6ee521-a482-0377-6f46-23c91365bee4@gMail.com> <87zicuv6xb.fsf@nicolasgoaziou.fr> <87efu6v318.fsf@nicolasgoaziou.fr> <63d09dd2-f2be-eff4-e9e9-402ccff7ac53@gMail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f40304360a02b671650552f388d6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPtl1-0007u9-Pw for emacs-orgmode@gnu.org; Tue, 27 Jun 2017 12:54:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPtKD-00035m-Bs for emacs-orgmode@gnu.org; Tue, 27 Jun 2017 12:26:50 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:34132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPtKD-00035J-3o for emacs-orgmode@gnu.org; Tue, 27 Jun 2017 12:26:49 -0400 Received: by mail-lf0-x231.google.com with SMTP id l13so20361201lfl.1 for ; Tue, 27 Jun 2017 09:26:48 -0700 (PDT) In-Reply-To: <63d09dd2-f2be-eff4-e9e9-402ccff7ac53@gMail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Michael Ax , emacs-orgmode@gnu.org --f40304360a02b671650552f388d6 Content-Type: text/plain; charset="UTF-8" Just for the record, this bug was fixed in http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=4a5653cd2859308ada4bbf5ffc9fb9b283eef31a And here's the bug report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27504 On Mon, Jun 26, 2017 at 6:48 PM Michael Ax wrote: > cool compromise; covers my use-cases. tks! > > But that would still allow the user to use setq to set that variable. > > True, but can we always prevent them from shooting themselves in the > foot? > > > > -- Kaushal Modi --f40304360a02b671650552f388d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --f40304360a02b671650552f388d6--