Thursday, 2023-12-28

moi2299hello11:13
moi2299is it here to learn about port sfos to hw?11:14
T42_<TheVancedGamer> mal: i'm back with libvulkan shenanigans :D11:23
T42_<TheVancedGamer> test_vulkan still segfaults and I have no idea why11:24
mal@TheVancedGamer which device was that again?12:54
T42_<TheVancedGamer> FP4, Halium 1112:54
T42_<TheVancedGamer> i'm really sorry for repeatedly pinging you and annoying, but this is something that I *just can't* figure out12:55
T42_<TheVancedGamer> `test_vulkan` segfaults as soon as it tries to read build.prop12:58
T42_<TheVancedGamer> mal:12:59
T42_<TheVancedGamer> ```12:59
T42_<TheVancedGamer> openat(AT_FDCWD, "/system/build.prop", O_RDONLY) = -1 EACCES (Permission denied)13:00
T42_<TheVancedGamer> --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x68} ---13:00
T42_<TheVancedGamer> +++ killed by SIGSEGV +++13:00
T42_<TheVancedGamer> Segmentation fault```13:00
malyeah, very odd, and if the other tests work then how can it be just that13:01
T42_<TheVancedGamer> no idea13:01
T42_<TheVancedGamer> but anything that loads libvulkan (the hybris one) segfaults immediately13:01
maldid you narrow down to which line in the libhybris is causing that?13:02
T42_<TheVancedGamer> I have no idea honestly where it's even failing13:04
T42_<TheVancedGamer> the issue for me is too vague13:04
T42_<TheVancedGamer> mal: here's strace13:05
T42_<TheVancedGamer> https://paste.myself5.de/ezufevumij.yaml13:05
T42_<TheVancedGamer> tried gdb, doesn't work; any hybris env variables don't work either13:05
malI was thinking if you add your own debug printing to libhybris code13:06
T42_<TheVancedGamer> hm, but where?13:06
T42_<TheVancedGamer> libvulkan doens't load13:06
T42_<TheVancedGamer> libvulkan doesn't load (edited)13:06
malfor example the linker things in there13:06
T42_<TheVancedGamer> hm, and how could that help me maybe?13:07
T42_<TheVancedGamer> like, can I add prints telling me which libraries are getting dlopen'd?13:07
maldid debug output from libhybris print anything?13:09
T42_<TheVancedGamer> nothing at all13:09
malfor example hybris/common/hooks.c accesses android side property values13:09
malso this prints nothing useful: HYBRIS_LOGGING_LEVEL=debug HYBRIS_TRACE=1 HYBRIS_TRACE_HOOKED=1 HYBRIS_TRACE_UNHOOKED=1 HYBRIS_TRACE_DYNHOOKED=1 HYBRIS_ENABLE_LINKER_DEBUG_MAP=1 test_vulkan13:13
malas which user are you trying?13:13
T42_<TheVancedGamer> mal:13:13
T42_<TheVancedGamer> ```13:13
T42_<TheVancedGamer> phablet@ubuntu-phablet:~$ HYBRIS_LOGGING_LEVEL=debug HYBRIS_TRACE=1 HYBRIS_TRACE_HOOKED=1 HYBRIS_TRACE_UNHOOKED=1 HYBRIS_TRACE_DYNHOOKED=1 HYBRIS_ENABLE_LINKER_DEBUG_MAP=1 test_vulkan13:13
T42_<TheVancedGamer> Segmentation fault13:14
T42_<TheVancedGamer> mal:13:14
T42_<TheVancedGamer> ```13:14
T42_<TheVancedGamer> phablet@ubuntu-phablet:~$ HYBRIS_LOGGING_LEVEL=debug HYBRIS_TRACE=1 HYBRIS_TRACE_HOOKED=1 HYBRIS_TRACE_UNHOOKED=1 HYBRIS_TRACE_DYNHOOKED=1 HYBRIS_ENABLE_LINKER_DEBUG_MAP=1 test_vulkan13:14
T42_<TheVancedGamer> Segmentation fault```13:14
T42_<TheVancedGamer>  (edited)13:14
T42_<TheVancedGamer> trying as phablet, uid 3201113:14
T42_<TheVancedGamer> trying as root results in the same thing13:15
T42_<TheVancedGamer> maybe I can try testing dlopen() with the libvulkan library?13:15
malI suggest trying to add printing to that hooks.c I mentioned and seeing if any place with my_*_property is called, also maybe even to hybris/common/legacy_properties/properties.c in each function to see if any of those are reached13:16
T42_<TheVancedGamer> mal: i'll check that out, thanks!13:17
mal@TheVancedGamer I wonder what kind of build you have of libhybris? you should make sure you have the --enable-debug and --enable-trace when built https://github.com/mer-hybris/libhybris/blob/master/rpm/libhybris.spec#L28315:25
T42_<Ha> Hello23:30
T42_<Ha> Im watching the hadk pdf. Its compliczred and i wonder if there an easy guide to port sailfish to a device with just device tree?23:30

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!