#65814 closed defect (fixed)

doxygen causes build error in xmtooling on PPC with Bus error (familiar malloc errors)

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, rosetta, snowleopard Cc:
Port: doxygen

Description

Another case of malloc errors with Doxygen, just reporting:

:info:build SRCDIR='.' PROJECT='xmltooling' DOCDIR='doc/api' VERSION='3.2.1' PERL_PATH='/opt/local/bin/perl' HAVE_DOT='YES' DOT_PATH='/opt/local/bin' GENERATE_MAN='NO' GENERATE_RTF='NO' GENERATE_XML='NO' GENERATE_HTMLHELP='NO' GENERATE_CHI='NO' GENERATE_HTML='YES' GENERATE_LATEX='NO' /opt/local/bin/doxygen ./doxygen.cfg
:info:build doxygen(14752) malloc: *** error for object 0xa0f15754: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0xa0f157c4: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build warning: Tag 'USE_WINDOWS_ENCODING' at line 11 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'DETAILS_AT_TOP' at line 33 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'SHOW_DIRECTORIES' at line 70 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'COLS_IN_ALPHA_INDEX' at line 133 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'HTML_ALIGN_MEMBERS' at line 144 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'XML_SCHEMA' at line 191 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'XML_DTD' at line 192 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'PERL_PATH' at line 225 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'CLASS_DIAGRAMS' at line 229 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'MAX_DOT_GRAPH_WIDTH' at line 245 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build warning: Tag 'MAX_DOT_GRAPH_HEIGHT' at line 246 of file './doxygen.cfg' has become obsolete.
:info:build          To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
:info:build doxygen(14752) malloc: *** error for object 0x13b22c0: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b1928: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b1890: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b18dc: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b17c8: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b16a0: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b15c0: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b1630: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b14f8: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b2200: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b2380: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b238c: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build doxygen(14752) malloc: *** error for object 0x13b23a8: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug

:info:build make[2]: *** [doc/api/xmltooling.tag] Bus error
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_xmltooling/xmltooling/work/xmltooling-3.2.1'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_xmltooling/xmltooling/work/xmltooling-3.2.1'
:info:build make: *** [all] Error 2

Attachments (1)

xmltooling_10.5.8.log (1.8 MB) - added by barracuda156 19 months ago.
So just to document the issue, same error on 10.5.8

Download all attachments as: .zip

Change History (12)

comment:2 Changed 20 months ago by kencu (Ken)

Port: doxygen added; xmltooling removed
Summary: xmltooling fails on Rosetta with Bus error (familiar malloc errors)doxygen causes build error in xmtooling on Rosetta with Bus error (familiar malloc errors)

comment:3 Changed 20 months ago by kencu (Ken)

where is the original ticket for this doxygen issue? I don't seem to be able to find it right now...

comment:4 in reply to:  3 Changed 20 months ago by barracuda156

Replying to kencu:

where is the original ticket for this doxygen issue? I don't seem to be able to find it right now...

To be honest I am not sure we had a dedicated Doxygen ticket for that.

I never heard if you tried redirecting the doxygen bins.

I think I tried and could not make it work that time, but I will try again. This error is getting rather annoying indeed, and no one knows when Iaian gets time to fix libstdc++.

comment:5 Changed 20 months ago by kencu (Ken)

Yes indeed -- it's been broken nearly 5 years now, and only getting worse as more software won't build with the good-old-not-broken gcc-4.2/apple-gcc42 combo.

The more software that gets forced to gcc7+, the more breakage we can expect to see.

Changed 19 months ago by barracuda156

Attachment: xmltooling_10.5.8.log added

So just to document the issue, same error on 10.5.8

comment:6 Changed 19 months ago by barracuda156

Summary: doxygen causes build error in xmtooling on Rosetta with Bus error (familiar malloc errors)doxygen causes build error in xmtooling on PPC with Bus error (familiar malloc errors)

comment:7 in reply to:  5 Changed 19 months ago by barracuda156

Replying to kencu:

Yes indeed -- it's been broken nearly 5 years now, and only getting worse as more software won't build with the good-old-not-broken gcc-4.2/apple-gcc42 combo.

The more software that gets forced to gcc7+, the more breakage we can expect to see.

I think your solution works. I will confirm it now with xmltooling – with imlib2 it worked! https://trac.macports.org/ticket/65770

comment:8 in reply to:  3 Changed 19 months ago by barracuda156

Replying to kencu:

Yes, fixed! Thank you very much. Opening a PR for Doxygen.

comment:9 Changed 19 months ago by kencu (Ken)

and now (sigh) to undo all those places where docs were disabled because of this, and revbump all those ports…

comment:10 in reply to:  9 Changed 19 months ago by barracuda156

Replying to kencu:

and now (sigh) to undo all those places where docs were disabled because of this, and revbump all those ports…

I can track those. AFAIR, not many were there. At least, now this hopefully gonna work.

  1. S. I definitely prefer doing less work with the same output than more :) So same error is not gonna be repeated.

comment:11 Changed 19 months ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In bc5a40ac27e0454062963ea3ac196d6de4dfbfad/macports-ports (master):

doxygen: redirect_bins to fix malloc errors with gcc
Fixes: #65814
Fixes: #65770

Note: See TracTickets for help on using tickets.