{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/rr/issues/2240","repository_url":"https://api.github.com/repos/mozilla/rr","labels_url":"https://api.github.com/repos/mozilla/rr/issues/2240/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/rr/issues/2240/comments","events_url":"https://api.github.com/repos/mozilla/rr/issues/2240/events","html_url":"https://github.com/mozilla/rr/issues/2240","id":350901358,"node_id":"MDU6SXNzdWUzNTA5MDEzNTg=","number":2240,"title":"Assertion `ticks_now == trace_ticks' failed to hold when replaying python opencv code: cv2.solvePnP(...)","user":{"login":"dkogan","id":170011,"node_id":"MDQ6VXNlcjE3MDAxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/170011?v=4","gravatar_id":"","url":"https://api.github.com/users/dkogan","html_url":"https://github.com/dkogan","followers_url":"https://api.github.com/users/dkogan/followers","following_url":"https://api.github.com/users/dkogan/following{/other_user}","gists_url":"https://api.github.com/users/dkogan/gists{/gist_id}","starred_url":"https://api.github.com/users/dkogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkogan/subscriptions","organizations_url":"https://api.github.com/users/dkogan/orgs","repos_url":"https://api.github.com/users/dkogan/repos","events_url":"https://api.github.com/users/dkogan/events{/privacy}","received_events_url":"https://api.github.com/users/dkogan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-08-15T17:45:55Z","updated_at":"2018-08-15T22:03:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi. I'm seeing this consistently:\r\n\r\n```\r\ndima@fatty:~$ rr record python rrtest.py\r\nrr: Saving execution to trace directory `/home/dima/.local/share/rr/python-60'.\r\n\r\ndima@fatty:~$ rr replay ~/.local/share/rr/latest-trace    \r\nGNU gdb (Debian 8.1-4) 8.1\r\n...\r\nReading symbols from /usr/bin/python2.7...Reading symbols from /usr/lib/debug/.build-id/e5/6ca1ed2d9b9d858a1cdea846025376b26aa6f9.debug...done.\r\ndone.\r\nReally redefine built-in command \"restart\"? (y or n) [answered Y; input not from terminal]\r\nRemote debugging using 127.0.0.1:15426\r\nReading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/f9/4652c7a9a90257a729d7ed29a92bed96263646.debug...done.\r\ndone.\r\n0x00007ffff7fd6210 in _start () from /lib64/ld-linux-x86-64.so.2\r\n(rr) c\r\nContinuing.\r\n[FATAL /build/rr-ekSF7L/rr-5.2.0/src/ReplaySession.cc:1023:check_ticks_consistency()] \r\n (task 15427 (rec:15419) at time 10940)\r\n -> Assertion `ticks_now == trace_ticks' failed to hold. ticks mismatch for 'SYSCALL: openat'; expected 314339103, got 314339104\r\n=== Start rr backtrace:\r\nrr(_ZN2rr13dump_rr_stackEv+0x41)[0x5555556b2d81]\r\nrr(_ZN2rr9GdbServer15emergency_debugEPNS_4TaskE+0x5c5)[0x5555555dfeb5]\r\nrr(_ZN2rr21EmergencyDebugOstreamD1Ev+0x11e)[0x5555555edd4e]\r\nrr(_ZN2rr13ReplaySession23check_ticks_consistencyEPNS_10ReplayTaskERKNS_5EventE+0xaa)[0x5555556592ba]\r\nrr(_ZN2rr13ReplaySession11replay_stepERKNS0_15StepConstraintsE+0x8ce)[0x55555565f50e]\r\nrr(_ZN2rr14ReplayTimeline19replay_step_forwardENS_10RunCommandEl+0xdf)[0x5555556765ef]\r\nrr(_ZN2rr9GdbServer14debug_one_stepERNS_10GdbRequestE+0xad5)[0x5555555dde35]\r\nrr(_ZN2rr9GdbServer12serve_replayERKNS0_15ConnectionFlagsE+0x6f3)[0x5555555df613]\r\nrr(+0x100fdf)[0x555555654fdf]\r\nrr(_ZN2rr13ReplayCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0x570)[0x555555656150]\r\nrr(main+0x1da)[0x5555555930ba]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7ffff75bfb17]\r\nrr(_start+0x2a)[0x55555559328a]\r\n=== End rr backtrace\r\nLaunch gdb with\r\n  gdb '-l' '10000' '-ex' 'set sysroot /' '-ex' 'target extended-remote 127.0.0.1:15427' /usr/bin/python2.7\r\n```\r\n\r\nThe test python program is a single opencv call:\r\n\r\n```python\r\n#!/usr/bin/python2\r\n\r\nimport cv2\r\nimport numpy as np\r\n\r\ncv2.solvePnP( np.array([[[0.    ],[0.    ],[0.    ]],\r\n                        [[0.0577],[0.    ],[0.    ]],\r\n                        [[0.1154],[0.    ],[0.    ]],\r\n                        [[0.1731],[0.    ],[0.    ]],\r\n                        [[0.2308],[0.    ],[0.    ]],\r\n                        [[0.2885],[0.    ],[0.    ]],\r\n                        [[0.3462],[0.    ],[0.    ]],\r\n                        [[0.4039],[0.    ],[0.    ]],\r\n                        [[0.4616],[0.5193],[0.    ]],\r\n                        [[0.5193],[0.5193],[0.    ]]]),\r\n\r\n              np.array([[[ 773.131],[ 250.669]],\r\n                        [[ 920.844],[ 224.995]],\r\n                        [[1083.636],[ 199.725]],\r\n                        [[1239.929],[ 352.402]],\r\n                        [[1430.524],[ 336.5  ]],\r\n                        [[1633.784],[ 324.786]],\r\n                        [[1842.59 ],[ 317.544]],\r\n                        [[2051.595],[ 316.183]],\r\n                        [[2270.776],[1989.774]],\r\n                        [[2471.305],[1974.682]]]),\r\n\r\n              np.array([[1.700e+03, 0.000e+00, 1.919e+03],\r\n                        [0.000e+00, 1.700e+03, 1.079e+03],\r\n                        [0.000e+00, 0.000e+00, 1.000e+00]]),\r\n\r\n              None)\r\n```\r\n\r\nThe data isn't important. I'm on a vanilla Debian/sid box on amd64. Everything's from packages. rr = 5.2.0-1 and libopencv* = 3.2.0+dfsg-4.1+b1\r\n\r\nAny debugging tips? Thanks!"},"comment":{"url":"https://api.github.com/repos/mozilla/rr/issues/comments/413352867","html_url":"https://github.com/mozilla/rr/issues/2240#issuecomment-413352867","issue_url":"https://api.github.com/repos/mozilla/rr/issues/2240","id":413352867,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzM1Mjg2Nw==","user":{"login":"dkogan","id":170011,"node_id":"MDQ6VXNlcjE3MDAxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/170011?v=4","gravatar_id":"","url":"https://api.github.com/users/dkogan","html_url":"https://github.com/dkogan","followers_url":"https://api.github.com/users/dkogan/followers","following_url":"https://api.github.com/users/dkogan/following{/other_user}","gists_url":"https://api.github.com/users/dkogan/gists{/gist_id}","starred_url":"https://api.github.com/users/dkogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkogan/subscriptions","organizations_url":"https://api.github.com/users/dkogan/orgs","repos_url":"https://api.github.com/users/dkogan/repos","events_url":"https://api.github.com/users/dkogan/events{/privacy}","received_events_url":"https://api.github.com/users/dkogan/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T22:03:31Z","updated_at":"2018-08-15T22:03:31Z","author_association":"CONTRIBUTOR","body":"If you want debug symbols for rr, I can probably get those. Hold on"}}
{"actor":{"display_login":"dkogan"}}