Re: Stopping phix

new topic     » goto parent     » topic index » view thread      » older message » newer message

I'm stumped.

It is exiting gtk_main, but then both a normal exit and abort() just hang, and hang the debugger too.

ps -a shows the process as <defunct> which leads me to https://en.wikipedia.org/wiki/Zombie_process only there's no child/parent relation here at all.

The only other thing I could try is that opAbort is implemented in pStack as

    [ELF64] 
        mov rdi,rax                     -- error_code (p1) 
        mov rax,60                      -- sys_exit(rdi=int error_code) 
        syscall 

whereas exit_thread ended up as

        [ELF64] 
--          xor rbx,rbx  
--          mov rax,60                          -- sys_exit 
--          syscall 
            xor rdi,rdi 
            call "libpthread.so.0","pthread_exit" 

So I'm thinking along those lines for trying glibc/exit(), but I can't remember how/where I ever figured the last line out...
(mind you, even if/when I figure that out, I'm betting it won't change a thing, though https://stackoverflow.com/questions/46903180/syscall-implementation-of-exit suggests it might.)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu