This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: texlive-install: core dumped
- From: "Helmut Karlowski" <helmut dot karlowski at ish dot de>
- To: cygwin at cygwin dot com
- Date: Sun, 30 Jun 2013 13:50:19 +0200
- Subject: Re: texlive-install: core dumped
- References: <op dot wzfrolroofd6j1 at nebbiolo dot upc dot de> <51CEC839 dot 507 at cornell dot edu> <op dot wzfwtr0wofd6j1 at nebbiolo dot upc dot de> <51CEE558 dot 6070104 at cornell dot edu> <op dot wzgaely4ofd6j1 at nebbiolo dot upc dot de> <51CF2925 dot 2060804 at cornell dot edu> <op dot wzggt0qzofd6j1 at nebbiolo dot upc dot de> <51CF63C4 dot 4070001 at cornell dot edu> <op dot wzgxhts2ofd6j1 at nebbiolo dot upc dot de> <51CF9918 dot 5020602 at cornell dot edu>
Ken Brown, 30.06.2013 04:34:00:
it later. Is there a database of all styles, fonts etc. for all
texlive-packages?
Does http://cygwin.com/packages/ give you what you're looking for? Or
maybe you want texlive.tlpdb, available at
http://www.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg
Not very comfortable, but better than nothing :)
If you want to try debugging this with gdb, the texlive-debuginfo
package contains the files you need.
Thanks! Found the bug:
In
texk/web2c/luatexdir/lua/loslibext.c:649
In
632 static void find_env(lua_State * L)
633 {
634 char *envitem, *envitem_orig;
(gdb)
635 char *envkey;
636 char **envpointer;
637 envpointer = environ;
638 lua_getglobal(L, "os");
639 if (envpointer != NULL && lua_istable(L, -1)) {
640 luaL_checkstack(L, 2, "out of stack space");
641 lua_pushstring(L, "env");
642 lua_newtable(L);
643 while (*envpointer) {
644 /* TODO: perhaps a memory leak here */
(gdb)
645 luaL_checkstack(L, 2, "out of stack space");
646 envitem = xstrdup(*envpointer);
647 envitem_orig = envitem;
648 envkey = envitem;
649 while (*envitem != '=') {
650 envitem++;
651 }
652 *envitem = 0;
653 envitem++;
654 lua_pushstring(L, envkey);
(gdb)
655 lua_pushstring(L, envitem);
656 lua_rawset(L, -3);
657 envpointer++;
658 free(envitem_orig);
659 }
660 lua_rawset(L, -3);
661 }
662 lua_pop(L, 1);
663 }
It crashes in line 649, because my shell put an item without '=' in the
environment, and there is no 0-check in find_env(), which appears to be a
good thing. Fixed.
--
Helmut Karlowski
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple