After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 712795 - segmentation fault in memberdef.cpp
segmentation fault in memberdef.cpp
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.5-GIT
Other Mac OS
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-11-21 10:53 UTC by Daniel Gröndal
Modified: 2013-12-24 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Suggested patch. (403 bytes, patch)
2013-11-21 10:53 UTC, Daniel Gröndal
none Details | Review

Description Daniel Gröndal 2013-11-21 10:53:51 UTC
Created attachment 260412 [details] [review]
Suggested patch.

When trying to generate documentation for objective-c I get a segmentation fault in memberdef.cpp.

Running doxygen in gdb it seems the faulting line is memberdef.cpp:812.


if (m_impl->enumFields)
  {
    MemberListIterator mli(*m_impl->redefinedBy); // <- error here
    MemberDef *md;
    for (mli.toFirst();(md=mli.current());++mli)
    {
      result->insertEnumField(md);
    }
  }

Seems like a typo. Changing the line to:

MemberListIterator mli(*m_impl->enumFields);

seems to fix my segmentation fault and I do get, as far as I can see, correct documentation. I am not sure about the purposed fix since I am not sure on exactly what the code is supposed to do.

I used sha 58058025a8357dcba0da4be0f6c3ddfec8c37839 from repo.
Comment 1 Dimitri van Heesch 2013-11-23 13:50:11 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2013-12-24 19:00:04 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.6. 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 (preferrably in the form of a self-contained example).