{"action":"closed","issue":{"url":"https://api.github.com/repos/mozilla/rr/issues/1693","repository_url":"https://api.github.com/repos/mozilla/rr","labels_url":"https://api.github.com/repos/mozilla/rr/issues/1693/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/rr/issues/1693/comments","events_url":"https://api.github.com/repos/mozilla/rr/issues/1693/events","html_url":"https://github.com/mozilla/rr/issues/1693","id":150861809,"number":1693,"title":"Unknown ioctl(0x8004551a): type:0x55 nr:0x1a dir:0x2 size:4 addr:0x1147910","user":{"login":"montanier","id":5766900,"avatar_url":"https://avatars.githubusercontent.com/u/5766900?v=3","gravatar_id":"","url":"https://api.github.com/users/montanier","html_url":"https://github.com/montanier","followers_url":"https://api.github.com/users/montanier/followers","following_url":"https://api.github.com/users/montanier/following{/other_user}","gists_url":"https://api.github.com/users/montanier/gists{/gist_id}","starred_url":"https://api.github.com/users/montanier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montanier/subscriptions","organizations_url":"https://api.github.com/users/montanier/orgs","repos_url":"https://api.github.com/users/montanier/repos","events_url":"https://api.github.com/users/montanier/events{/privacy}","received_events_url":"https://api.github.com/users/montanier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-25T13:36:57Z","updated_at":"2016-04-29T07:49:39Z","closed_at":"2016-04-29T07:49:39Z","body":"Hello,\r\n\r\nI tried to run a code linking to Openni2 with rr and got the following error\r\n\r\n```\r\nrr: Saving the execution of `trackVideo' to trace directory `/home/jmmontanier/.local/share/rr/trackVideo-2'.\r\nAfter initialization:\r\n\r\n [FATAL /home/jmmontanier/rr/rr/src/record_syscall.cc:3678:rec_process_syscall_arch() errno: SUCCESS] \r\n (task 15553 (rec:15553) at time 2514)\r\n -> Assertion `t->regs().syscall_result_signed() == -syscall_state.expect_errno' failed to hold. Expected EINVAL for 'ioctl' but got result 0 (errno SUCCESS); Unknown ioctl(0x8004551a): type:0x55 nr:0x1a dir:0x2 size:4 addr:0x1147910\r\nLaunch gdb with\r\n  gdb /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/trackVideo\r\nand attach to the rr debug server with:\r\n  target remote :15553\r\n```\r\n\r\nHere is the corresponding backtrace from gdb:\r\n```\r\n#0  0x0000000070000002 in ?? ()\r\n#1  0x00007f5803092198 in _raw_syscall () at /home/jmmontanier/rr/rr/src/preload/raw_syscall.S:120\r\n#2  0x00007f580308f235 in traced_raw_syscall (call=call@entry=0x7fffc8809760)\r\n    at /home/jmmontanier/rr/rr/src/preload/preload.c:293\r\n#3  0x00007f5803090478 in syscall_hook_internal (call=0x7fffc8809760)\r\n    at /home/jmmontanier/rr/rr/src/preload/preload.c:2397\r\n#4  syscall_hook (call=0x7fffc8809760) at /home/jmmontanier/rr/rr/src/preload/preload.c:2405\r\n#5  0x00007f58030921ca in _syscall_hook_trampoline () at /home/jmmontanier/rr/rr/src/preload/syscall_hook.S:213\r\n#6  0x00007f58030921db in _syscall_hook_trampoline_48_3d_01_f0_ff_ff ()\r\n    at /home/jmmontanier/rr/rr/src/preload/syscall_hook.S:255\r\n#7  0x00007f58030929a8 in _stub_buffer () at /home/jmmontanier/rr/rr/src/preload/syscall_hook.S:382\r\n#8  0x00007f5801cef33a in ioctl () at ../sysdeps/unix/syscall-template.S:81\r\n#9  0x00007f57fd046ebd in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0\r\n#10 0x00007f57fd03db03 in libusb_open () from /lib/x86_64-linux-gnu/libusb-1.0.so.0\r\n#11 0x00007f57fd2d16d8 in xnUSBOpenDeviceImpl.part.0 ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#12 0x00007f57fd2d1ca4 in xnUSBOpenDeviceByPath ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#13 0x00007f57fd284d5f in XnSensorIO::OpenDevice(char const*) ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#14 0x00007f57fd2947ef in XnSensor::InitSensor(XnDeviceConfig const*) ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#15 0x00007f57fd297901 in XnSensor::InitImpl(XnDeviceConfig const*) ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#16 0x00007f57fd26d8c8 in XnDeviceBase::Init(XnDeviceConfig const*) ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#17 0x00007f57fd27b077 in XnOniDevice::Init(char const*) ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#18 0x00007f57fd27bed7 in XnOniDriver::deviceOpen(char const*, char const*) ()\r\n   from /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/DepthPicture/OpenNI2/Drivers/libPS1080.so\r\n#19 0x00007f5802e1f6f2 in oni::implementation::Device::open(char const*) () from ./libOpenNI2.so\r\n#20 0x0000000000402fd9 in openni::Device::open (this=0x7fffc880a400, uri=0x0)\r\n    at /home/jmmontanier/proto_team/appu_applications/Skeleton_tracker/OpenNI2/Packaging/Final/OpenNI-Linux-x64-2.2/Include/OpenNI.h:2671\r\n#21 0x0000000000402540 in main (argc=1, argv=0x7fffc88146b8) at trackVideo.cpp:28\r\n\r\n```\r\n\r\n"}}