Opened 3 years ago

Closed 3 years ago

#17646 closed defect (fixed)

Core dump on "gmake test" NetBSD tracking tor_development git tree

Reported by: yancm Owned by:
Priority: Medium Milestone: Tor: 0.2.8.x-final
Component: Core Tor/Tor Version: Tor: unspecified
Severity: Blocker Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Nov 20 05:35:16.476 [notice] Tor v0.2.8.0-alpha-dev (git-35bfd782eae29646) running on NetBSD with Libevent 2.1.5-beta, OpenSSL 1.1.0-dev and Zlib 1.2.3.

# gmake test
gmake all-am
gmake[1]: Entering directory '/usr/local/src/tor'
gmake[1]: Leaving directory '/usr/local/src/tor'
./src/test/test
onion_handshake: OK
bad_onion_handshake: OK
onion_queues: OK
ntor_handshake: OK
circuit_timeout: Memory fault (core dumped)
Makefile:7070: recipe for target 'test' failed
gmake: * [test] Error 139
#

I tried running gdb on tor, but here was output, so not sure what core dumped.
# gdb src/or/tor test.core
GNU gdb (GDB) 7.3.1
Reading symbols from /usr/local/src/tor/src/or/tor...done.
[New process 1]
Core was generated by `test'.
Program terminated with signal 11, Segmentation fault.
#0 0xbbb932b1 in ?? ()
(gdb)

Child Tickets

Attachments (1)

0001-Initialize-libevent-before-periodic-events.patch (1.1 KB) - added by cypherpunks 3 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by nickm

Milestone: Tor: 0.2.8.x-final
Severity: NormalBlocker

comment:2 Changed 3 years ago by cypherpunks

Status: newneeds_review

The periodic events initialization code depends on libevent being initialized. In the circuit_timeout test this was not the case. Attached is a patch for review.

Last edited 3 years ago by cypherpunks (previous) (diff)

comment:3 Changed 3 years ago by nickm

Resolution: fixed
Status: needs_reviewclosed

Merged; thanks!

Note: See TracTickets for help on using tickets.