News for hackers. Stuff that matters.

arbruijn

Re:rr – record and replay debugger for C/C++ on Sunday July 21, 2024 @02:49PM (#41027222)
VirGL might help, it redirects OpenGL calls over a socket. Start virgl_test_server and run your app with extra environment vars __GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=virpipe
Re:VirGL on Sunday August 13, 2023 @07:52AM (#37109025)
There's also virgl_test_server which runs the virgl protocol over a socket.

This can be used for OpenGL inside containers, by bind mount-ing the socket into the container (/tmp/.virgl_test).

Also useful for debugging with rr, even with the nvidia driver you use OpenGL over virgl with the environment vars __GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=virpipe

I had some success with https://microsoft.github.io/tilecode/ (fullscreen button in lower right, works best with gamepad / keyboard) and https://arcade.makecode.com/
Re:Unstripping Stripped Binaries on Friday August 26, 2022 @04:41AM (#32604731)
I've fixed the narrow conversion error with newer compilers and added build instructions to the README.

Not sure what's up with libgomp.spec, it should be part of the gcc base package, at least on debian/ubuntu.

I have a version with working linux compilation and some other fixes here: https://github.com/arbruijn/d2x-xl/
Temporary, Vendor or Contractor
Re:Glibc getaddrinfo stack-based buffer overflow on Tuesday February 16, 2016 @04:39PM (#11113315)
You can create a small chroot with a custom resolv.conf.

Example (tested on Ubuntu 14.04 64-bit):

  mkdir -p root/lib/x86_64-linux-gnu root/lib64 root/etc
  cp -a --parents /lib/x86_64-linux-gnu/lib{c,nss,resolv}* root
  cp /lib64/ld-linux-x86-64.so.2 root/lib64
  cp CVE-2015-7547-client root
  echo 'nameserver 127.0.0.1' > root/etc/resolv.conf
  sudo chroot root ./CVE-2015-7547-client
If it prints nothing it crashed. Try running with strace to be sure.