sidkshatriya / dontbug

Dontbug is a reverse debugger for PHP
Apache License 2.0
702 stars 13 forks source link

dontbug on lxd #11

Closed barl0g closed 6 years ago

barl0g commented 7 years ago

I have a problem with installation on lxd (debian). What is this error?

$ dontbug record --server-listen 192.168.3.23 test/

[FATAL /home/roc/rr/rr/src/RecordSession.cc:1319:handle_signal_event() errno: SUCCESS] 
 (task 24353 (rec:24353) at time 1134)
 -> Assertion `false' failed to hold. Can't defer deterministic or internal signal {signo:SIGSEGV,errno:SUCCESS,code:SEGV_ACCERR,addr:0x7f99b2853080} at ip 0x7f99b4d83934
Launch gdb with 
  gdb '-l' '-1' '-ex' 'target extended-remote :24353' /usr/bin/php7.0
sidkshatriya commented 7 years ago

First you need to make sure rr works. What version of rr are you using?

Does the following work (recording and replaying ls )

rr record ls
rr replay

Are you on a virtual machine? If so what is the hypervisor? Are you on bare metal? Are you on AMD? (AMD does not work)

barl0g commented 7 years ago

Does the following work (recording and replaying ls )

I think so.

(rr) continue
Continuing.
drupal  phpinfo.php  test

Program received signal SIGKILL, Killed.
0x0000000070000002 in ?? ()
(rr)

Are you on a virtual machine?

On privileged LXD container.

Are you on AMD

No. On Intel.

sidkshatriya commented 7 years ago

What version of rr are you on?

barl0g commented 7 years ago
$ rr --version
rr version 4.4.0
sidkshatriya commented 7 years ago

What about trying with rr version 4.5.0 ? https://github.com/mozilla/rr/releases

barl0g commented 7 years ago

Yes, I already tried rr 4.5.0 with the same results. And with rr version 4.3 too.

sidkshatriya commented 7 years ago

What PHP script are you trying to record? Try recording a very very simple script first...

rodion-k commented 7 years ago

Solved for me by disabling opcache