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.
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.
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)
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)
This was on FreeBSD 10/stable amd64, by the way.
upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=782090
Fixed upstream in January: https://github.com/doxygen/doxygen/commit/0f02761a158a5e9ddbd5801682482af8986dbc35#diff-dea13e25f9bbae3ddde44cc615b9c9ba https://bugzilla.gnome.org/show_bug.cgi?id=776791
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 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.
1.8.14 is still not released upstream. Can this patch be committed?
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 on attachment 182254 [details] [patch] add upstream patch for 1.8.13 seg fault regression Approving the patch.
Any committers available?
*** Bug 221840 has been marked as a duplicate of this bug. ***
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
committed, thanks