GNU bug report logs - #23290
25.1.50; eww: Symbol’s value as variable is void: url-http-response-status

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Thu, 14 Apr 2016 19:09:02 UTC

Severity: normal

Tags: fixed

Found in version 25.1.50

Fixed in version 26.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23290 in the body.
You can then email your comments to 23290 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Thu, 14 Apr 2016 19:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Heerdegen <michael_heerdegen <at> web.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 Apr 2016 19:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, Tao Fang <fangtao0901 <at> gmail.com>
Subject: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Thu, 14 Apr 2016 21:08:00 +0200
Hello,

since some time, I often get this error when surfing with eww:

  error in process filter:
  url-http-content-length-after-change-function:
  Symbol’s value as variable is void: url-http-response-status

I guess this is related to (sorry if I'm wrong)

  3c623c26ae7d695746e05d8a2e16a67a6256b024
  Author:     Tao Fang <fangtao0901 <at> gmail.com>
  AuthorDate: Mon Apr 4 22:21:21 2016 +0200
  Commit:     Lars Magne Ingebrigtsen <larsi <at> gnus.org>
  CommitDate: Mon Apr 4 22:21:34 2016 +0200
  
  Allow URL using HTTPS proxies using CONNECT

Here is a URL for that I can reproduce the problem:

  https://lite.qwant.com/?t=images&q=test


Thanks,

Michael.



In GNU Emacs 25.1.50.7 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-11 built on drachen
Repository revision: d6ea6453f3d1696b9e6cd0a0222fc77dc646365c
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:	Debian GNU/Linux testing (stretch)

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LC_ALL: de_DE.utf8
  value of $LC_COLLATE: C
  value of $LC_TIME: C
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Fri, 15 Apr 2016 17:21:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tao Fang <fangtao0901 <at> gmail.com>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: bug-gnu-emacs <at> gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Sat, 16 Apr 2016 01:20:20 +0800
Hi, Michael

> I guess this is related to (sorry if I'm wrong)
No, you don't. It's a reasonable doubt. Thanks for your report!

> Here is a URL for that I can reproduce the problem:
>
>   https://lite.qwant.com/?t=images&q=test
I'm assuming the reproduce step of this issue is: using eww open that
url directly after starting up emacs with "emacs -Q" ?

> Configured features:
> XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
> LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
I've noticed that your configure doesn't have "GNUTLS" support, if
you're using "url-proxy-services", it will produce message like "error:
gnutls support needed" in buffer "*Messages*" (which I got when trying
to reproduce this with same configure).

> Repository revision: d6ea6453f3d1696b9e6cd0a0222fc77dc646365c
I've compiled emacs with git commit
d6ea6453f3d1696b9e6cd0a0222fc77dc646365c and configure
"--without-gnutls" but didn't reproduce this.
And I had also tried to set up a proxy
(https://github.com/tinyproxy/tinyproxy), and still no luck with some
simple test.

Can you provide more information about this? With following settings:
    (setq debug-on-error t)
    (setq url-debug 1)
and when the problem occurs, save the content of buffer "*Messages*"
and "*Backtrace*", then paste it here?

There is also a bug report bug#23225, I don't know if it's related to
this commit, but I will try to work it out.

Thanks!

-- 
Emacs/Gnus




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Sat, 16 Apr 2016 14:10:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Tao Fang <fangtao0901 <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Sat, 16 Apr 2016 16:08:48 +0200
Tao Fang <fangtao0901 <at> gmail.com> writes:

> > Here is a URL for that I can reproduce the problem:
> >
> >   https://lite.qwant.com/?t=images&q=test
> I'm assuming the reproduce step of this issue is: using eww open that
> url directly after starting up emacs with "emacs -Q" ?

Yes.

> > Configured features:
> > XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
> > LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
> I've noticed that your configure doesn't have "GNUTLS" support, if
> you're using "url-proxy-services", it will produce message like "error:
> gnutls support needed" in buffer "*Messages*" (which I got when trying
> to reproduce this with same configure).

Maybe my OS (Debian testing) is missing some dev packages?  FWIW, I
don't see this error in the emacs-25 branch.


> > Repository revision: d6ea6453f3d1696b9e6cd0a0222fc77dc646365c
> I've compiled emacs with git commit
> d6ea6453f3d1696b9e6cd0a0222fc77dc646365c and configure
> "--without-gnutls" but didn't reproduce this.  And I had also tried to
> set up a proxy (https://github.com/tinyproxy/tinyproxy), and still no
> luck with some simple test.

AFAICT, there is nothing special with my system, since I don't know much
about such stuff.  I'm not using a proxy.

> Can you provide more information about this? With following settings:
>     (setq debug-on-error t)
>     (setq url-debug 1)
> and when the problem occurs, save the content of buffer "*Messages*"
> and "*Backtrace*", then paste it here?

Sure, I have to bootstrap master for that again (I'm currently not
working with master since it has some more bugs bothering me too much).

> There is also a bug report bug#23225, I don't know if it's related to
> this commit, but I will try to work it out.

Ok, will have a look.


Regards,

Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Sat, 16 Apr 2016 17:15:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Tao Fang <fangtao0901 <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Sat, 16 Apr 2016 19:14:19 +0200
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Maybe my OS (Debian testing) is missing some dev packages?  FWIW, I
> don't see this error in the emacs-25 branch.

I have installed libgnutls28-dev now (I tried to install libgnutls-dev,
but failed due to conflicts).

Anyway, I rebuilt master.  configure said gnutls is supported now, and
the bug doesn't occur with the new build any more.

Does it still make sense to debug master with libgnutls28-dev
deinstalled?


Thanks,

Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Sat, 16 Apr 2016 17:20:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tao Fang <fangtao0901 <at> gmail.com>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: bug-gnu-emacs <at> gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Sun, 17 Apr 2016 01:19:01 +0800
[Message part 1 (text/plain, inline)]
Hi, Michael

After some digging, I found a code bug in commit
3c623c26ae7d695746e05d8a2e16a67a6256b024 introduced by me and maybe
relavant to your report.

lisp/url/url-http.el:

  1319	(defun url-https-proxy-after-change-function (st nd length)
......
  1327	      (url-http-parse-response)
  1328	      (cond
......
  1360	       (t
  1361	        (url-http-activate-callback)
  1362	        (message "error response: %d" url-http-response-status))))))
......

When using url-http in eww and the above "cond" last clause succeed
(i.e. at first connecting to proxy response not HTTP 200), "url-http-activate-callback" will call
function "eww-render" which calls (kill-buffer), so the code next line
visit symbol url-http-response-status will cause the error: "Symbol’s
value as variable is void: url-http-response-status".

This can be fixed simplely transpose that two code lines:
[0001-fix-void-variable-url-http-response-status.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
Can you help to apply the patch and test on that in your environment?

And I'm not sure about this, because only using https proxy will enter
this function(if I do it right?), I still need to find out about it.

Thanks for your help!

-- 
Emacs/Gnus

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Sat, 16 Apr 2016 18:13:01 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Tao Fang <fangtao0901 <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Sat, 16 Apr 2016 20:11:58 +0200
Tao Fang <fangtao0901 <at> gmail.com> writes:

> Can you help to apply the patch and test on that in your environment?
>
> And I'm not sure about this, because only using https proxy will enter
> this function(if I do it right?), I still need to find out about it.

You made me distrustful.  I have rebuilt master (without your patch) and
with the gnutls dev lib deinstalled (to get to the original environment
where I had discovered the problem) - and the problem is gone.  The
function you changed in your patch is not called at all.

Dunno what is different from some days ago.  Either there is a
difference with that url, or the daily upgrades of my Debian testing are
related (For what it's worth, for two days or so Emacs was building with
Lucid instead of Gtk, now, it builds with Gtk again.  I didn't specify
any configure options.  So a relation to my OS seems not preempted to
me.)

Hmm.  Anything more I can do?


Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Tue, 19 Apr 2016 16:42:01 GMT) Full text and rfc822 format available.

Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tao Fang <fangtao0901 <at> gmail.com>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: bug-gnu-emacs <at> gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Wed, 20 Apr 2016 00:41:06 +0800
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Tao Fang <fangtao0901 <at> gmail.com> writes:
>
> You made me distrustful.  I have rebuilt master (without your patch) and
> with the gnutls dev lib deinstalled (to get to the original environment
> where I had discovered the problem) - and the problem is gone.  The
> function you changed in your patch is not called at all.

Yes, it won't trigger in your case (not using proxy), but it's a bug, I
think it should be fixed ASAP.

@Lars Ingebrigtsen: Can you help to check and push the fix to trunk?

> Dunno what is different from some days ago.  Either there is a
> difference with that url, or the daily upgrades of my Debian testing are
> related (For what it's worth, for two days or so Emacs was building with
> Lucid instead of Gtk, now, it builds with Gtk again.  I didn't specify
> any configure options.  So a relation to my OS seems not preempted to
> me.)

Back to the error message you provided in the beginning, the reason was
simlar to the above(I think?).

Maybe anybody familiar with this can help?

> Hmm.  Anything more I can do?

Here is my suggestion:
    (setq debug-on-error t)
    (setq url-debug 1)
    and when the problem occurs, save the content of buffer "*Messages*"
    and "*Backtrace*"
With more information, this bug can be located more quickly.

Thanks for your help!

-- 
Emacs/Gnus




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Tue, 19 Apr 2016 18:23:01 GMT) Full text and rfc822 format available.

Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Tao Fang <fangtao0901 <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: 25.1.50; eww: Symbol’s value as variable is
 void: url-http-response-status
Date: Tue, 19 Apr 2016 20:21:39 +0200
Tao Fang <fangtao0901 <at> gmail.com> writes:

> > Hmm.  Anything more I can do?
>
> Here is my suggestion:
>     (setq debug-on-error t)
>     (setq url-debug 1)
>     and when the problem occurs, save the content of buffer "*Messages*"
>     and "*Backtrace*"
> With more information, this bug can be located more quickly.

When the problem occurs the next time, I'll do this.

For the next days however, I'll not use the master branch (until the
nasty org time stamp bug has been fixed).


Thanks,

Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23290; Package emacs. (Mon, 25 Apr 2016 23:26:01 GMT) Full text and rfc822 format available.

Message #29 received at 23290 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Tao Fang <fangtao0901 <at> gmail.com>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, 23290 <at> debbugs.gnu.org
Subject: Re: bug#23290: 25.1.50; eww: Symbol’s value as
 variable is void: url-http-response-status
Date: Tue, 26 Apr 2016 01:25:11 +0200
Tao Fang <fangtao0901 <at> gmail.com> writes:

> -        (url-http-activate-callback)
> -        (message "error response: %d" url-http-response-status))))))
> +        (message "error response: %d" url-http-response-status)
> +        (url-http-activate-callback))))))

Thanks; applied to the trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 25 Apr 2016 23:26:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.2, send any further explanations to 23290 <at> debbugs.gnu.org and Michael Heerdegen <michael_heerdegen <at> web.de> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 25 Apr 2016 23:26:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 24 May 2016 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:11 GMT) Full text and rfc822 format available.

bug Marked as fixed in versions 26.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:11 GMT) Full text and rfc822 format available.

bug No longer marked as fixed in versions 25.2. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:11 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 01 Jan 2017 12:24:26 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 172 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.