Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.8.13 Regression] Segfault building the breathe docs (Origin: bugzilla #776791) #6135

Closed
doxygen opened this issue Jul 2, 2018 · 0 comments

Comments

@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity major in component general for ---
Reported in version 1.8.13 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2017-01-03 06:44:07 +0000, Matthias Klose wrote:

Created attachment 342744
failing example

[forwarded from https://bugs.debian.org/849991]

doxygen 1.8.13 segfaults building the breathe docs (examples). Works with 1.8.12.

$ gdb --args doxygen tinyxml.cfg
GNU gdb (Debian 7.12-4) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from doxygen...Reading symbols from /usr/lib/debug/.build-id/2c/5b57e61012c209a82ea5c47759da68b259573c.debug...done.
done.
(gdb) r

< snip many warnings >

Program received signal SIGSEGV, Segmentation fault.
generateXMLForMember (md=md@entry=0x555556902930, ti=..., t=..., def=def@entry=0x55555696bee0) at ./src/xmlgen.cpp:623
623 ./src/xmlgen.cpp: No such file or directory.
(gdb) bt

0 generateXMLForMember (md=md@entry=0x555556902930, ti=..., t=..., def=def@entry=0x55555696bee0) at ./src/xmlgen.cpp:623

1 0x0000555555a6eb99 in generateXMLSection (d=d@entry=0x55555696bee0, ti=..., t=..., ml=ml@entry=0x5555569536d0, kind=0x555555ddbc9d "friend",

header=header@entry=0x0, documentation=0x0) at ./src/xmlgen.cpp:1066

2 0x0000555555a706de in generateXMLForClass (cd=0x55555696bee0, ti=...) at ./src/xmlgen.cpp:1390

3 0x0000555555a747f4 in generateXML () at ./src/xmlgen.cpp:1919

4 0x0000555555812ce2 in generateOutput () at ./src/doxygen.cpp:11590

5 0x00005555557c69ae in main (argc=2, argv=0x7fffffffeb68) at ./src/main.cpp:38

On 2017-01-03 17:52:32 +0000, albert wrote:

I had a quick look in the source code and it looks like that the change on September 21, 2016 for bug_771152 is causing the problem.
The line:
if (al->refQualifier!=RefQualifierNone)
should probably read:
if (a1!=0 && al->refQualifier!=RefQualifierNone)
See also line 612 in the same file.

Can you confirm this?

On 2017-01-03 17:53:55 +0000, albert wrote:

a1 should read al in the above:
if (al!=0 && al->refQualifier!=RefQualifierNone)

On 2017-01-03 21:55:18 +0000, Graham Inggs wrote:

Thanks Albert! That change worked for me with breathe and also with gyoto [1] where I found a similar problem.

[1] http://gyoto.obspm.fr/

On 2017-01-04 11:27:07 +0000, albert wrote:

I've just pushed a proposed patch to github (pull request 555)

On 2017-01-06 08:48:03 +0000, albert wrote:

Code has been integrated on github.

On 2017-02-24 19:57:12 +0000, Dimitri van Heesch wrote:

*** Bug 777941 has been marked as a duplicate of this bug. ***

On 2017-05-02 23:00:11 +0000, John Hein wrote:

*** Bug 782090 has been marked as a duplicate of this bug. ***

On 2017-05-04 17:55:19 +0000, Dimitri van Heesch wrote:

*** Bug 782121 has been marked as a duplicate of this bug. ***

On 2017-12-25 18:43:56 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.14. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant (preferably in the form of a self-contained example).

@doxygen doxygen closed this as completed Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant