Giter VIP home page Giter VIP logo

Comments (2)

j1ah0ng avatar j1ah0ng commented on September 27, 2024

It seems like something is causing a segfault in the daemon process. Running the daemon by hand:

/Applications/Odourless.app/Contents/Resources/bin $ sudo ./odourless-daemon
[1]    32272 trace trap  sudo ./odourless-daemon

and in a debugger:

/Applications/Odourless.app/Contents/Resources/bin $ lldb odourless-daemon 
(lldb) target create "odourless-daemon"
b main
Current executable set to '/Applications/Odourless.app/Contents/Resources/bin/odourless-daemon' (arm64e).
(lldb) b main
Breakpoint 1: 22 locations.
(lldb) r
Process 32227 launched: '/Applications/Odourless.app/Contents/Resources/bin/odourless-daemon' (arm64e)
Process 32227 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100008e88 odourless-daemon`main
odourless-daemon`main:
->  0x100008e88 <+0>:  pacibsp 
    0x100008e8c <+4>:  sub    sp, sp, #0x1a0            ; =0x1a0 
    0x100008e90 <+8>:  stp    x28, x27, [sp, #0x180]
    0x100008e94 <+12>: stp    x29, x30, [sp, #0x190]
Target 0: (odourless-daemon) stopped.
(lldb) n
Process 32227 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = instruction step over
    frame #0: 0x0000000100008e8c odourless-daemon`main + 4
odourless-daemon`main:
->  0x100008e8c <+4>:  sub    sp, sp, #0x1a0            ; =0x1a0 
    0x100008e90 <+8>:  stp    x28, x27, [sp, #0x180]
    0x100008e94 <+12>: stp    x29, x30, [sp, #0x190]
    0x100008e98 <+16>: add    x29, sp, #0x190           ; =0x190 
Target 0: (odourless-daemon) stopped.

... (next instruction) multiple times ...

(lldb) 
Process 32227 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = instruction step over
    frame #0: 0x0000000100008ed4 odourless-daemon`main + 76
odourless-daemon`main:
->  0x100008ed4 <+76>: bl     0x10000b1f8               ; Log::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
    0x100008ed8 <+80>: sub    x0, x29, #0x38            ; =0x38 
    0x100008edc <+84>: bl     0x1002d86cc               ; ___lldb_unnamed_symbol6485$$odourless-daemon
    0x100008ee0 <+88>: bl     0x1002dcfd8               ; symbol stub for: getuid
Target 0: (odourless-daemon) stopped.
(lldb) 
Process 32227 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2000010051c840)
Note: Possible pointer authentication failure detected.
Found value that failed to authenticate at address=0x10051c840.

    frame #0: 0x000000010000d32c odourless-daemon`___lldb_unnamed_symbol284$$odourless-daemon + 60
odourless-daemon`___lldb_unnamed_symbol284$$odourless-daemon:
->  0x10000d32c <+60>: brk    #0xc472
    0x10000d330 <+64>: add    x9, x16, #0x38            ; =0x38 
    0x10000d334 <+68>: ldr    x8, [x16, #0x38]
    0x10000d338 <+72>: mov    x17, x9
Target 0: (odourless-daemon) stopped.
(lldb) ^D

The log file at /usr/local/var/.odourless_cage/daemon.log is never created.

from odourless.

xiaozhuai avatar xiaozhuai commented on September 27, 2024

duplicated #6

from odourless.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.