all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0)
@ 2015-11-17  7:57 Michael Heerdegen
  2015-11-17  8:52 ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Heerdegen @ 2015-11-17  7:57 UTC (permalink / raw)
  To: 21936

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


Hello,

when I call eww with any URL, I get

  error in process sentinel: Args out of range: "", 0

This happens with emacs -Q since a few days.

Here is a backtrace:


[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 3719 bytes --]

Debugger entered--Lisp error: (args-out-of-range "" 0)
  aref("" 0)
  (eq 46 (aref (car cur) 0))
  (if (eq 46 (aref (car cur) 0)) (substring (car cur) 1) (car cur))
  (regexp-quote (if (eq 46 (aref (car cur) 0)) (substring (car cur) 1) (car cur)))
  (concat "^.*" (regexp-quote (if (eq 46 (aref (car cur) 0)) (substring (car cur) 1) (car cur))) "$")
  (string-match (concat "^.*" (regexp-quote (if (eq 46 (aref (car cur) 0)) (substring (car cur) 1) (car cur))) "$") host)
  (and (car cur) (string-match (concat "^.*" (regexp-quote (if (eq 46 (aref (car cur) 0)) (substring (car cur) 1) (car cur))) "$") host))
  (if (and (car cur) (string-match (concat "^.*" (regexp-quote (if (eq 46 (aref ... 0)) (substring (car cur) 1) (car cur))) "$") host)) (dolist (cur cookies) (and (if (and (stringp (setq localpart-match (url-cookie-localpart cur))) (stringp localpart)) (string-match (concat "^" (regexp-quote localpart-match)) localpart) (equal localpart localpart-match)) (not (url-cookie-expired-p cur)) (setq retval (cons cur retval)))))
  (while --dolist-tail-- (setq cur (car --dolist-tail--)) (setq cookies (cdr cur)) (if (and (car cur) (string-match (concat "^.*" (regexp-quote (if (eq 46 ...) (substring ... 1) (car cur))) "$") host)) (dolist (cur cookies) (and (if (and (stringp (setq localpart-match ...)) (stringp localpart)) (string-match (concat "^" (regexp-quote localpart-match)) localpart) (equal localpart localpart-match)) (not (url-cookie-expired-p cur)) (setq retval (cons cur retval))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- storage) cur) (while --dolist-tail-- (setq cur (car --dolist-tail--)) (setq cookies (cdr cur)) (if (and (car cur) (string-match (concat "^.*" (regexp-quote (if ... ... ...)) "$") host)) (dolist (cur cookies) (and (if (and (stringp ...) (stringp localpart)) (string-match (concat "^" ...) localpart) (equal localpart localpart-match)) (not (url-cookie-expired-p cur)) (setq retval (cons cur retval))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (dolist (cur storage) (setq cookies (cdr cur)) (if (and (car cur) (string-match (concat "^.*" (regexp-quote (if (eq 46 ...) (substring ... 1) (car cur))) "$") host)) (dolist (cur cookies) (and (if (and (stringp (setq localpart-match ...)) (stringp localpart)) (string-match (concat "^" (regexp-quote localpart-match)) localpart) (equal localpart localpart-match)) (not (url-cookie-expired-p cur)) (setq retval (cons cur retval))))))
  (let ((storage (if secure (append url-cookie-secure-storage url-cookie-storage) url-cookie-storage)) (case-fold-search t) cookies retval localpart-match) (dolist (cur storage) (setq cookies (cdr cur)) (if (and (car cur) (string-match (concat "^.*" (regexp-quote (if ... ... ...)) "$") host)) (dolist (cur cookies) (and (if (and (stringp ...) (stringp localpart)) (string-match (concat "^" ...) localpart) (equal localpart localpart-match)) (not (url-cookie-expired-p cur)) (setq retval (cons cur retval)))))) retval)
  url-cookie-retrieve("www.feiertage.net" "/" nil)
  (let ((cookies (url-cookie-retrieve host localpart secure)) retval chunk) (setq cookies (and cookies (sort cookies (lambda (x y) (> (length (url-cookie-localpart x)) (length (url-cookie-localpart y))))))) (dolist (cur cookies) (setq chunk (format "%s=%s" (url-cookie-name cur) (url-cookie-value cur)) retval (if (and url-cookie-multiple-line (< 80 (+ (length retval) (length chunk) 4))) (concat retval "
\nCookie: " chunk) (if retval (concat retval "; " chunk) (concat "Cookie: " chunk))))) (if retval (concat retval "
\n") ""))
  url-cookie-generate-header-lines("www.feiertage.net" "/" nil)
  url-http-create-request()
  url-http-async-sentinel(#<process www.feiertage.net<2>> "open\n")

[-- Attachment #3: Type: text/plain, Size: 671 bytes --]


BTW, seems a similar error happens in other circumstances, too.


Thanks,

Michael.



In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.2)
 of 2015-11-17
Repository revision: 58e6235007e6761fb9734b942ecff94bf4e9ba68
Windowing system distributor 'The X.Org Foundation', version 11.0.11703000
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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0)
  2015-11-17  7:57 bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0) Michael Heerdegen
@ 2015-11-17  8:52 ` Andreas Schwab
  2015-11-17 10:12   ` Michael Heerdegen
  2015-12-25  5:34   ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Schwab @ 2015-11-17  8:52 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 21936

Michael Heerdegen <michael_heerdegen@web.de> writes:

> when I call eww with any URL, I get
>
>   error in process sentinel: Args out of range: "", 0
>
> This happens with emacs -Q since a few days.
>
> Here is a backtrace:
>
> Debugger entered--Lisp error: (args-out-of-range "" 0)
>   aref("" 0)

You have a cookie with an empty name.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0)
  2015-11-17  8:52 ` Andreas Schwab
@ 2015-11-17 10:12   ` Michael Heerdegen
  2015-11-17 10:49     ` Andreas Schwab
  2015-12-25  5:34   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Michael Heerdegen @ 2015-11-17 10:12 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 21936

Andreas Schwab <schwab@suse.de> writes:

> > Debugger entered--Lisp error: (args-out-of-range "" 0)
> >   aref("" 0)
>
> You have a cookie with an empty name.

Correct.  Deleting that one fixed the problem.

But I guess the fact that this can happen and breaks url means that
there is something to be fixed in Emacs, right?


Michael.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0)
  2015-11-17 10:12   ` Michael Heerdegen
@ 2015-11-17 10:49     ` Andreas Schwab
  2015-11-17 11:52       ` Michael Heerdegen
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2015-11-17 10:49 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 21936

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Andreas Schwab <schwab@suse.de> writes:
>
>> > Debugger entered--Lisp error: (args-out-of-range "" 0)
>> >   aref("" 0)
>>
>> You have a cookie with an empty name.
>
> Correct.  Deleting that one fixed the problem.
>
> But I guess the fact that this can happen and breaks url means that
> there is something to be fixed in Emacs, right?

How did you get that cookie?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0)
  2015-11-17 10:49     ` Andreas Schwab
@ 2015-11-17 11:52       ` Michael Heerdegen
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Heerdegen @ 2015-11-17 11:52 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 21936

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

Andreas Schwab <schwab@suse.de> writes:

> How did you get that cookie?

From using Wikipedia, but something "went wrong" there.

I was visiting a page like

  https://www.wikipedia.org/?search=Dssd

I entered a string in the search field, hit RET, and got an error:


[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 1941 bytes --]

Debugger entered--Lisp error: (error "Could not create connection to .wikipedia.org:443")
  signal(error ("Could not create connection to .wikipedia.org:443"))
  error("Could not create connection to %s:%d" ".wikipedia.org" 443)
  url-http([cl-struct-url "https" nil nil ".wikipedia.org" nil "/wiki/Special:Search?search=dssd&go=Go" nil nil t nil t] eww-render ((:redirect "https://.wikipedia.org/wiki/Special:Search?search=dssd&go=Go") "https://www.wikipedia.org/search-redirect.php?go=Go&family=wikipedia&search=dssd" nil #<buffer *eww*>) nil tls)
  url-https([cl-struct-url "https" nil nil ".wikipedia.org" nil "/wiki/Special:Search?search=dssd&go=Go" nil nil t nil t] eww-render ((:redirect "https://.wikipedia.org/wiki/Special:Search?search=dssd&go=Go") "https://www.wikipedia.org/search-redirect.php?go=Go&family=wikipedia&search=dssd" nil #<buffer *eww*>))
  url-retrieve-internal("https://.wikipedia.org/wiki/Special:Search?search=dssd&go=Go" eww-render ((:redirect "https://.wikipedia.org/wiki/Special:Search?search=dssd&go=Go") "https://www.wikipedia.org/search-redirect.php?go=Go&family=wikipedia&search=dssd" nil #<buffer *eww*>) nil nil)
  url-http-parse-headers()
  url-http-content-length-after-change-function(643 664 21)
  url-http-wait-for-headers-change-function(98 683 585)
  url-http-generic-filter(#<process www.wikipedia.org<1>> "html; charset=utf-8
\nContent-Length: 20
\nConnection: keep-alive
\nX-Powered-By: HHVM/3.6.5
\nLocation: https://.wikipedia.org/wiki/Special:Search?search=dssd&go=Go
\nVary: X-Forwarded-Proto
\nContent-Encoding: gzip
\nX-Varnish: 2774979456, 614302761, 2380896722 2379873777
\nVia: 1.1 varnish, 1.1 varnish, 1.1 varnish
\nAccept-Ranges: bytes
\nAge: 741
\nX-Cache: cp1054 miss (0), cp3013 miss (0), cp3008 frontend hit (4)
\nStrict-Transport-Security: max-age=31536000; includeSubDomains; preload
\nX-Analytics: WMF-Last-Access=17-Nov-2015;https=1
\nX-Client-IP: 90.186.1.190
\n
\n\x1f\213\b

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0)
  2015-11-17  8:52 ` Andreas Schwab
  2015-11-17 10:12   ` Michael Heerdegen
@ 2015-12-25  5:34   ` Lars Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2015-12-25  5:34 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Michael Heerdegen, 21936

Andreas Schwab <schwab@suse.de> writes:

>> Debugger entered--Lisp error: (args-out-of-range "" 0)
>>   aref("" 0)
>
> You have a cookie with an empty name.

I've now changed url-store-cookie so that it refuses to store cookies
with empty names.

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-25  5:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17  7:57 bug#21936: 25.1.50; Can't start eww: (args-out-of-range "" 0) Michael Heerdegen
2015-11-17  8:52 ` Andreas Schwab
2015-11-17 10:12   ` Michael Heerdegen
2015-11-17 10:49     ` Andreas Schwab
2015-11-17 11:52       ` Michael Heerdegen
2015-12-25  5:34   ` Lars Ingebrigtsen

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.