Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5449 closed defect (fixed)

SIGABRT during unit tests

Reported by: Sebastian Owned by:
Priority: Medium Milestone: Tor: 0.2.3.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-client
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Looks like the additional tests introduced in dbd170f752b422004835def53f84b786f32c9a08 cause a sigabrt during the util/sscanf unit test on my OS X 10.7 machine:

(gdb) run --debug util/sscanf
`/tor/src/test/test' has changed; re-reading symbols.
Starting program: /tor/src/test/test --debug util/sscanf
[info] crypto_global_init(): NOT using OpenSSL engine support.
[notice] No AES engine found; using AES_* functions.
[notice] This OpenSSL has a good implementation of counter mode; using it.
[info] crypto_seed_rng(): Seeding RNG from "/dev/urandom"
[debug] tor_disable_debugger_attach(): Attemping to disable debugger attachment to Tor for unprivileged users.
[debug] parse_dir_server_line(): Trusted 100 dirserver at 128.31.0.39:9131 (9695)
[debug] parse_dir_server_line(): Trusted 111 dirserver at 86.59.21.38:80 (847B)
[debug] parse_dir_server_line(): Trusted 102 dirserver at 194.109.206.212:80 (7EA6)
[debug] parse_dir_server_line(): Trusted 16 dirserver at 82.94.251.203:80 (4A0C)
[debug] parse_dir_server_line(): Trusted 100 dirserver at 216.224.124.114:9030 (F397)
[debug] parse_dir_server_line(): Trusted 100 dirserver at 212.112.245.170:80 (F204)
[debug] parse_dir_server_line(): Trusted 100 dirserver at 193.23.244.244:80 (7BE6)
[debug] parse_dir_server_line(): Trusted 100 dirserver at 208.83.223.34:443 (0AD3)
[debug] parse_dir_server_line(): Trusted 100 dirserver at 171.25.193.9:443 (BD6A)
[info] crypto_seed_rng(): Seeding RNG from "/dev/urandom"
util/sscanf: 
Program received signal SIGABRT, Aborted.
0x00007fff88e4e82a in __kill ()
(gdb) bt
#0  0x00007fff88e4e82a in __kill ()
#1  0x00007fff8ab69b6c in __abort ()
#2  0x00007fff8ab66070 in __stack_chk_fail ()
#3  0x0000000100059e15 in test_util_sscanf () at test_util.c:1500
#4  0x0000000100071712 in testcase_run_bare_ [inlined] () at /tor/src/test/tinytest.c:89
#5  0x0000000100071712 in testcase_run_one (group=0x1001bbcf0, testcase=0x6) at tinytest.c:224
#6  0x00000001000719e2 in tinytest_main (c=1606416624, v=0x7fff5fbff988, groups=0x1001bbcf0) at tinytest.c:347
#7  0x000000010000dc6c in main (c=0, v=0x7fff5fbff960) at test.c:1929

Child Tickets

Change History (6)

comment:1 Changed 8 years ago by Sebastian

Component: - Select a componentTor Client
Milestone: Tor: 0.2.3.x-final

comment:2 Changed 8 years ago by Sebastian

Status: newneeds_review

weasel pointed out a buffer that's too short. Fix is in bug5449 in my repository.

comment:3 Changed 8 years ago by nickm

Resolution: fixed
Status: needs_reviewclosed

Thanks, merged!

comment:4 Changed 8 years ago by arma

Also newly reported as #5510

comment:5 Changed 8 years ago by nickm

Keywords: tor-client added

comment:6 Changed 8 years ago by nickm

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