moi2299 | hello | 11:13 |
---|---|---|
moi2299 | is it here to learn about port sfos to hw? | 11:14 |
T42_ | <TheVancedGamer> mal: i'm back with libvulkan shenanigans :D | 11:23 |
T42_ | <TheVancedGamer> test_vulkan still segfaults and I have no idea why | 11:24 |
mal | @TheVancedGamer which device was that again? | 12:54 |
T42_ | <TheVancedGamer> FP4, Halium 11 | 12:54 |
T42_ | <TheVancedGamer> i'm really sorry for repeatedly pinging you and annoying, but this is something that I *just can't* figure out | 12:55 |
T42_ | <TheVancedGamer> `test_vulkan` segfaults as soon as it tries to read build.prop | 12: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 |
mal | yeah, very odd, and if the other tests work then how can it be just that | 13:01 |
T42_ | <TheVancedGamer> no idea | 13:01 |
T42_ | <TheVancedGamer> but anything that loads libvulkan (the hybris one) segfaults immediately | 13:01 |
mal | did 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 failing | 13:04 |
T42_ | <TheVancedGamer> the issue for me is too vague | 13:04 |
T42_ | <TheVancedGamer> mal: here's strace | 13:05 |
T42_ | <TheVancedGamer> https://paste.myself5.de/ezufevumij.yaml | 13:05 |
T42_ | <TheVancedGamer> tried gdb, doesn't work; any hybris env variables don't work either | 13:05 |
mal | I was thinking if you add your own debug printing to libhybris code | 13:06 |
T42_ | <TheVancedGamer> hm, but where? | 13:06 |
T42_ | <TheVancedGamer> libvulkan doens't load | 13:06 |
T42_ | <TheVancedGamer> libvulkan doesn't load (edited) | 13:06 |
mal | for example the linker things in there | 13: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 |
mal | did debug output from libhybris print anything? | 13:09 |
T42_ | <TheVancedGamer> nothing at all | 13:09 |
mal | for example hybris/common/hooks.c accesses android side property values | 13:09 |
mal | so 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_vulkan | 13:13 |
mal | as 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_vulkan | 13:13 |
T42_ | <TheVancedGamer> Segmentation fault | 13: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_vulkan | 13:14 |
T42_ | <TheVancedGamer> Segmentation fault``` | 13:14 |
T42_ | <TheVancedGamer> (edited) | 13:14 |
T42_ | <TheVancedGamer> trying as phablet, uid 32011 | 13:14 |
T42_ | <TheVancedGamer> trying as root results in the same thing | 13:15 |
T42_ | <TheVancedGamer> maybe I can try testing dlopen() with the libvulkan library? | 13:15 |
mal | I 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 reached | 13: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#L283 | 15:25 |
T42_ | <Ha> Hello | 23: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/!