Opened 10 years ago

Last modified 7 years ago

#1001 closed defect (Fixed)

tor git master from bdd5785f075d89123f6ac8110ea86f31981ae3b1

Reported by: phobos Owned by: nickm
Priority: Low Milestone:
Component: Core Tor/Tor Version: 0.2.1.15-rc
Severity: Keywords:
Cc: phobos, nickm, Sebastian Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Tor from git master ( bdd5785f075d89123f6ac8110ea86f31981ae3b1) crashes with:

Jun 15 23:17:31.845 [Debug] connection_handle_write(): After TLS write of 512: 0 read, 586 written
Jun 15 23:17:31.846 [Debug] connection_or_flush_from_first_active_circuit(): Made a circuit inactive.
Jun 15 23:17:31.847 [Debug] conn_write_callback(): socket 87 wants to write.
Jun 15 23:17:31.847 [Debug] flush_chunk_tls(): flushed 512 bytes, 0 ready to flush, 0 remain.
Jun 15 23:17:31.848 [Debug] connection_handle_write(): After TLS write of 512: 0 read, 586 written
Jun 15 23:17:31.849 [Debug] conn_read_callback(): socket 39 wants to read.
Jun 15 23:17:31.849 [Debug] connection_read_to_buf(): 39: starting, inbuf_datalen 0 (0 pending in tls object). at_most 0.
Jun 15 23:17:31.850 [Debug] connection_read_to_buf(): After TLS read of 0: 0 read, 0 written
Jun 15 23:17:31.850 [Debug] connection_consider_empty_read_buckets(): global relayed read bucket exhausted. Pausing.
Jun 15 23:17:31.851 [Debug] connection_or_process_cells_from_inbuf(): 39: starting, inbuf_datalen 0 (0 pending in tls object).

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000001c
Crashed Thread: 0

Thread 0 Crashed:
0 tor 0x000d36c4 event_base_set + 26
1 tor 0x000d2aae tor_event_new + 78 (compat_libevent.c:119)
2 tor 0x000d2aef tor_evtimer_new + 47 (compat_libevent.c:126)
3 tor 0x0005f312 dns_launch_correctness_checks + 354 (dns.c:1571)
4 tor 0x0006b3b5 second_elapsed_callback + 1093 (main.c:1122)
5 tor 0x000d47a2 event_base_loop + 1087
6 tor 0x0006c712 do_main_loop + 386 (main.c:1454)
7 tor 0x0006c9ab tor_main + 91 (main.c:2075)
8 tor 0x00001aa2 _start + 216
9 tor 0x000019c9 start + 41

Thread 1:
0 libSystem.B.dylib 0x92d2eb96 recvfrom$NOCANCEL$UNIX2003 + 10
1 tor 0x000439e2 cpuworker_main + 114 (cpuworker.c:244)
2 tor 0x000bde63 tor_pthread_helper_fn + 67 (compat.c:1728)
3 libSystem.B.dylib 0x92d17155 _pthread_start + 321
4 libSystem.B.dylib 0x92d17012 thread_start + 34

Libevent 1.4.11 compiled as a universal binary.

[Automatically added by flyspray2trac: Operating System: OSX 10.5 Leopard]

Child Tickets

Change History (4)

comment:1 Changed 10 years ago by phobos

[23:35:11] < Sebastian_> here we go
[23:35:42] < Sebastian_> event_base_set from libevent 1.4.11 wants a base and an event
[23:35:48] < Sebastian_> we pass it a base that is NULL
[23:36:00] < Sebastian_> it then does Iev->ev_pri = base->nactivequeues/2;
[23:38:21] < Sebastian_> I'm unsure what we really want here
[23:38:36] < Sebastian_> I guess it's possible that the dns.c changes in e5b88dc83f are to blame
[23:42:46] < Sebastian_> hm
[23:44:06] < Sebastian_> I wonder if simply replacing that NULL in dns.c with tor_libevent_get_base() is good enough. Passing NULL doesn't make sense, but

I'm not sure if we want another event base

comment:2 Changed 10 years ago by nickm

Merged sebastian's patch into master as 0caf8dd0b6b047e0cc050837b2eea1746c508a5d. Should be fixed now.

comment:3 Changed 10 years ago by nickm

flyspray2trac: bug closed.

comment:4 Changed 7 years ago by nickm

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