Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash during Tor.init() #50

Open
robert-virkus opened this issue Sep 16, 2024 · 3 comments
Open

Crash during Tor.init() #50

robert-virkus opened this issue Sep 16, 2024 · 3 comments

Comments

@robert-virkus
Copy link

Hi tor team!

I am trying to run tor on an Android simulator on MacOS and have moved over the example code unmodified into my project.

When calling the "start" button, the simulator crashes with the following stacktrace:

F/libc    ( 7102): Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7aab5d1c09f0 in tid 7194 (1.ui), pid 7102 (partial app package name)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone16k_arm64/emu64a16k:15/AP31.240617.003/12088229:user/dev-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-09-16 15:30:29.003069229+0200
Process uptime: 105s
Page size: 16384 bytes
Cmdline: app package name
pid: 7102, tid: 7194, name: 1.ui  >>> app.package.name <<<
uid: 10197
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x00007aab5d1c09f0
    x0  00007aab5d1c09f0  x1  0000000000000000  x2  0000000000003610  x3  00007aab5d1c09f0
    x4  00007aab5d1c4000  x5  00000000013e4000  x6  00000000000c4f00  x7  00000000014aa9f0
    x8  00000000000009f0  x9  0000000000000001  x10 00007aae36f3b0d0  x11 00007aae36f3b000
    x12 0000000000000001  x13 0000000000000004  x14 ffffffffffffffff  x15 0000000000000035
    x16 00007aae36f25ac0  x17 00007aae36e752c0  x18 00007aaa50158000  x19 00007aae35c07a18
    x20 0000000000004000  x21 00000000000c69f0  x22 00000000000c4f00  x23 00007aab5d1c09f0
    x24 00007aab5d0fbaf0  x25 00007aae298c0108  x26 00007aae298c0040  x27 00000000000c4f00
    x28 00007aae298c00ec  x29 00007aaa50ff1ab0
    lr  00007aae36e08cf0  sp  00007aaa50ff1a30  pc  00007aae36e75348  pst 0000000020001000
10 total frames
backtrace:
      #00 pc 00000000000bd348  /apex/com.android.runtime/bin/linker64 (__dl___memset_aarch64+136) (BuildId: 0dcad91a92430eb69452f6930681f0c8)
      #01 pc 0000000000050cec  /apex/com.android.runtime/bin/linker64 (__dl__ZN9ElfReader4LoadEP20address_space_params+1964) (BuildId: 0dcad91a92430eb69452f6930681f0c8)
      #02 pc 0000000000058320  /apex/com.android.runtime/bin/linker64 (__dl__Z14find_librariesP19android_namespace_tP6soinfoPKPKcmPS2_PNSt3__16vectorIS2_NS8_9allocatorIS2_EEEEmiPK17android_dlextinfobPNS9_IS0_NSA_IS0_EEEE+1052) (BuildId: 0dcad91a92430eb69452f6930681f0c8)
      #03 pc 0000000000061e04  /apex/com.android.runtime/bin/linker64 (__dl__Z9do_dlopenPKciPK17android_dlextinfoPKv+572) (BuildId: 0dcad91a92430eb69452f6930681f0c8)
      #04 pc 0000000000061b24  /apex/com.android.runtime/bin/linker64 (__dl__ZL10dlopen_extPKciPK17android_dlextinfoPKv.__uniq.234527301065430621646263515731762262959+72) (BuildId: 0dcad91a92430eb69452f6930681f0c8)
      #05 pc 0000000000004024  /apex/com.android.runtime/lib64/bionic/libdl.so (dlopen+16) (BuildId: bb1360f0eae574e04d1e293e6681cea3)
      #06 pc 00000000021c2af4  /data/app/~~4g6t9vIWbjyNpLaQc_ODRA==/app.package.name-NKMQxURp8BiQXWLr6TchrQ==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #07 pc 00000000021e00b0  /data/app/~~4g6t9vIWbjyNpLaQc_ODRA==/app.package.name-NKMQxURp8BiQXWLr6TchrQ==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #08 pc 000000000224c490  /data/app/~~4g6t9vIWbjyNpLaQc_ODRA==/app.package.name-NKMQxURp8BiQXWLr6TchrQ==/lib/arm64/libflutter.so (BuildId: 401fddf00828b4e4366640aa543d24715c00b6bd)
      #09 pc 000000000000364c  [anon:dart-code]
Lost connection to device.

Exited.

Is there something I need to do before calling Tor.init()?

Thanks so much in advance!

  • Robert
@robert-virkus
Copy link
Author

By the way, the same code runs on iOS. There it takes around 26 seconds to start tor (in debug mode).

@sneurlax
Copy link
Collaborator

sneurlax commented Oct 3, 2024

Android should work, but I've never ran on/built from macos; I'll have to try that sometime and see if I can reproduce this issue.

@icota
Copy link
Collaborator

icota commented Oct 7, 2024

Hi @robert-virkus, can you check whether #54 fixes this issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants