Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#5510 closed defect (duplicate)

make check failed util/sscanf stack smashing detected

Reported by: keb Owned by:
Priority: Medium Milestone:
Component: Core Tor/Tor Version: Tor: 0.2.3.13-alpha
Severity: Keywords: test stack smashing tor-relay
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

tor 2.3.13-alpha compiled successfully on debian lenny with

libevent-2.0.18

configure --disable-largefile --enable-linker-hardening --enable-gcc-hardening --enable-gcc-warnings --with-libevent-dir=/usr/local/lib

transcript of test follows

Making check in src
make[1]: Entering directory `/home/keb/tor-0.2.3.13-alpha/src'
Making check in common
make[2]: Entering directory `/home/keb/tor-0.2.3.13-alpha/src/common'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/keb/tor-0.2.3.13-alpha/src/common'
Making check in or
make[2]: Entering directory `/home/keb/tor-0.2.3.13-alpha/src/or'
make[2]: Leaving directory `/home/keb/tor-0.2.3.13-alpha/src/or'
Making check in test
make[2]: Entering directory `/home/keb/tor-0.2.3.13-alpha/src/test'
make check-TESTS
make[3]: Entering directory `/home/keb/tor-0.2.3.13-alpha/src/test'
buffers: OK
buffer_copy: OK
onion_handshake: OK
circuit_timeout: OK
policies: OK
rend_fns: OK
geoip: OK
stats: [forking] OK
socks/4_unsupported_commands: [forking] OK
socks/4_supported_commands: [forking] OK
socks/5_unsupported_commands: [forking] OK
socks/5_supported_commands: [forking] OK
socks/5_no_authenticate: [forking] OK
socks/5_auth_before_negotiation: [forking] OK
socks/5_authenticate: [forking] OK
socks/5_authenticate_with_data: [forking] OK
addr/basic: OK
addr/ip6_helpers: OK
crypto/formats: OK
crypto/rng: OK
crypto/aes_AES: [forking] OK
crypto/aes_EVP: [forking] OK
crypto/sha: OK
crypto/pk: OK
crypto/dh: OK
crypto/s2k: OK
crypto/aes_iv_AES: [forking] OK
crypto/aes_iv_EVP: [forking] OK
crypto/base32_decode: OK
container/smartlist_basic: OK
container/smartlist_strings: OK
container/smartlist_overlap: OK
container/smartlist_digests: OK
container/smartlist_join: OK
container/bitarray: OK
container/digestset: OK
container/strmap: OK
container/pqueue: OK
container/order_functions: OK
util/time: OK
util/config_line: OK
util/config_line_quotes: OK
util/config_line_comment_character: OK
util/config_line_escaped_content: OK
util/expand_filename: OK
util/strmisc: OK
util/pow2: OK
util/gzip: OK
util/datadir: OK
util/mempool: OK
util/memarea: OK
util/control_formats: OK
util/mmap: OK
util/threads: OK
util/sscanf: * stack smashing detected *: ./test terminated
======= Backtrace: =========
/lib/i686/cmov/libc.so.6(fortify_fail+0x48)[0x405d0d38]
/lib/i686/cmov/libc.so.6(
fortify_fail+0x0)[0x405d0cf0]
./test[0x4021f3d4]
./test[0x400aa24f]
./test[0x40022fb1]
./test[0x400c55c9]
./test[0x400c5925]
./test[0x400c6066]
./test(main+0x2cc)[0x400232c5]
/lib/i686/cmov/libc.so.6(libc_start_main+0xe5)[0x404ee455]
./test[0x40009fa1]
======= Memory map: ========
40000000-40287000 r-xp 00000000 08:05 28492411 /home/keb/tor-0.2.3.13-alpha/src/test/test
40287000-40289000 r-xp 00286000 08:05 28492411 /home/keb/tor-0.2.3.13-alpha/src/test/test
40289000-4028e000 rwxp 00288000 08:05 28492411 /home/keb/tor-0.2.3.13-alpha/src/test/test
4028e000-40290000 rwxp 4028e000 00:00 0
40290000-402aa000 r-xp 00000000 08:05 12484717 /lib/ld-2.7.so
402aa000-402ac000 rwxp 0001a000 08:05 12484717 /lib/ld-2.7.so
402ac000-402ad000 r-xp 402ac000 00:00 0 [vdso]
402ad000-402af000 rwxp 402ad000 00:00 0
402b6000-402ca000 r-xp 00000000 08:05 34131917 /usr/lib/libz.so.1.2.3.3
402ca000-402cb000 rwxp 00013000 08:05 34131917 /usr/lib/libz.so.1.2.3.3
402cb000-402ef000 r-xp 00000000 08:05 12534695 /lib/i686/cmov/libm-2.7.so
402ef000-402f1000 rwxp 00023000 08:05 12534695 /lib/i686/cmov/libm-2.7.so
402f1000-402f2000 rwxp 402f1000 00:00 0
402f2000-4032e000 r-xp 00000000 08:05 11993090 /usr/local/lib/libevent-2.0.so.5.1.6
4032e000-4032f000 rwxp 0003c000 08:05 11993090 /usr/local/lib/libevent-2.0.so.5.1.6
4032f000-40373000 r-xp 00000000 08:05 34161662 /usr/lib/i686/cmov/libssl.so.0.9.8
40373000-40377000 rwxp 00043000 08:05 34161662 /usr/lib/i686/cmov/libssl.so.0.9.8
40377000-404b1000 r-xp 00000000 08:05 34161661 /usr/lib/i686/cmov/libcrypto.so.0.9.8
404b1000-404c7000 rwxp 0013a000 08:05 34161661 /usr/lib/i686/cmov/libcrypto.so.0.9.8
404c7000-404ca000 rwxp 404c7000 00:00 0
404ca000-404d1000 r-xp 00000000 08:05 12534705 /lib/i686/cmov/librt-2.7.so
404d1000-404d3000 rwxp 00006000 08:05 12534705 /lib/i686/cmov/librt-2.7.so
404d3000-404d5000 r-xp 00000000 08:05 12534704 /lib/i686/cmov/libdl-2.7.so
404d5000-404d7000 rwxp 00001000 08:05 12534704 /lib/i686/cmov/libdl-2.7.so
404d7000-404d8000 rwxp 404d7000 00:00 0
404d8000-4062d000 r-xp 00000000 08:05 12534702 /lib/i686/cmov/libc-2.7.so
4062d000-4062e000 r-xp 00155000 08:05 12534702 /lib/i686/cmov/libc-2.7.so
4062e000-40630000 rwxp 00156000 08:05 12534702 /lib/i686/cmov/libc-2.7.so
40630000-40633000 rwxp 40630000 00:00 0
40633000-40648000 r-xp 00000000 08:05 12534711 /lib/i686/cmov/libpthread-2.7.so
40648000-4064a000 rwxp 00014000 08:05 12534711 /lib/i686/cmov/libpthread-2.7.so
4064a000-4064d000 rwxp 4064a000 00:00 0
4064d000-40657000 r-xp 00000000 08:05 12534694 /lib/i686/cmov/libnss_files-2.7.so
40657000-40659000 rwxp 00009000 08:05 12534694 /lib/i686/cmov/libnss_files-2.7.so
40659000-4065a000 ---p 40659000 00:00 0
4065a000-4085a000 rwxp 4065a000 00:00 0
4085a000-4085b000 ---p 4085a000 00:00 0
4085b000-40a5b000 rwxp 4085b000 00:00 0
40a5b000-40a67000 r-xp 00000000 08:05 12484631 /lib/libgcc_s.so.1
40a67000-40a68000 rwxp 0000b000 08:05 12484631 /lib/libgcc_s.so.1
414f7000-4156a000 rwxp 414f7000 00:00 0 [heap]
bfb7d000-bfb92000 rw-p bffeb000 00:00 0 [stack]
/bin/sh: line 5: 7785 Aborted ${dir}$tst
FAIL: test
==================
1 of 1 test failed
==================
make[3]: * [check-TESTS] Error 1
make[3]: Leaving directory `/home/keb/tor-0.2.3.13-alpha/src/test'
make[2]:
* [check-am] Error 2
make[2]: Leaving directory `/home/keb/tor-0.2.3.13-alpha/src/test'
make[1]: * [check-recursive] Error 1
make[1]: Leaving directory `/home/keb/tor-0.2.3.13-alpha/src'
make:
* [check-recursive] Error 1

Child Tickets

Change History (3)

comment:1 Changed 8 years ago by arma

Resolution: duplicate
Status: newclosed

I believe we went back in time and fixed this in #5449.

It also looks like I should get a new alpha out pretty soon or we risk a pile of these duplicate reports.

Thanks!

comment:2 Changed 7 years ago by nickm

Keywords: tor-relay added

comment:3 Changed 7 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.