Re: [tor-bugs] #21045 [Core Tor/Tor]: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4

2017-02-16 Thread Tor Bug Tracker & Wiki
#21045: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4
+--
 Reporter:  downie  |  Owner:
 Type:  defect  | Status:  closed
 Priority:  Medium  |  Milestone:  Tor: unspecified
Component:  Core Tor/Tor|Version:  Tor: 0.2.9.8
 Severity:  Normal  | Resolution:  wontfix
 Keywords:  OSX Tiger 10.4  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+--
Changes (by nickm):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:   => Tor: unspecified


Comment:

 Probably not the redundant declarations business -- more likely, openssl
 has started relying on some GCC feature that gcc-4.0 got wrong.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21045 [Core Tor/Tor]: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4

2016-12-21 Thread Tor Bug Tracker & Wiki
#21045: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4
+--
 Reporter:  downie  |  Owner:
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:
Component:  Core Tor/Tor|Version:  Tor: 0.2.9.8
 Severity:  Normal  | Resolution:
 Keywords:  OSX Tiger 10.4  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+--

Comment (by downie):

 Compiling with gcc-4.2 worked (I was prompted to disable 'stack
 protection' whatever that is (What does it protect it from? Bears?) so
 hope that's ok). Something in the new Tor is incompatible with gcc-4.0.
 Something to do with those 'redundant declarations'?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21045 [Core Tor/Tor]: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4

2016-12-21 Thread Tor Bug Tracker & Wiki
#21045: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4
+--
 Reporter:  downie  |  Owner:
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:
Component:  Core Tor/Tor|Version:  Tor: 0.2.9.8
 Severity:  Normal  | Resolution:
 Keywords:  OSX Tiger 10.4  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+--

Comment (by downie):

 I don't know what would be the 'right' flags - the CFLAGS above were given
 to me by someone on the mailing list, and have worked for every previous
 version.
  My previous Tor was 0.2.8.9; it worked with and was compiled with this
 openssl 1.0.2j_0.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21045 [Core Tor/Tor]: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4

2016-12-21 Thread Tor Bug Tracker & Wiki
#21045: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4
+--
 Reporter:  downie  |  Owner:
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:
Component:  Core Tor/Tor|Version:  Tor: 0.2.9.8
 Severity:  Normal  | Resolution:
 Keywords:  OSX Tiger 10.4  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+--

Comment (by nickm):

 I am afraid I don't know!  Honestly, this is something that I don't
 personally have the hardware to test. It looks like OPENSSL is doing
 something questionable in  OPENSSL_ppc64_probe that triggers an exception
 from your CPU, but I don't know enough about PPC assembly and
 compatibility to figure out what it might be.

 Maybe try compiling your own openssl to see if that helps?

 Oh.  And when you build Tor with "make V=1", do the compiler flags look
 right for PPC?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21045 [Core Tor/Tor]: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4

2016-12-21 Thread Tor Bug Tracker & Wiki
#21045: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4
+--
 Reporter:  downie  |  Owner:
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:
Component:  Core Tor/Tor|Version:  Tor: 0.2.9.8
 Severity:  Normal  | Resolution:
 Keywords:  OSX Tiger 10.4  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+--

Comment (by downie):

 Openssl is MacPorts 1.0.2j_0 - the latest. Do you suggest going back a
 version? Will I need to recompile Tor?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21045 [Core Tor/Tor]: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4

2016-12-21 Thread Tor Bug Tracker & Wiki
#21045: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4
+--
 Reporter:  downie  |  Owner:
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:
Component:  Core Tor/Tor|Version:  Tor: 0.2.9.8
 Severity:  Normal  | Resolution:
 Keywords:  OSX Tiger 10.4  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+--

Comment (by nickm):

 OSX 10.4 on PPC, huh?  Wow!

 These two together make me think that your openssl might be doing
 something weird:
 {{{
 Exception:  EXC_BAD_INSTRUCTION (0x0002)
 }}}

 {{{
 Thread 0 Crashed:
 0   libcrypto.1.0.0.dylib   0x0120a4e0 OPENSSL_ppc64_probe + 0
 1   libcrypto.1.0.0.dylib   0x0120a744 OPENSSL_cpuid_setup + 196
 }}}

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

[tor-bugs] #21045 [Core Tor/Tor]: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4

2016-12-20 Thread Tor Bug Tracker & Wiki
#21045: Silent crash at 80% Bootstrap Tor 0.2.9.8 OSX10.4
--+
 Reporter:  downie|  Owner:
 Type:  defect| Status:  new
 Priority:  Medium|  Milestone:
Component:  Core Tor/Tor  |Version:  Tor: 0.2.9.8
 Severity:  Normal|   Keywords:  OSX Tiger 10.4
Actual Points:|  Parent ID:
   Points:|   Reviewer:
  Sponsor:|
--+
 Since upgrading to Tor 0.2.9.8, Tor crashes on my OSX10.4 machine at 80%
 bootstrap.
 Some debug-level lines:
 {{{
 Dec 20 23:58:45.000 [notice] Bootstrapped 80%: Connecting to the Tor
 network
 ...
 Dec 20 23:58:46.000 [info] connection_ap_make_link(): Making internal
 direct tunnel to [scrubbed]:443 ...
 Dec 20 23:58:46.000 [debug] connection_add_impl(): new conn type Socks,
 socket -1, address (Tor_internal), n_conns 5.
 Dec 20 23:58:46.000 [info] connection_ap_make_link(): ... application
 connection created and linked.
 Dec 20 23:58:46.000 [debug] connection_add_impl(): new conn type
 Directory, socket -1, address 195.154.164.243, n_conns 6.
 }}}

  Those are the last four entries in the log.
 This is a bridge/client, with some exit node restrictions: torrc
 {{{
 ControlPort 9051
 ExcludeNodes
 
Qwerty,freeMe69,JustANode,AIVD,MIVD,afe5ab469c027cf3deec72ae6873ba62ae735414,dc914d754b27e1a0f196330bec599bc9d640f30c
 ExitPolicy reject *:*
 HashedControlPassword 16:xxx
 Nickname xxx
 ORPort auto
 ExtORPort auto
 BridgeRelay 1
 ServerTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
 StrictNodes 1
 ExcludeExitNodes {gb}
 }}}

 It was compiled thusly:
 {{{
 $ unset LDFLAGS
 $ CFLAGS="-O -g -mmacosx-version-min=10.4 -arch ppc"
 $ ./configure --prefix=/Library/Tor --with-libevent-dir=/opt/local --with-
 openssl-dir=/opt/local --disable-dependency-tracking CC="gcc-4.0"
 $ make
 }}}

  I noticed lots of warnings about shadow declarations and implicit
 truncation from 64 bit to 32 bit.

 Console.log says (and this looks more like the time I started Tor rather
 than when it crashed):
 {{{
 Dec 20 23:42:25 Power-Mac-G4 crashdump[2083]: tor crashed
 Dec 20 23:42:25 Power-Mac-G4 crashdump[2083]: crash report written to:
 /Users/tor/Library/Logs/CrashReporter/tor.crash.log
 }}}

 {{{
 Host Name:  xx
 Date/Time:  2016-12-20 23:42:13.859 +
 OS Version: 10.4.11 (Build 8S165)
 Report Version: 4

 Command: tor
 Path:/usr/bin/tor
 Parent:  bash [2081]

 Version: ??? (???)

 PID:2082
 Thread: 0

 Exception:  EXC_BAD_INSTRUCTION (0x0002)
 Code[0]:0x0002
 Code[1]:0x0120a4e0


 Thread 0 Crashed:
 0   libcrypto.1.0.0.dylib   0x0120a4e0 OPENSSL_ppc64_probe + 0
 1   libcrypto.1.0.0.dylib   0x0120a744 OPENSSL_cpuid_setup + 196
 2   libcrypto.1.0.0.dylib   0x012a6724
 OPENSSL_add_all_algorithms_noconf + 20
 3   tor 0x00121360 crypto_early_init + 64
 (crypto.c:3355)
 4   tor 0x493c tor_init + 188 (main.c:2782)
 5   tor 0x5e30 tor_main + 80 (main.c:3461)
 6   tor 0x2250 main + 16 (tor_main.c:35)
 7   tor 0x1e4c _start + 760
 8   tor 0x1b50 start + 48

 Thread 0 crashed with PPC Thread State 64:
   srr0: 0x0120a4e0 srr1: 0x0208f030
 vrsave: 0x
 cr: 0x24000222  xer: 0x0004   lr:
 0x0120a744  ctr: 0x900019c0
 r0: 0x   r1: 0xb1b0   r2:
 0x001a   r3: 0x
 r4: 0x   r5: 0x0120a738   r6:
 0x01365d98   r7: 0x00ff
 r8: 0x01365d84   r9: 0xf927  r10:
 0x000e  r11: 0x22000222
r12: 0x900019c0  r13: 0x  r14:
 0x  r15: 0x
r16: 0x  r17: 0x  r18:
 0x  r19: 0x
r20: 0xb884  r21: 0x000c  r22:
 0x  r23: 0x
r24: 0x  r25: 0x000c  r26:
 0x00201330  r27: 0xb8b8
r28: 0xb884  r29: 0xb320  r30:
 0x0136a688  r31: 0x0120a688

 Binary Images Description:
 0x1000 -   0x1f5fff tor /usr/bin/tor
   0x607000 -   0x618fff libz.1.dylib/opt/local/lib/libz.1.dylib
   0x61c000 -   0x64efff libevent-2.0.5.dylib
 /opt/local/lib/libevent-2.0.5.dylib
   0x65b000 -   0x6abfff libssl.1.0.0.dylib
 /opt/local/lib/libssl.1.0.0.dylib
  0x1205000 -  0x1351fff libcrypto.1.0.0.dylib
 /opt/local/lib/libcrypto.1.0.0.dylib
 0x8fe0 - 0x8fe52fff dyld 46.16  /usr/lib/dyld
 0x9000 - 0x901bcfff libSystem.B.dylib   /usr/lib/libSystem.B.dylib
 0x90214000 - 0x90219fff libmathCommon.A.dylib