Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Deadlock when receiving kill-signal from child process



On Mon, Aug 10, 2015 at 6:59 PM, Bart Schaefer wrote:
}
} So apparently on Mathias's platform, passing -g plus not passing -O is
} not sufficient to actually enable debugging symbols.

For me "-Wall -Wmissing-prototypes -ggdb" are selected as CFLAGS by
configure. I have tried to play around with the optimization flag
(-O), but I'm seeing weird results.

With -O0 I get the same kind of output as before

With -O1 and -O2:

#0  0x00007fff8abf95da in syscall_thread_switch ()
#1  0x00007fff853a982d in _OSSpinLockLockSlow ()
#2  0x00007fff896e1635 in szone_force_lock ()
#3  0x00007fff896e15e6 in _malloc_fork_prepare ()
#4  0x00007fff82cb8097 in fork ()
#5  0x0000000103e15f6d in parsecmd ()
#6  0x0000000103e199a3 in execcmd ()
#7  0x0000000103e148db in execpline ()
#8  0x0000000103e13cfe in execlist ()
#9  0x0000000103e13b02 in execlist ()
#10 0x0000000103e17d3c in execcmd ()
#11 0x0000000103e1767e in execrestore ()
#12 0x0000000103e6037d in paramsubst ()
#13 0x0000000103e5f5e8 in paramsubst ()
#14 <signal handler called>
Cannot access memory at address 0x90

With just -O:

#0  0x00007fff8abf95da in syscall_thread_switch ()
#1  0x00007fff853a982d in _OSSpinLockLockSlow ()
#2  0x00007fff896e1635 in szone_force_lock ()
#3  0x00007fff896e15e6 in _malloc_fork_prepare ()
#4  0x00007fff82cb8097 in fork ()
#5  0x0000000104edac5a in doshfunc ()
#6  0x0000000104eded31 in execcmd ()
#7  0x0000000104ed94f4 in getoutput ()
#8  0x0000000104ed88db in execpline ()
#9  0x0000000104ed86d2 in execpline ()
#10 0x0000000104edcbf4 in execcmd ()
#11 0x0000000104edc54c in execcmd ()
#12 0x0000000104f34ba2 in dowatch ()
#13 0x0000000104f33c27 in lchdir ()
#14 0x0000000104f3349c in addunprintable ()
#15 <signal handler called>
Cannot access memory at address 0x90



Messages sorted by: Reverse Date, Date, Thread, Author