bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *** buffer overflow detected ***: [...]/bin/lilypond terminated


From: Knut Petersen
Subject: Re: *** buffer overflow detected ***: [...]/bin/lilypond terminated
Date: Thu, 30 Nov 2017 15:04:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Am 30.11.2017 um 12:47 schrieb David Kastrup:
Sounds like the problem in this particular case happens when calling
Ghostscript.
Yes. From strace output:

[...]
26820 write(2, "Konvertierung nach >>tmplily.pdf"..., 38) = 38
[...]
26820 clone(child_stack=NULL, 
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f6473a33a10) = 26821
[...]
26821 execve("/bin/sh", ["/bin/sh", "/home/knut/bin/gs", "-q", "-dNOSAFER", "-dEPSCrop", "-dCompatibilityLevel=1.4", "-dNOPAUSE", 
"-dBATCH", "-r1200", "-sDEVICE=pdfwrite", "-dAutoRotatePages=/None", "-sOutputFile=tmplily.pdf", "-c.setpdfwrite", "-ftmplily.eps"], [...]) = 0
26820 <... read resumed> "", 8)         = 0
26820 close(1027 <unfinished ...>
26821 brk(NULL)                         = 0x55bbcd041000
26820 <... close resumed> )             = 0
26821 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 
<unfinished ...>
26820 open("/dev/tty", O_RDWR|O_NOCTTY|O_NONBLOCK <unfinished ...>
26821 <... mmap resumed> )              = 0x7ff0e6394000
26820 <... open resumed> )              = 1027
26821 access("/etc/ld.so.preload", R_OK <unfinished ...>
26820 writev(1027, [{iov_base="*** ", iov_len=4}, {iov_base="buffer overflow detected", iov_len=24}, 
{iov_base=" ***: ", iov_len=6}, {iov_base="/home/knut/sources/lilybuilt/bin"..., iov_len=41}, {iov_base=" 
terminated\n", iov_len=12}], 5 <unfinished ...>
26821 <... access resumed> )            = -1 ENOENT (No such file or directory)
[...]
26820 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=26820, 
si_uid=1000} ---

I'll start gdb to find the exact place of the problem.
Part of the problem is that lualatex keeps all pdf files that are include via 
\includegraphics open, so reaching 1023 open files is possible.
xelatex behaves differently - it does not keep files included by 
\includegraphics open.
That sounds like something that would be worth reporting to the LuaTeX
developers.

Yes.

Knut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]