Package: lua-socket Followup-For: Bug #822825 Quick follow up: I put a few prints into http.lua to get the content of the function parameters. http.sendrequestline() now looks like this:
function metat.__index:sendrequestline(method, uri) print("sendrequestline: {method,uri}="..inspect({method=method,uri=uri})) local reqline = string.format("%s %s HTTP/1.1\r\n", method or "GET", uri) print("sendrequestline: reqline="..inspect(reqline)) print("sendrequestline: self.c="..inspect(self.c)) return self.try(self.c:send(reqline)) end (with usage of inspect.lua from LuaRocks) Additionally, I put a `print("after sendrequestline")` into http.trequest() right after the sendrequestline call. This line is printed when called from the Lua interpreter, but not in mpv, so I guess it dies right in the send: $ mpv --script=test.lua somefile.mp4 [test] MARK [test] trequest: reqt={ [test] sink = <function 1>, [test] url = "http://rohieb.name" [test] } [test] open: {c,h}={ [test] c = <userdata 1>, [test] h = { [test] c = <userdata 1>, [test] try = <function 1>, [test] <metatable> = { [test] __index = { [test] close = <function 2>, [test] receive09body = <function 3>, [test] receivebody = <function 4>, [test] receiveheaders = <function 5>, [test] receivestatusline = <function 6>, [test] sendbody = <function 7>, [test] sendheaders = <function 8>, [test] sendrequestline = <function 9> [test] } [test] } [test] } [test] } [test] sendrequestline: {method,uri}={ [test] uri = "/" [test] } [test] sendrequestline: reqline="GET / HTTP/1.1\r\n" [test] sendrequestline: self.c=<userdata 1> Segmentation fault I'm not sure what is the best way to debug this further into the C code... - Roland -- System Information: Debian Release: stretch/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'testing-proposed-updates'), (500, 'testing-debug'), (500, 'testing'), (170, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.5.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages lua-socket depends on: ii libc6 2.22-7 lua-socket recommends no packages. lua-socket suggests no packages. -- no debconf information