Tuesday, 2023-06-13

T42<TheVancedGamer> mal: I just built latest tag (1.29+git8) of ofono on UT and it crashes with this while launching:06:05
T42<TheVancedGamer> ```06:05
T42<TheVancedGamer> 06:05
T42<TheVancedGamer> (ofonod:9925): GLib-CRITICAL **: 10:59:16.396: g_once_init_leave: assertion 'result != 0' failed06:05
T42<TheVancedGamer> (ofonod:9925): GLib-GObject-CRITICAL **: 10:59:16.396: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed06:06
T42<TheVancedGamer> ofonod[9925]: Aborting (signal 11) [/usr/sbin/ofonod06:06
T42<TheVancedGamer> ```06:06
T42<TheVancedGamer> 06:06
T42<TheVancedGamer> At first I thought it was ofono-binder-plugin at fault, but I get the same error even with rilbinderplugin06:06
T42<TheVancedGamer> This didn't happen with 1.29+git7 though06:07
T42<k1gen> UT? as in Ubuntu Touch?06:11
T42<TheVancedGamer> yes06:12
*** amccarthy is now known as Guest297109:52
*** amccarthy_ is now known as amccarthy09:52
mal@TheVancedGamer can you get a backtrace?10:31
maljust to be sure, did you rebuild the plugin against the new version?10:33
T42<TheVancedGamer> mal: I took new version of libgbinder-radio, ofono-sailfish and ofono-binder-plugin and compiled plugin against new version of ofono11:21
T42<TheVancedGamer> and sadly there's no backtrace11:21
malverbose logs?11:23
T42<TheVancedGamer> yes11:23
T42<TheVancedGamer> it says11:23
T42<TheVancedGamer> ```11:23
T42<TheVancedGamer> +++++++++++++++11:23
T42<TheVancedGamer> +++backtrace+++11:23
T42<TheVancedGamer> +++++++++++++++```11:23
T42<TheVancedGamer> 11:23
T42<TheVancedGamer> and that's it11:23
malI meant messages before the failure11:23
T42<TheVancedGamer> ah, that's the only logs I get before it crashes11:24
T42<TheVancedGamer> I do have verbose logging11:24
malhmm11:24
malthat is very odd11:24
T42<TheVancedGamer> maybe i'm doing something wrong?11:24
malhow do you run ofono?11:24
T42<TheVancedGamer> mal: `sudo /usr/sbin/ofonod -d -n`11:25
malis that how it's normally run in ubuntu touch? don't you have any of the plugin disabling/enabling parameters, normally provided in $OFONO_ARGS env var in the systemd service11:27
T42<TheVancedGamer> some plugins are disabled, but even when running with the proper command it crashes with the same messages11:28
malhow does strace look?11:29
T42<TheVancedGamer> very lengthy if i'm honest11:31
T42<TheVancedGamer> nothing that catches the eye11:32
T42<TheVancedGamer> mal: what should I be looking for?11:34
malanything that happens before the crash11:38
T42<TheVancedGamer> hm, nothing then11:38
malI still find it odd that you get nothing in debug output11:39
T42<TheVancedGamer> sendto(5, "<31>Jun 13 16:31:20 ofonod[12257"..., 87, MSG_NOSIGNAL, NULL, 0) = 8711:39
T42<TheVancedGamer> --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20} ---11:39
T42<TheVancedGamer> and that's it11:40
T42<TheVancedGamer> seems it's trying to print backtrace in strace though, hmm11:40
T42<TheVancedGamer> aha, it does!11:41
T42<TheVancedGamer> mal: `ofonod[12567]: #0  0x7f9cde3600 in [gbinder-radio] Connected to android.hardware.radio.config@1.1::IRadioConfig/default() at config < [00000001] 4 getPhoneCapability`11:41
T42<TheVancedGamer> and that's the only line in backtrace11:41
T42<TheVancedGamer> is this maybe a regression in gbinder-radio? because I did build the latest version of that as well11:43
malhmm11:48
maldo you use the other ofono related middleware on ubuntu touch, like gofono or qofono related packages?11:49
T42<TheVancedGamer> mal: no, it's just ofono-sailfish11:49
malstill odd how debug output says nothing11:54
malcan you show the whole strace11:56
T42<TheVancedGamer> sure11:56
malpreferrably starce -Ff -s102411:56
mal*strace11:56
T42<TheVancedGamer> oh11:56
T42<TheVancedGamer> let me rerun it11:56
malthat makes it get everything and the second parameter increases the about of data so it won't cut prints etc so easily11:57
T42<TheVancedGamer> https://paste.myself5.de/kivivuruge.yaml11:57
T42<TheVancedGamer> oh and it complains -F is deprecated so it ignored it11:58
malyeah, I always forget that11:59
malit doesn't matter11:59
malbtw, based on that strace it's supposed to print stuff but not sure why you don't see those12:00
T42<TheVancedGamer> yeah, it apparently redirects it to stderr12:00
T42<TheVancedGamer> that's how I got that one-line backtrace12:00
malor journal?12:01
malthere should be stuff like Jun 13 16:57:02 ofonod[12922]: src/binder_cell_info.c:binder_cell_info_new() slot112:01
T42<TheVancedGamer> I didn't check that12:01
T42<TheVancedGamer> but I do have all logs12:01
T42<TheVancedGamer> I can get you that if you want12:01
maldid you run ofono via gdb?12:01
malgdb --args /usr/sbin/ofonod -d -n12:02
T42<TheVancedGamer> yes, but yielded no results12:02
T42<TheVancedGamer> I did `run -d -n` but I don't think it was that different?12:02
malhmm, ok, I didn't know it could be done like that12:03
malcan you try using that my way just in case12:07
T42<TheVancedGamer> ```12:08
T42<TheVancedGamer> Thread 4 "hwbinder#1" received signal SIG33, Real-time event 33.12:08
T42<TheVancedGamer> [Switching to Thread 0x7ff6207150 (LWP 13285)]12:08
T42<TheVancedGamer> 0x0000007ff7c62f08 in __GI___poll (fds=0x7ff62068b8, nfds=2, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41```12:08
T42<TheVancedGamer> well that definitely worked12:08
malthread apply all bt12:11
T42<TheVancedGamer> https://paste.myself5.de/egucilamub.yaml12:12
T42<TheVancedGamer> mal: ^^12:12
malso it doesn't crash now?12:14
T42<TheVancedGamer> it does12:15
T42<TheVancedGamer> and I pasted the backtrace12:15
malfrom thread 4?12:16
T42<TheVancedGamer> oh oops12:16
T42<TheVancedGamer> I pasted all the threads?12:17
T42<TheVancedGamer> oh wait12:17
T42<TheVancedGamer> mal: should I have compiled libgbinder too?12:17
malwhich libgbinder do you have?12:29
maljust to be sure, did you properly install libgbinder-radio to the device12:29
mal[pid 12922] sendto(5, "<31>Jun 13 16:57:02 ofonod[12922]: src/binder_cell_info.c:binder_cell_info_new() slot1 ", 87, MSG_NOSIGNAL, NULL, 0) = 8712:31
mal[pid 12922] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20} ---12:31
malyou can see in strace that you get that one message and then segfault, maybe try adding some debug prints in that function and near the call to see where it fails12:32
T42<TheVancedGamer> mal: but it fails with rilbinderplugin as well12:40
T42<TheVancedGamer> and that one used to work12:40
malwhere does it fail?12:52
malyou should be able to see at least in strace or journal what is the last messages from ofono12:52
T42<TheVancedGamer> let me pull up the logs...12:52
T42<TheVancedGamer> mal: here's output when I use rilbinderplugin: https://paste.myself5.de/ocugidexes.http13:08
T42<TheVancedGamer> and also Jun 13 18:07:43 ubuntu-phablet kernel: binder: undelivered transaction 61844, process died. in journal13:08
malyou should try to get backtrace13:31
T42<TheVancedGamer> mal: I did, but it's only this one-liner:13:37
T42<TheVancedGamer> ```13:37
T42<TheVancedGamer> ofonod[12567]: #0  0x7f9cde3600 in [gbinder-radio] Connected to android.hardware.radio.config@1.1::IRadioConfig/default() at config < [00000001] 4 getPhoneCapability```13:37
malI still wonder how you manage to lose all the ofono logs13:38
malwhich show in strace but you claim those are not printed to output or journal13:38
T42<TheVancedGamer> I said not to output, but they are printed to stderr13:38
T42<TheVancedGamer> which is how I got the backtrace13:39
maldid you try what I said, adding debug printing to the place suggested by ofono-binder-plugin strace13:42

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