Doxygen crashes when creating my package on PPA

Asked by Alexis Wilke

I'm trying to create packages for my project called edhttp which is part of snapcpp.

When it comes time to generate the documentation, it runs Doxygen and it results in a crash.

  [ 10%] Generating edhttp-doc-1.0.tar.gz, edhttp-doc-1.0
  cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/doc" && /usr/bin/doxygen /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/doc/edhttp.doxy 1> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/doc/edhttp-doxy.log 2> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/doc/edhttp-doxy.err
  Segmentation fault (core dumped)

Build output can be found here:

https://launchpadlibrarian.net/612489385/buildlog_ubuntu-jammy-amd64.csspp_1.0.31.3~jammy_BUILDING.txt.gz

The build process runs on 4 version of Ubuntu. 21.10 and 22.04 both fail in a similar manner.

edhttp - 1.0.1.7~jammy (changes file) alexis-m2osw 2022-05-22 Published Jammy Utils There were build failures. amd64
edhttp - 1.0.1.7~impish (changes file) alexis-m2osw 2022-05-22 Published Impish Utils There were build failures. amd64
edhttp - 1.0.1.7~focal (changes file) alexis-m2osw 2022-05-22 Published Focal Utils All builds were built successfully.
edhttp - 1.0.1.7~bionic (changes file) alexis-m2osw 2022-05-22 Published Bionic Utils All builds were built successfully.

When I try running doxygen on those versions in a VPS, I do not get any crashes. (i.e. I can't reproduce the crash)

Is there something I can do, outside of not creating the documentation? Since I can't repeat the issue on my systems, I'm not sure how I could try to fix the issue (i.e. could it just be an option in the doxy file or some C++ code which could be tweaked)

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Alexis Wilke
Solved:
Last query:
Last reply:
Revision history for this message
Alexis Wilke (alexis-m2osw) said :
#1

As a side note, I found this entry:

https://github.com/doxygen/doxygen/issues/8750#issuecomment-910039168

which mentions a crash and has a fix. It may or may not be part of the doxygen version used to build on launchpad?

Revision history for this message
Ioana Lasc (ilasc) said :
#2

Hi Alexis

This looks like a versioning issue. Focal and Bionic (which succeed for you) use doxygen 1.8.17-0 and 1.8.13-10. Both Ubuntu Impish and Jammy use doxygen 1.9.1-2 and it seems this is a known issue for this version of doxygen: https://forums.freebsd.org/threads/doxygen-1-9-1-2-failed-to-build-bison-core-dumped.81171/
You could try to define a lower version of doxygen for your builds.

Revision history for this message
Alexis Wilke (alexis-m2osw) said (last edit ):
#3

Nevermind. Doxygen is fine. It's one of my tools that fails. Strange since it works just fine in older versions. Anyway, I'm on my own for that one.

I did not realize that the build was running in parallel... Sorry.