all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23424@debbugs.gnu.org
Subject: bug#23424: 25.0.93; error in process sentinel with Melpa added to package-archives
Date: Mon, 02 May 2016 16:22:28 +0000	[thread overview]
Message-ID: <CAFyQvY1fau+dyL5VUpfnH8Ko_5BABAfjPyC=R4Xj=RnNUvm5jw@mail.gmail.com> (raw)
In-Reply-To: <8337q0mpe7.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2868 bytes --]

>
> Given the cause of the problem, how would you wish to improve the
> error message?
>
>   Thread 1 hit Breakpoint 3, Fsignal (error_symbol=20888, data=0) at
> eval.c:1471
>   1471        = (NILP (error_symbol) ? Fcar (data) : error_symbol);
>   $44 = 20888
>   $45 = (struct Lisp_Symbol *) 0x2b2ad00 <lispsym+20888>
>   "end-of-file"
>   (gdb) bt
>   #0  Fsignal (error_symbol=20888, data=0) at eval.c:1471
>


>   Lisp Backtrace:
>   "read-from-string" (0x82d6a0)
>   0x62aa770 PVEC_COMPILED
>   "apply" (0x82de30)
>   "url-http-activate-callback" (0x82e400)
>   "url-http-end-of-document-sentinel" (0x82e9b0)
>   "url-http-async-sentinel" (0x82ef98)
>   (gdb) frame 20
>   #20 0x0126427b in Fread_from_string (string=-9223372036748765968,
> start=0,
>       end=0) at lread.c:2073
>   2073      ret = read_internal_start (string, start, end);
>   (gdb) p string
>   $46 = -9223372036748765968
>   (gdb) xstring
>   $47 = (struct Lisp_String *) 0x65194f0
>   0
>

Hi Eli, I don't have C coding experience to be able to provide an answer
that makes sense or is practically possible. I was just curious to know if
it were possible to add more info to the process sentinel error message..

So here's my try at a suggestion on how that error message could possible
be improved:

For instance.. an action to fetch an XYZ url was started. But for whatever
reason (like empty string detection), that XYZ url fetch action was
incomplete. So may be the error said: Unable to fetch XYZ url (instead of
providing the lower level error of empty string to the user).

But then again, how do we define what's upper level and what's lower level
error? :)

I aim to just brain-storm on possible error message improvement. Hope this
helps.

Thanks for replicating the error in gdb. Without you paraphrasing what that
backtrace meant, I wouldn't have known what to make out of that long
backtrace.

I tried a brief attempt at recreating the same, but it didn't work.. I got
the "error in process filter" to happen in emacs, but the gdb interface
just showed this:

=====

Temporary breakpoint 2 at 0x578c80: file sysdep.c, line 915.
(gdb) r -Q
Starting program: /home/kmodi/downloads/git/emacs/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffed75f700 (LWP 9860)]

(emacs:9848): GLib-GIO-CRITICAL **: g_settings_schema_source_lookup:
assertion 'source != NULL' failed

break Fsignal

bt

=====

I was expecting the (gdb) prompt to show up where I could type "break
Fsignal" (I am assuming that's how you set breakpoint at Fsignal?). But it
didn't.. looks like that prompt was lost after "GLib-GIO-CRITICAL **:
g_settings_schema_source_lookup: assertion 'source != NULL' failed" showed
up.

( I am totally exposing my level of experience with gdb and C debug with
that :))
-- 

-- 
Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 3999 bytes --]

  parent reply	other threads:[~2016-05-02 16:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-02 15:19 bug#23424: 25.0.93; error in process sentinel with Melpa added to package-archives Kaushal Modi
2016-05-02 15:49 ` Eli Zaretskii
2016-05-02 15:54   ` Robert Pluim
2016-05-02 16:23     ` Eli Zaretskii
2016-05-02 16:22   ` Kaushal Modi [this message]
2016-05-02 16:41     ` Kaushal Modi
2016-05-02 16:54       ` Kaushal Modi
2016-05-02 16:58       ` Eli Zaretskii
2016-05-02 17:22         ` Kaushal Modi
2016-05-02 20:19           ` Eli Zaretskii
2016-05-02 20:51             ` Kaushal Modi
2016-05-02 22:05               ` Kaushal Modi
2016-05-02 23:18                 ` Kaushal Modi
2016-05-03 14:59                   ` Eli Zaretskii
2016-05-03 15:12                 ` 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='CAFyQvY1fau+dyL5VUpfnH8Ko_5BABAfjPyC=R4Xj=RnNUvm5jw@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=23424@debbugs.gnu.org \
    --cc=eliz@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.