Bug 219022 - devel/doxygen: 1.8.13 regression? - segmentation fault
Summary: devel/doxygen: 1.8.13 regression? - segmentation fault
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
: 221840 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-02 21:51 UTC by John Hein
Modified: 2017-11-21 12:52 UTC (History)
3 users (show)

See Also:
cyberbotx: maintainer-feedback+


Attachments
[patch] add upstream patch for 1.8.13 seg fault regression (1.44 KB, patch)
2017-05-02 23:16 UTC, John Hein
cyberbotx: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Hein 2017-05-02 21:51:30 UTC
doxygen 1.8.13 seg faults when run as part of the devel/libftdi1 build (currently 1.3_3).  I don't know if it's bad input or a problem with doxygen.  It does not seg fault when using doxygen 1.8.12.

The input is pretty large, so this is certainly not distilled to a simple test case.  Unless there's a known issue with 1.8.13, that's probably the next step.

# pwd
/usr/ports/devel/libftdi1/work/libftdi1-1.3
# /usr/local/bin/doxygen /usr/ports/devel/libftdi1/work/libftdi1-1.3/Doxyfile.xml
Segmentation fault (core dumped)

To reproduce, install doxygen 1.8.13, then try 'make build WITH=DOCS' in devel/libftdi1.
Comment 1 Naram Qashat 2017-05-02 21:58:12 UTC
Personally, I would suggest contacting doxygen's developers about this. I only maintain the port, I do not do any development on doxygen, so unless it is broken with all ports (which would be found with the exp-run I request when I update the doxygen port), I don't believe there is much I can do about this.
Comment 2 John Hein 2017-05-02 22:04:07 UTC
Simplifying the test case a little bit:

# cat doxyfile
GENERATE_XML=YES
INPUT=/usr/ports/devel/libftdi1/work/libftdi1-1.3/ftdipp
# /usr/local/bin/doxygen doxyfile
 .
 .
Generating file member index...
Generating example index...
finalizing index lists...
writing tag file...
Generating XML output...
Generating XML output for class Ftdi::Context
Segmentation fault (core dumped)
Comment 3 John Hein 2017-05-02 22:18:52 UTC
Even simpler:

% cat doxyfile
GENERATE_XML=YES
INPUT=.
% cat x.hh
/** docs go here */
class A
{
    friend class B;
};
% /usr/local/bin/doxygen doxyfile
 .
 .
Generating example index...
finalizing index lists...
writing tag file...
Generating XML output...
Generating XML output for class A
Segmentation fault (core dumped)
Comment 4 John Hein 2017-05-02 22:22:00 UTC
This was on FreeBSD 10/stable amd64, by the way.
Comment 5 John Hein 2017-05-02 22:52:12 UTC
upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=782090
Comment 7 John Hein 2017-05-02 23:16:36 UTC
Created attachment 182254 [details]
[patch] add upstream patch for 1.8.13 seg fault regression

Patch attached for 1.8.13 until upstream releases 1.8.14.
Bump PORTREVISION.
Comment 8 Naram Qashat 2017-05-02 23:26:39 UTC
Comment on attachment 182254 [details]
[patch] add upstream patch for 1.8.13 seg fault regression

This patch is acceptable until they release the next version.
Comment 9 John Hein 2017-09-07 14:13:51 UTC
1.8.14 is still not released upstream.  Can this patch be committed?
Comment 10 John Hein 2017-09-14 01:26:42 UTC
Comment on attachment 182254 [details]
[patch] add upstream patch for 1.8.13 seg fault regression

Maybe this will get committed if the patch is marked as approved.  Naram, set the maintainer-approval field on the patch to "+".
Comment 11 Naram Qashat 2017-09-14 01:33:51 UTC
Comment on attachment 182254 [details]
[patch] add upstream patch for 1.8.13 seg fault regression

Approving the patch.
Comment 12 John Hein 2017-10-11 02:36:34 UTC
Any committers available?
Comment 13 Tilman Keskinoz freebsd_committer freebsd_triage 2017-11-21 12:31:51 UTC
*** Bug 221840 has been marked as a duplicate of this bug. ***
Comment 14 commit-hook freebsd_committer freebsd_triage 2017-11-21 12:50:46 UTC
A commit references this bug:

Author: arved
Date: Tue Nov 21 12:50:27 UTC 2017
New revision: 454607
URL: https://svnweb.freebsd.org/changeset/ports/454607

Log:
  Fix a regression which causes a segfault in the devel/libftdi1 build

  PR:		219022
  Submitted by:	John Hein
  Approved by:	maintainer

Changes:
  head/devel/doxygen/Makefile
  head/devel/doxygen/files/patch-src_xmlgen.cpp
Comment 15 Tilman Keskinoz freebsd_committer freebsd_triage 2017-11-21 12:52:20 UTC
committed, thanks