Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Akira Kakuto

I have tested tcsh, ksh and bash and all fail to show the problem.


It seems to depend on the version of xelatex.fmt.

Best,
Akira




--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Philip Taylor


On 01/02/2017 20:21, Apostolos Syropoulos wrote:
> Hello,
> 
> I have tested tcsh, ksh and bash and all fail to show the problem.

I am confused.  Is there any suggestion that any of these are implicated ?  I 
understood
that it was a misbehaviour by XeLaTeX, caused (perhaps) by a package change, 
and for
which Akira-san has already identified a source-level (XeTeX source) 
work-around.

Philip Taylor


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Apostolos Syropoulos
Hello,

I have tested tcsh, ksh and bash and all fail to show the problem.

$ tcsh --version
tcsh 6.18.01 (Astron) 2012-02-14 (amd64-sun-solaris) options 
wide,nls,dl,al,kan,rh,color,filec
$ tcsh 
> echo x | xelatex \\showthe\\everyjob
This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2017/dev) (preloaded 
format=xelatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
> \typeout {\fmtname \space <\fmtversion >}\typeout {Babel <3.9l> and hyphenati
on patterns for 79 languages loaded.}.
<*> \showthe\everyjob

? No pages of output.
> exit
$ ksh --version

version sh (AT Research) 93t+ 2010-03-05
$ ksh 
$:…sources/BACKUP/utils/fontforge$ echo x | xelatex \\showthe\\everyjob
This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2017/dev) (preloaded 
format=xelatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
> \typeout {\fmtname \space <\fmtversion >}\typeout {Babel <3.9l> and hyphenati
on patterns for 79 languages loaded.}.
<*> \showthe\everyjob

? No pages of output.


Even if I change 

xelatex \\showthe\\everyjob

to 


xelatex \showthe\everyjob

I do not see the problem.

A.S.
--
Apostolos Syropoulos
Xanthi, Greece



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Philip Taylor
Then it may be a feature, it may be a bug -- I have no way of knowing, as I 
have no familiarity with command-line interpreters other than those for VMS and 
Windows.

Philip Taylor

On 01/02/2017 19:41, Apostolos Syropoulos wrote:
>> I would imagine that something in your command-line interpreter
>> is silently absorbing naked back-slashes ...
>>
> 
> I am using:
> 
> GNU bash, version 4.3.46(1)-release (i386-pc-solaris2.11)
>  --
> Apostolos Syropoulos
> Xanthi, Greece
> 


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Apostolos Syropoulos
> I would imagine that something in your command-line interpreter
> is silently absorbing naked back-slashes ...
> 

I am using:

GNU bash, version 4.3.46(1)-release (i386-pc-solaris2.11)
 --
Apostolos Syropoulos
Xanthi, Greece


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Philip Taylor


On 01/02/2017 18:10, Apostolos Syropoulos wrote:

> You mean something like this:

> $ echo x | xelatex \showthe\everyjob
> This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2017/dev) (preloaded 
> format=xelatex)
> restricted \write18 enabled.
> entering extended mode
> ! I can't find file `showtheeveryjob'.

I would imagine that something in your command-line interpreter
is silently absorbing naked back-slashes ...


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Apostolos Syropoulos
>>
>> I was able to replicate it under TeX Live 2016 but only after
> de-duplicating the back-slashes.
>> 

You mean something like this:



$ echo x | xelatex \showthe\everyjob
This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2017/dev) (preloaded 
format=xelatex)
restricted \write18 enabled.
entering extended mode
! I can't find file `showtheeveryjob'.
<*> showtheeveryjob

