[MacPorts] #53974: Dvips on macOS 10.12.4 exits with trap 6 building asymptote 2.41 documentation

classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: Dvips on macOS 10.12.4 exits with trap 6 building asymptote 2.41 documentation

MacPorts
#53974: Dvips on macOS 10.12.4 exits with trap 6 building asymptote 2.41
documentation
--------------------------------------+----------------------
  Reporter:  slewsys                  |      Owner:  drkp
      Type:  defect                   |     Status:  assigned
  Priority:  Normal                   |  Milestone:
 Component:  ports                    |    Version:
Resolution:                           |   Keywords:
      Port:  texlive-basic asymptote  |
--------------------------------------+----------------------

Comment (by mojca):

 In that case I suspect some issue that's really specific to the latest
 compiler, potentially also related to `gs`. Note that `dvips` from MacTeX
 2016 has been compiled on 10.6 with gcc 4.2, so a different stdlib is
 being used.

 Asymptote is also reported to be broken in some aspects after being
 compiled on Yosemite.

 It wouldn't be the first time: #43728.

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6 (was: Dvips on macOS 10.12.4 exits with trap 6 building asymptote 2.41 documentation)

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------
Changes (by ryandesign):

 * cc: petermichor (added)
 * keywords:   => sierra
 * port:  texlive-basic asymptote => texlive-basic


Comment:

 Has duplicate #54126.

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------

Comment (by diochnos):

 Just to add a small related comment, which may give an additional hint.

 There appears to be a similar issue with dvipdf: it generates a pdf file,
 but the resulting pdf document is empty (one empty white page). This
 behavior started after upgrading to the latest Xcode version (8.3.32 /
 around April 19, or earlier). For example, you can try `dvipdf Bode_.dvi`
 with the file provided above.

 Actually I have subscribed to this thread when my real issue is the dvipdf
 command.

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------

Comment (by brunoomartin):

 dvips still exits with Abort trap: 6 after recompiling the texlive-basic
 @41271_0+doc with Xcode 8.3.2 on OSX 10.12.5 on a MPB mid 2015

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------
Changes (by slewsys):

 * Attachment "dvips.patch" added.

 Patch texk/dvipsk/color.c.  Fixes ticket #53974

--
Ticket URL: <https://trac.macports.org/ticket/53974>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------

Comment (by slewsys):

 Attachment fixes dvips SIGABRT when divps compiled with clang compiler.
 Caused by bad pointer declaration, most likely a typo.  TODO: submit up-
 stream as needed.

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------

Comment (by mojca):

 The patch above points to the right direction, but doesn't seem to be
 entirely correct. Here's a revised patch written by Akira Kakuto. Can you
 please test that one?
 {{{
 #!diff
 --- texk/dvipsk/color.c.orig
 +++ texk/dvipsk/color.c
 @@ -37,7 +37,7 @@
     struct colorpage *next;
     integer boploc; /* we use the bop loc as a page indicator */
     char *bg;
 -   char colordat[2];
 +   char *colordat;
  } *colorhash[COLORHASH];
  static char *cstack, *csp, *cend, *bg;
  /*
 @@ -84,6 +84,7 @@
     for (i=0; i<COLORHASH; i++) {
        for (p=colorhash[i]; p; p = q) {
           q = p->next;
 +         free(p->colordat);
           free(p);
        }
        colorhash[i] = 0;
 @@ -216,7 +217,8 @@
        }
     } else {
        p = (struct colorpage *)mymalloc((integer)
 -                  (strlen(cstack) + sizeof(struct colorpage) +
 MAXCOLORLEN));
 +                  (sizeof(struct colorpage)));
 +      p->colordat = mymalloc(strlen(cstack) + MAXCOLORLEN + 2);
        p->next = colorhash[h];
        p->boploc = pageloc;
        strcpy(p->colordat, cstack);
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------

Comment (by slewsys):

 Replying to [comment:18 mojca]:
 > The patch above points to the right direction, but doesn't seem to be
 entirely correct. Here's a revised patch written by Akira Kakuto. Can you
 please test that one?

 Akira's patch is correct.  Separately allocating/freeing colordat isn't
 actually necessary, but colordat  should probably be a single pointer, not
 a pair.

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------

Comment (by drkp):

 Seems to work fine with the texlive 2017 update I am working on. (I
 haven't tested it with the version in the regular ports tree yet; need to
 switch back to that first)

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts
In reply to this post by MacPorts
#53974: texlive-basic: dvips exits with trap 6
----------------------------+--------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:  fixed          |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+--------------------
Changes (by drkp):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"ba3b0b2ac1bc2fca3326fa7d9bfd2e97f9b06d6a/macports-ports"
 ba3b0b2ac1bc2fca3326fa7d9bfd2e97f9b06d6a/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="ba3b0b2ac1bc2fca3326fa7d9bfd2e97f9b06d6a"
 texlive-bin: fix dvips crash
 Closes: https://trac.macports.org/ticket/53974
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS
12