AsteroidOS / meta-smartwatch

OpenEmbedded layer that provides support for various smartwatches.
24 stars 18 forks source link

[anthias] Apps crash #221

Open eLtMosen opened 1 year ago

eLtMosen commented 1 year ago

When starting the calander or more complex settings pages like the wallpaper / watchface selector, the application crashes and following in shown in journal:

Aug 30 20:04:32 anthias kernel: [ASUSEvtlog](822)2023-08-30 20:04:32 :active wakeup source: mce_display_on
Aug 30 20:04:32 anthias kernel: [ASUSEvtlog](822)2023-08-30 20:04:32 :active wakeup source: msm_otg
Aug 30 20:04:32 anthias kernel: [ASUSEvtlog](822)2023-08-30 20:04:32 :[PM]unattended_timer_expired
Aug 30 20:04:38 anthias kernel: evbug: Event. Dev: input0, Type: 3, Code: 57, Value: 52
Aug 30 20:04:38 anthias kernel: evbug: Event. Dev: input0, Type: 3, Code: 53, Value: 194
Aug 30 20:04:38 anthias kernel: evbug: Event. Dev: input0, Type: 3, Code: 54, Value: 191
Aug 30 20:04:38 anthias kernel: evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0
Aug 30 20:04:38 anthias kernel: evbug: Event. Dev: input0, Type: 3, Code: 57, Value: -1
Aug 30 20:04:38 anthias kernel: evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0
Aug 30 20:04:38 anthias kernel: asteroid-settin: unhandled page fault (11) at 0x00000000, code 0x017
Aug 30 20:04:38 anthias kernel: pgd = d02b8000
Aug 30 20:04:38 anthias kernel: [00000000] *pgd=10cb5831, *pte=00000000, *ppte=00000000
Aug 30 20:04:38 anthias kernel: 
Aug 30 20:04:38 anthias kernel: CPU: 0 PID: 635 Comm: asteroid-settin Tainted: G        W    3.10.40 #1
Aug 30 20:04:38 anthias kernel: task: dd46df00 ti: d0e1e000 task.ti: d0e1e000
Aug 30 20:04:38 anthias kernel: PC is at 0xb6c4bbf4
Aug 30 20:04:38 anthias kernel: LR is at 0xb4a0ade4
Aug 30 20:04:38 anthias kernel: pc : [<b6c4bbf4>]    lr : [<b4a0ade4>]    psr: 600d0010
                                sp : beb337b8  ip : b6c4bbf4  fp : b357b677
Aug 30 20:04:38 anthias kernel: r10: beb337c8  r9 : beb337c4  r8 : b3a18e98
Aug 30 20:04:38 anthias kernel: r7 : 00000000  r6 : 00000000  r5 : 00000010  r4 : 00000000
Aug 30 20:04:38 anthias kernel: r3 : b4a226f0  r2 : b4a21000  r1 : b4a2269c  r0 : 00000000
Aug 30 20:04:38 anthias kernel: Flags: nZCv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
Aug 30 20:04:38 anthias kernel: Control: 10c5387d  Table: 102b806a  DAC: 00000015
Aug 30 20:04:38 anthias kernel: Backtrace: 
Aug 30 20:04:38 anthias kernel: [<c0926c5c>] (dump_backtrace+0x0/0x104) from [<c0926d78>] (dump_stack+0x18/0x1c)
Aug 30 20:04:38 anthias kernel:  r7:00000017 r6:00000000 r5:0000000b r4:d0e1ffb0
Aug 30 20:04:38 anthias kernel: [<c0926d60>] (dump_stack+0x0/0x1c) from [<c0926a3c>] (show_regs+0x24/0x2c)
Aug 30 20:04:38 anthias kernel: [<c0926a18>] (show_regs+0x0/0x2c) from [<c0110ab8>] (__do_user_fault+0xf0/0x13c)
Aug 30 20:04:38 anthias kernel:  r5:0000000b r4:dd46df00
Aug 30 20:04:38 anthias kernel: [<c01109c8>] (__do_user_fault+0x0/0x13c) from [<c0940098>] (do_page_fault+0x390/0x3c0)
Aug 30 20:04:38 anthias kernel: [<c093fd08>] (do_page_fault+0x0/0x3c0) from [<c0100278>] (do_DataAbort+0x40/0x11c)
Aug 30 20:04:38 anthias kernel: [<c0100238>] (do_DataAbort+0x0/0x11c) from [<c093e6f8>] (__dabt_usr+0x38/0x40)
Aug 30 20:04:38 anthias kernel: Exception stack(0xd0e1ffb0 to 0xd0e1fff8)
Aug 30 20:04:38 anthias kernel: ffa0:                                     00000000 b4a2269c b4a21000 b4a226f0
Aug 30 20:04:38 anthias kernel: ffc0: 00000000 00000010 00000000 00000000 b3a18e98 beb337c4 beb337c8 b357b677
Aug 30 20:04:38 anthias kernel: ffe0: b6c4bbf4 beb337b8 b4a0ade4 b6c4bbf4 600d0010 ffffffff
Aug 30 20:04:38 anthias mce[278]: tklock.c: tklock_dbus_mode_change_req_cb(): Received tklock mode change request 'locked-delay' from name=:1.30 owner=:1.30 pid=442 uid=1000 gid=1000 priv=0 cmd=/usr/bin/asteroid-launcher -plugin evdevtouch:/dev/input/event0
Aug 30 20:04:38 anthias mce[278]: tklock.c: tklock_dbus_send_tklock_mode(): send tklock mode signal: locked
Aug 30 20:04:38 anthias mce[278]: modules/display.c: mdy_dbus_send_blanking_pause_allowed_status(): Sending blanking pause allowed signal: false
Aug 30 20:04:39 anthias mapplauncherd[431]: Boosted process (pid=635) was terminated due to signal 11
Aug 30 20:04:39 anthias invoker[654]: error: Can't send signal 11 to application [635]: No such process
FlorentRevest commented 1 year ago

So that's a segfault from the app trying to access a NULL pointer. It would be useful to trigger this bug while the app runs under gdb, with debugging symbols. Then we can extract the backtrace and see where this NULL pointer comes from.