(Press Enter to retry, or Control-D to exit)
Please type another input file name: 
(/usr/local/texlive/2015/texmf-dist/tex/latex/tools/x.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.

 

A.S.
--
Apostolos Syropoulos
Xanthi, Greece


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Hironobu Yamashita
2017-02-01 13:59 GMT+09:00 Akira Kakuto :
>
> In r43113 in TeX Live SVN, I have changed texmfmp.c a little:
>
> in order to avoid the crash. The change must not give bad effects.
> It is not a fix but a stopgap for the problem.
>

I confirmed the fix after rebuild. Thank you.


2017-02-01 23:18 GMT+09:00 Philip Taylor :
>
>> $ echo x | xelatex \\showthe\\everyjob
>
> I was able to replicate it under TeX Live 2016 but only after de-duplicating 
> the back-slashes.
>

You are right. On windows a back-slash don't need to be escaped.
The MWE I posted was for my Mac OS ;-)

Hironobu Yamashita


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Philip Taylor


On 01/02/2017 14:09, Apostolos Syropoulos wrote:

>>> $ echo x | xelatex \\showthe\\everyjob
>>>
>>> This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2016)
> 
> I cannot reproduce this error:
> 
> $ echo x | xelatex \\showthe\\everyjob

I was able to replicate it under TeX Live 2016 but only after de-duplicating 
the back-slashes.
Philip Taylor


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-02-01 Thread Apostolos Syropoulos
>> $ echo x | xelatex \\showthe\\everyjob
>>
>> This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2016)

I cannot reproduce this error:

$ echo x | xelatex \\showthe\\everyjob

This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2017/dev) (preloaded 
format=xelatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
> \typeout {\fmtname \space <\fmtversion >}\typeout {Babel <3.9l> and 
> hyphenation patterns for 79 languages loaded.}.
<*> \showthe\everyjob

? No pages of output.

 

I am still using an old LaTeX

A.S.
--
Apostolos Syropoulos
Xanthi, Greece


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-01-31 Thread Akira Kakuto

I encountered the following situation with xelatex.

$ echo x | xelatex \\showthe\\everyjob

This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2016)


In r43113 in TeX Live SVN, I have changed texmfmp.c a little:

--- texmfmp.c.origMon Nov 14 16:21:07 2016
+++ texmfmp.cWed Feb 01 13:27:04 2017
@@ -2818,6 +2818,8 @@
  unsigned bytesToWrite = 0;
  poolpointer len, i, j;
  string name;
+  if (strstart[s + 1 - 65536L] < strstart[s - 65536L])
+return NULL;
  len = strstart[s + 1 - 65536L] - strstart[s - 65536L];
  name = xmalloc(len * 3 + 1); /* max UTF16->UTF8 expansion
  (code units, not bytes) */

in order to avoid the crash. The change must not give bad effects.
It is not a fix but a stopgap for the problem.

Best,
Akira



--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] error: can't allocate region with xelatex

2017-01-31 Thread Akira Kakuto

I encountered the following situation with xelatex.

$ echo x | xelatex \\showthe\\everyjob

This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2016)


It seems that in the given example,
s = 0 and len < 0 in the following:

/* texmfmp.c */
2815: string
2816: gettexstring (strnumber s)
2817: {
2818:   unsigned bytesToWrite = 0;
2819:   poolpointer len, i, j;
2820:   string name;
2821:   len = strstart[s + 1 - 65536L] - strstart[s - 65536L];
2822:   name = xmalloc(len * 3 + 1); /* max UTF16->UTF8 expansion
2823:  (code units, not bytes) */

Best,
Akira



--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


[XeTeX] error: can't allocate region with xelatex

2017-01-30 Thread Hironobu Yamashita
Hello,

I encountered the following situation with xelatex.

$ echo x | xelatex \\showthe\\everyjob

This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2016)
(preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2017/01/01> patch level 1
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
> \typeout {\fmtname \space <\fmtversion > patch level \patch@level }\typeout {
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.}.
<*> \showthe\everyjob

? xelatex(45131) malloc: *** mmap(size=18446744073636376576) failed
(error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
fatal: memory exhausted (xmalloc of 18446744073636373502 bytes).
No pages of output.

I also tested with the latest TeX Live svn (2017/dev), and
it gave the same result. On Windows, the message
"xelatex.exe has stopped working" appeared.

I'm not sure if this is really a problem, but just in case...

Regards,
Hironobu Yamashita


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex