unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30738: Invalid timezone (tzalloc failure) treated as out-of-memory
@ 2018-03-06 22:53 Valery Ushakov
  0 siblings, 0 replies; 7+ messages in thread
From: Valery Ushakov @ 2018-03-06 22:53 UTC (permalink / raw)
  To: 30738

Emacs 25 treats tzalloc(3) failure as out-of-memory condition.
E.g. when an invalid timezone is specified, it fails to start with:

$ TZ=FOOBAR emacs -nw
emacs: Memory exhausted--use M-x save-some-buffers then exit and restart Emacs


The code in tzlookup() also assumes that tzalloc(3) understands the
direct zone specification in the name/offset format.  I haven't
checked tzcode history, but this support is only a few years old
(around 2014, I'd estimate).  E.g. NetBSD-6 has older tzcode(3) that
doesn't support this feature.  This leads to a lot of "Memory
exhausted" errors when trying to use e.g. vc.el

  "encode-time" (0xffffa2d4)
  "apply" (0xffffa3fc)
  "vc-cvs-parse-entry" (0xffffa718)
  "vc-cvs-registered" (0xffffa9b0)
  "progn" (0xffffab44)
  "if" (0xffffac24)
  "vc-cvs-registered" (0xffffae7c)
  "apply" (0xffffae78)
  "vc-call-backend" (0xffffb188)
  0x1c65360 PVEC_COMPILED
  "mapc" (0xffffb5c8)
  "vc-registered" (0xffffb8d8)
  "vc-backend" (0xffffbbe8)
  "vc-refresh-state" (0xffffbfa0)
  "run-hooks" (0xffffc08c)
  "after-find-file" (0xffffc3b4)
  ...

-uwe





^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <1370cc81-6aea-ed58-fcc0-1adc32f4252c@cs.ucla.edu>]

end of thread, other threads:[~2018-03-19 23:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-06 22:53 bug#30738: Invalid timezone (tzalloc failure) treated as out-of-memory Valery Ushakov
     [not found] <1370cc81-6aea-ed58-fcc0-1adc32f4252c@cs.ucla.edu>
2018-03-11  8:33 ` Paul Eggert
2018-03-12 19:10   ` Valery Ushakov
2018-03-15 16:43     ` Paul Eggert
2018-03-19 16:29       ` Valery Ushakov
2018-03-19 23:55         ` Paul Eggert
2018-03-19 20:24       ` Valery Ushakov

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).