[Bug 921577] New: doxygen build failure for Power8 because double free or corruption
http://bugzilla.suse.com/show_bug.cgi?id=921577 Bug ID: 921577 Summary: doxygen build failure for Power8 because double free or corruption Classification: openSUSE Product: openSUSE Factory Version: 201502* Hardware: PowerPC-64 OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: normand@linux.vnet.ibm.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- doxygen build failure for Power8 because double free or corruption === ... [ 241s] Generating docs for compound B/home/abuild/rpmbuild/BUILD/doxygen-1.8.9.1/vhdlparser/TokenManager.h:19: warning: Unsupported xml/html tag <EOF> found [ 248s] *** Error in `./bin/doxygen': double free or corruption (fasttop): 0x000001001077bcf0 *** [ 248s] ======= Backtrace: ========= [ 248s] /lib64/libc.so.6(+0x836c0)[0x3fffa7ec36c0] [ 248s] /lib64/libc.so.6(+0x8ba84)[0x3fffa7ecba84] [ 248s] /lib64/libc.so.6(+0x8cadc)[0x3fffa7eccadc] [ 248s] /lib64/libc.so.6(cfree+0xd0)[0x3fffa7ed0a30] [ 248s] /usr/lib64/libstdc++.so.6(_ZdlPv+0x20)[0x3fffa819ce10] [ 248s] ./bin/doxygen[0x106620e4] [ 248s] ./bin/doxygen[0x1053ba84] [ 248s] ./bin/doxygen[0x1053bb18] [ 248s] ./bin/doxygen[0x106a0a44] [ 248s] /lib64/libpthread.so.0(+0x9454)[0x3fffa8299454] [ 248s] /lib64/libc.so.6(clone+0xe4)[0x3fffa7f4e0c4] ... === detailed log in doxygen_opensuse_ppc64le_failure.log attachment -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #1 from Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #2 from Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #3 from Michel Normand
[CUT] ... $cd open work/openSUSE:Factory:PowerPC/doxygen/ @opensuse_13_2_ppc64le:/home/michel/work/openSUSE:Factory:PowerPC/ doxygen[michel@opensuse_13_2_ppc64le:~/work/openSUSE:Factory:PowerPC/doxygen] $osc build --clean [CUT] ...
note that unable to recreate the failure if manually executing ./bin/doxygen from inside chroot environment. But each time recreating the failure by executing the osc build command. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #4 from Dinar Valeev
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #5 from Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
Mike Wolf
http://bugzilla.suse.com/show_bug.cgi?id=921577
Alexey Kardashevskiy
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #7 from Michel Normand
I could not figure out where you got the sources from
The initial problem was hit with doxygen source code retrieved from OBS environment (using osc command) === osc co openSUSE:Factory:PowerPC doxygen cd doxygen quilt setup doxygen.spec ===
so I tried the latest doxygen git which is 1.8.9.1 as well. The reproduce steps did not work for me either - there is no "tmake/lib/linuxg++/tmake.conf" in doxygen's git (missing a minus in the name); "-fmessage length=0" needs to be "-fmessage-length=0".
With the commands below I get a linker error. What do I miss?
I do not know what is going wrong with your trial. I just did the same git clone as you tried and executed the commands you specified. * I did not have undefined reference error. * I ultimately failed with "double free or corruption" as previously reported. * If that could help I may give you access to my guest (will send private mail) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #8 from Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #9 from Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
Mike Wolf
http://bugzilla.suse.com/show_bug.cgi?id=921577
Petr Gajdos
Nish, We think that there is a race in locking in the kernel. Could you or someone from your team take a look at this
Mike, who is Nish? It would be nice to have this bug reassigned. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
--- Comment #12 from Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c13
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c14
--- Comment #14 from Michel Normand
Sorry for the delay.
I have submitted doxygen 1.8.10 into Factory. Michel, please confirm that it resolve the issue.
Too bad the new version doxygen 1.8.10 do not solve this problem as reported by attachment (doxygen_1810_twppc64le_cpu_1_threads_8_failure.log) The reported failure is now an invalid pointer but still when a glibc function is called by QGlist::takeFirst So very similar to initial call stack. === *** Error in `./build/bin/doxygen': free(): invalid pointer: 0x000001001610d980 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x84c44)[0x3fff9ae74c44] /lib64/libc.so.6(+0x8d298)[0x3fff9ae7d298] /lib64/libc.so.6(cfree+0xd0)[0x3fff9ae822f0] /usr/lib64/libstdc++.so.6(_ZdlPv+0x18)[0x3fff9b16e238] ./build/bin/doxygen(_ZN6QGList9takeFirstEv+0x114)[0x1087d804] ./build/bin/doxygen(_ZN15DotWorkerThread3runEv+0x84)[0x107aba44] ./build/bin/doxygen(_ZN14QThreadPrivate5startEPv+0x144)[0x108cfc04] /lib64/libpthread.so.0(+0x7fb8)[0x3fff9b2c7fb8] /lib64/libc.so.6(clone+0xe4)[0x3fff9af003b4] === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c15
--- Comment #15 from Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c17
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c18
--- Comment #18 from Michel Normand
/dev/null || break; ((idx++)); done ... *** Error in `./build/bin/doxygen': free(): invalid pointer: 0x000001002d262550
======= Backtrace: ========= /lib64/libc.so.6(+0x84b4c)[0x3fff89a54b4c] /lib64/libc.so.6(+0x8d8f8)[0x3fff89a5d8f8] /lib64/libc.so.6(cfree+0xd0)[0x3fff89a62c00] /usr/lib64/libstdc++.so.6(_ZdlPv+0x18)[0x3fff89d5e238] ./build/bin/doxygen(_ZN6QGList9takeFirstEv+0x40)[0x44fc5610] ./build/bin/doxygen(_ZN14DotRunnerQueue7dequeueEv+0x64)[0x44efb3b4] ./build/bin/doxygen(_ZN15DotWorkerThread3runEv+0x68)[0x44efb478] ./build/bin/doxygen(_ZN14QThreadPrivate5startEPv+0xc4)[0x45008704] /lib64/libpthread.so.0(+0x81cc)[0x3fff89eb81cc] /lib64/libc.so.6(clone+0xe4)[0x3fff89ae2184] === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c19
--- Comment #19 from Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c20
--- Comment #20 from Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c21
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c22
Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c23
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c24
Michel Normand
So the double free/corruption doesn't happen, say, for DOT_NUM_THREADS=10?
it would failed (because DOT_NUM_THREADS not 0 or 1) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c25
--- Comment #25 from Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c26
--- Comment #26 from Michel Normand
So wouldn't be better to just hardcode numThreads to 1? That is
- int numThreads = QMIN(32,Config_getInt("DOT_NUM_THREADS")); + int numThreads = 1;
by the patch?
I don't think so. The advantage of the doxygen_ppc64le_ignore_DOT_NUM_THREADS_to_0.patch (1) is that it is sufficient as a bypass for the packages build in OBS (that have config with DOT_NUM_THREADS=0) But we continue to support DOT_NUM_THREADS when using the doxygen command manually for test purpose. (1) https://bugzilla.suse.com/attachment.cgi?id=650515 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c27
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c28
--- Comment #28 from Michel Normand
Okay, submitted to devel:tools/doxygen and ready for submitting to factory. Proceed?
Yes, thank you Petr. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c30
--- Comment #30 from Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c31
Petr Gajdos
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c32
Michel Normand
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c33
--- Comment #33 from Michel Normand
/tmp/doxyen.log 2>&1 || break; ((idx++)); done ... Segmentation fault (core dumped) ===
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=921577
http://bugzilla.suse.com/show_bug.cgi?id=921577#c34
--- Comment #34 from Michel Normand
https://bugzilla.suse.com/show_bug.cgi?id=921577
https://bugzilla.suse.com/show_bug.cgi?id=921577#c37
Michel Normand
https://bugzilla.suse.com/show_bug.cgi?id=921577
Michel Normand
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com