[tex-live] Debugging symbols for binaries

Karl Berry karl at freefriends.org
Thu Jun 9 20:07:45 CEST 2016

Hi Henri - thanks for the suggestion and the links.  I am sympathetic to
the idea, as I have been stymied myself plenty of times on crashes with
various distro-supplied binaries which (of course) have no symbols and
are not feasible to recompile.  (Or useful, as most likely the crash is
not easily reproducible anyway.)  I have the vague impression that
Debian started supplying binaries with symbols in a sibling repo at one
point, but I don't know.

Anyway, back to TL, our standard build process does create the binaries
with symbols; they're only stripped as part of going into the final bin/
directory.  So it should be straightforward to make tarballs of the
debuggable binaries available on the web.  (I don't think it's worth it
to try to include them in the distro or the repo.)

I'll think about it and discuss it with the builders.  Thanks again.

P.S. As for the problem at hand, Akira came up with a patch (below). -k

--- utils.c.orig	Fri Feb 19 11:45:32 2016
+++ utils.c	Mon Jun 06 07:06:49 2016
@@ -870,7 +870,8 @@
     int size, len = 0;          /* to avoid warning about uninitialized use of len */
     boolean found = i < sub_match_count
-        && match_string != NULL && pmatch[i].rm_so >= 0 && i >= 0;
+        && match_string != NULL && pmatch[i].rm_so >= 0 && i >= 0
+        && pmatch[i].rm_eo >= pmatch[i].rm_so;
     if (found) {
         len = pmatch[i].rm_eo - pmatch[i].rm_so;

More information about the tex-live mailing list