all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasenwood@zoho.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: Fatal error 11: Segmentation Fault
Date: Wed, 03 Apr 2019 01:54:01 +0200	[thread overview]
Message-ID: <865zrw55gm.fsf@zoho.eu> (raw)
In-Reply-To: b6fed635-1d2d-42f5-8c6c-add29cbec84b@default

Drew Adams wrote:

>> If it is in my init files, how come it works
>> once? I type this using Emacs.
>
> Wrong question, I think. The right question
> is this: "If it _doesn't_ happen when
> I _don't_ use my init file then what part of
> my init file makes it happen?"

My init should by definition not be able to
cause this, because Elisp shouldn't be able to
crash Emacs C style - or correct me if I'm
wrong, by supplying an example which I'll
evaluate immediately! (crash-emacs) !

So it is rather some binary module which can
only be initiated once. This could be a clue as
to get there faster. Just thought someone might
know or think of something...

> It doesn't matter, for this, whether "it
> works once". What matters is that it
> (apparently) _always_ works if you don't load
> your init file and it (apparently) sometimes
> does not work if you do load your init file.

It works once. (kill-emacs), then 'emacs', or
don't (kill-emacs), then 'emacs' (i.e.
another Emacs instance) causes the crash
every time.

>> Besides, doing a "binary search" isn't so
>> easy. Many files are interconnected. To mot
>> load one file does mean commenting out
>> `require's in lots'a others, as well as
>> functions who uses their stuff, then
>> functions that uses those functions, and
>> so on.
>
> Not sure I understand your description there.

I have all my Elisp in different files,
a.el, b.el, ..., n.el, tho they are not named
thus, of course. All those are in a directory
(with subdirs), called "emacs-init".
In ~/.emacs, there is a loop that checks for
files in that directory tree, which then loads
'em all. So if I add n-plus-one.el, which
happens all the time, I don't edit ~/.emacs, it
loads the new file along with everything else
automatically. Ain't it cool stuff?

Well, in cases when binary search is called
for, like this one, it is still sort'a cool in
theory. Because I can just make a copy of the
"emacs-init" directory, move the original one
OOA, and then start removing files from the
test directory. Right?

In principle, that's right. In practice, like
I said, the files are all interconnected with
`provide' and `require'. If I remove one file,
all files which require that file will have to
be removed as well. Those, in turn, provide
to other files which require THEM, and so on.

It can still be done obviously, only it takes
a lot of time and isn't mechanical work.

> My init file and the many files it loads are
> likely more ugly and convoluted than yours
> (and no, I'm not proud/bragging about that).
> But binary search still helps and is not
> that hard.

If by "convoluted" you mean interconnected
(provide/require) then do tell how you do it.
Commenting out stuff until many files are
virtually empty but still provide/require
each other?

Anyway I start this now... Now, all we need is
a little Energon and a lot of luck. [1]


[1] http://www.dailyscript.com/scripts/transformers.html

-- 
underground experts united
http://user.it.uu.se/~embe8573




  reply	other threads:[~2019-04-02 23:54 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-02  1:33 Fatal error 11: Segmentation Fault Emanuel Berg
2019-04-02  2:39 ` Emanuel Berg
2019-04-02  2:48   ` Drew Adams
2019-04-02 15:50     ` Emanuel Berg
2019-04-02 16:27       ` Drew Adams
2019-04-02 23:54         ` Emanuel Berg [this message]
2019-04-03  1:37           ` Drew Adams
2019-04-03  5:30             ` Emanuel Berg
2019-04-03  6:47               ` Emanuel Berg
2019-04-03  7:08                 ` Eli Zaretskii
2019-04-03  7:49                   ` Emanuel Berg
2019-04-03  8:18               ` tomas
2019-04-03 10:51                 ` Using 'git bisect' to pinpoint errors in .emacs. Was: " Vegard Vesterheim
2019-04-03 11:14                   ` Eli Zaretskii
2019-04-03 12:47                     ` Vegard Vesterheim
2019-04-03 14:48                     ` Emanuel Berg
2019-04-03 12:14                   ` Skip Montanaro
2019-04-03 12:30                     ` Eli Zaretskii
2019-04-03 14:52                       ` Emanuel Berg
2019-04-03 15:41                         ` Eli Zaretskii
2019-04-03 15:47                           ` Emanuel Berg
2019-04-03 14:35                   ` Emanuel Berg
2019-04-04  7:40                     ` Vegard Vesterheim
2019-04-03 14:34                 ` Emanuel Berg
2019-04-03 16:29                   ` tomas
2019-04-03 17:06                     ` Drew Adams
2019-04-03 19:19                       ` tomas
2019-04-03 17:41                     ` Robert Thorpe
2019-04-03 21:03                       ` Emanuel Berg
2019-04-03 21:07                         ` Robert Thorpe
2019-04-03 21:16                           ` Emanuel Berg
2019-04-03 20:56                     ` Emanuel Berg
2019-04-02 17:14       ` Óscar Fuentes
2019-04-02 23:56         ` Emanuel Berg
2019-04-03  0:05           ` Emanuel Berg
2019-04-03  0:13             ` Emanuel Berg
2019-04-03  1:20               ` Óscar Fuentes
2019-04-03  1:28                 ` Óscar Fuentes
2019-04-03  2:33                 ` Emanuel Berg
2019-04-03  2:39                   ` Emanuel Berg
2019-04-03  4:47                 ` Emanuel Berg
2019-04-03  5:23                   ` Eli Zaretskii
2019-04-03  5:31                     ` Emanuel Berg
2019-04-03  5:56                       ` Eli Zaretskii
2019-04-03  6:48                         ` Emanuel Berg
2019-04-03  6:59                           ` Eli Zaretskii
2019-04-03  7:51                             ` Emanuel Berg
2019-04-03  8:12                               ` Eli Zaretskii
2019-04-03 14:21                                 ` Emanuel Berg
2019-04-03 14:36                                   ` Eli Zaretskii
2019-04-03 14:57                                     ` Emanuel Berg
2019-04-03 15:48                                       ` Eli Zaretskii
2019-04-03 21:05                                         ` Emanuel Berg
2019-04-04 12:51                                           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=865zrw55gm.fsf@zoho.eu \
    --to=moasenwood@zoho.eu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.