Summary: | =net-misc/tor-0.2.5.1_alpha-r2 'policies' test hangs in smartlist_ensure_capacity at src/common/container.c:72 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | eroen <erikdenstore+gbugs> |
Component: | Current packages | Assignee: | Anthony Basile <blueness> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://trac.torproject.org/projects/tor/ticket/10259 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
eroen
2013-11-17 21:25:43 UTC
Tests run and pass if I add -fno-tree-vrp to CFLAGS (CFLAGS="-march=core2 -O2 -pipe -fno-tree-vrp") gdb backtrace of hanging 'test' process with CFLAGS="-ggdb -O2": falcon ~ # gdb -p 297312 GNU gdb (Gentoo 7.6.1 p1) 7.6.1 Copyright (C) 2013 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-pc-linux-gnu". For bug reporting instructions, please see: <http://bugs.gentoo.org/>. Attaching to process 297312 Reading symbols from /var/tmp/portage/net-misc/tor-0.2.5.1_alpha-r2/work/tor-0.2.5.1-alpha/src/test/test...done. warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? Reading symbols from /usr/lib64/libsandbox.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libsandbox.so Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libz.so.1 Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libm.so.6 Reading symbols from /usr/lib64/libevent-2.0.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libevent-2.0.so.5 Reading symbols from /usr/lib64/libssl.so.1.0.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libssl.so.1.0.0 Reading symbols from /usr/lib64/libcrypto.so.1.0.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libcrypto.so.1.0.0 Reading symbols from /usr/lib64/libseccomp.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libseccomp.so.2 Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Loaded symbols for /lib64/libpthread.so.0 Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/librt.so.1 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x000000000064f399 in smartlist_ensure_capacity (sl=sl@entry=0x1ba4750, size=17) at src/common/container.c:72 72 if (PREDICT_UNLIKELY(size > MAX_CAPACITY/2)) { (gdb) bt #0 0x000000000064f399 in smartlist_ensure_capacity (sl=sl@entry=0x1ba4750, size=17) at src/common/container.c:72 #1 0x000000000064fb1f in smartlist_add (sl=sl@entry=0x1ba4750, element=0x1ba4f90) at src/common/container.c:88 #2 0x00000000005f113c in policy_expand_unspec (policy=policy@entry=0x7fff78d33b28) at src/or/policies.c:136 #3 0x00000000005f16b3 in parse_addr_policy (cfg=0x0, cfg@entry=0x7fff78d33b70, dest=dest@entry=0x7fff78d33c48, assume_action=assume_action@entry=-1) at src/or/policies.c:193 #4 0x00000000005f17a6 in append_exit_policy_string (policy=policy@entry=0x7fff78d33c48, more=more@entry=0x6eb690 "reject *:25,reject *:119,reject *:135-139,reject *:445,reject *:563,reject *:1214,reject *:4661-4666,reject *:6346-6429,reject *:6699,reject *:6881-6999,accept *:*") at src/or/policies.c:835 #5 0x00000000005f1905 in policies_parse_exit_policy (cfg=cfg@entry=0x0, dest=dest@entry=0x7fff78d33c48, ipv6_exit=ipv6_exit@entry=1, rejectprivate=rejectprivate@entry=1, local_address=local_address@entry=0x0, add_default_policy=add_default_policy@entry=1) at src/or/policies.c:978 #6 0x00000000004120a1 in test_policies () at src/test/test.c:696 #7 0x000000000040f8ae in legacy_test_helper (data=<optimized out>) at src/test/test.c:1568 #8 0x0000000000509fb5 in testcase_run_bare_ (testcase=testcase@entry=0x947648 <test_array+200>) at src/ext/tinytest.c:89 #9 0x000000000050a320 in testcase_run_one (group=group@entry=0x947440 <testgroups>, testcase=0x947648 <test_array+200>) at src/ext/tinytest.c:224 #10 0x000000000050a8c7 in tinytest_main (c=c@entry=1, v=v@entry=0x7fff78d33ed8, groups=groups@entry=0x947440 <testgroups>) at src/ext/tinytest.c:347 #11 0x000000000040eb59 in main (c=1, v=0x7fff78d33ed8) at src/test/test.c:1712 (gdb) (gdb) bt #0 0x000000000064f399 in smartlist_ensure_capacity (sl=sl@entry=0x1ba4750, size=17) This is upstream issue https://trac.torproject.org/projects/tor/ticket/10259. Its actually a gcc problem and is fixed in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59358 Thanks for the report! |