[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #20424 [Core Tor/Tor]: Make test fails when --enable-openbsd-malloc is used



#20424: Make test fails when --enable-openbsd-malloc is used
--------------------------------+-----------------
     Reporter:  icanhasaccount  |      Owner:
         Type:  defect          |     Status:  new
     Priority:  Low             |  Milestone:
    Component:  Core Tor/Tor    |    Version:
     Severity:  Minor           |   Keywords:
Actual Points:                  |  Parent ID:
       Points:                  |   Reviewer:
      Sponsor:                  |
--------------------------------+-----------------
 When tor is built with --enable-openbsd-malloc running 'make test'
 consumes 100% of the CPU. Attaching a debugger to the process shows it
 looping forever in calloc (src/ext/OpenBSD_malloc_Linux.c). Changing from
 -O2 to -O3 (or -O1) in the Makefile "fixes" (as in the tests run) the
 issues so it seems to be a compiler bug.

 Some more details:
 Debian testing, x86_64

 $ gcc -v
 Using built-in specs.
 COLLECT_GCC=gcc
 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
 Target: x86_64-linux-gnu
 Configured with: ../src/configure -v --with-pkgversion='Debian 6.2.0-6'
 --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-
 languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
 --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared
 --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
 --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/
 --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-
 vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
 --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-
 java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home
 --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-
 dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-
 directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-
 objc-gc --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-
 multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-
 checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
 --target=x86_64-linux-gnu
 Thread model: posix
 gcc version 6.2.0 20161010 (Debian 6.2.0-6)

 I've attached the output of objdump for the failing and working object
 files, but I'm too stupid to debug it any further, so hopefully someone
 more intelligent can.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20424>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs