Re: Kernel oops issued

From: Randy Dunlap
Date: Sat Nov 05 2022 - 15:15:29 EST


Hi--

On 10/21/22 06:34, Enrico Bandera wrote:
> Hi,
> I'm facing a systematic crash of kernel, whenever 2 instances of gstreamer are launched together.
> Namely, in our system there is a service that runs a camera manager (that uses gstreamer libraries to handle video streaming).
> If another gstreamer pipeline, accessing the same device, is launched the kernel crashes.
>
> Please find attached the ending session of kernel log (dmesg)
> I've enabled all debug info possible (I guess)
>
> Thanks in advance
> Enrico

[adding linux-media mailing list & reattaching the kernel log file]


Can you get any more of the kernel log?
What kernel version is this?

There are 3 out-of-tree kernel modules loaded.
lepton(O) ap1302_new(O) galcore(O)

Can you reproduce the problem without those modules being loaded?
If they are part of the problem, we probably can't help you.



> Enrico Bandera
> Software Engineer
> enrico.bandera@xxxxxxxxxx
> dronus.com
> t +39 345 295 00 42
> Laboratorio T45 Ed. Q
> Area Science Park
> Basovizza, SS14 km 163,5
> 34149 Trieste - Italy
>
> Dronus S.p.A. • Sede legale: Basovizza, SS14 KM 163,5 34149 Trieste (TS) • P.IVA 14668071005
> Ai sensi del GDPR 2016/679 si precisa che le informazioni contenute in questo messaggio ed eventuali allegati sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo e a non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.
> Pursuant to GDPR 2016/679, you are hereby informed that this message contains confidential information intended only for the use of the addressee. If you are not the addressee, and have received this message by mistake, please delete it and immediately notify us. You may not copy or disseminate this message to anyone. Thank you.
>
> [https://git.dronus.com/img/logo_firma.jpg]
> Enrico Bandera
> Software Engineer
> enrico.bandera@xxxxxxxxxx<mailto:enrico.bandera@xxxxxxxxxx>
> dronus.com<https://www.dronus.it/>
> t +39 345 295 00 42<tel:00393452950042>
> Laboratorio T45 Ed. Q
> Area Science Park
> Basovizza, SS14 km 163,5
> 34149 Trieste - Italy
>
>
> Dronus S.p.A. • Sede legale: Basovizza, SS14 KM 163,5 34149 Trieste (TS) • P.IVA 14668071005
>
> Ai sensi del GDPR 2016/679 si precisa che le informazioni contenute in questo messaggio ed eventuali allegati sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo e a non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.
> Pursuant to GDPR 2016/679, you are hereby informed that this message contains confidential information intended only for the use of the addressee. If you are not the addressee, and have received this message by mistake, please delete it and immediately notify us. You may not copy or disseminate this message to anyone. Thank you.

--
~Randy[ 37.130364] ap1302 1-003c: Called ap1302_s_ctrl line: 1371 event-ID:0x00980901.
[ 37.131708] ap1302 1-003c: write_reg[0x7002] = 0xAA10
[ 37.131715] ap1302 1-003c: Ctrl->id: V4L2_CID_CONTRAST
[ 37.139542] ap1302 1-003c: ap1302_set_mbus_fmt. context=0
[ 37.139549] ap1302 1-003c: Try MBUS Format.
[ 37.139554] ap1302 1-003c: Entered ap1302_try_mbus_fmt_locked line 808.
[ 37.140337] ap1302 1-003c: write_reg[0x2000] = 0x0780
[ 37.141488] ap1302 1-003c: write_reg[0x2002] = 0x0438
[ 37.142702] ap1302 1-003c: write_reg[0x2020] = 0x3C00
[ 37.146251] ap1302 1-003c: ap1302_set_mbus_fmt. context=0
[ 37.146258] ap1302 1-003c: Try MBUS Format.
[ 37.146262] ap1302 1-003c: Entered ap1302_try_mbus_fmt_locked line 808.
[ 37.147056] ap1302 1-003c: write_reg[0x2000] = 0x0780
[ 37.148217] ap1302 1-003c: write_reg[0x2002] = 0x0438
[ 37.149379] ap1302 1-003c: write_reg[0x2020] = 0x3C00
[ 37.159140] get 4 buffers, each holding 9840 bytes.
[ 37.166673] ap1302 1-003c: write_reg[0x2030] = 0x001C
[ 38.689816] VSYNC 165 miss!
[ 38.714729] Lost frame sync!
[ 240.061218] VSYNC 21369 miss!
[ 240.086129] Lost frame sync!
[ 1031.672400] videodev: v4l2_open: video0: open (0)
[ 1031.672410] video0: VIDIOC_QUERYCAP: driver=mx6s-csi, card=i.MX6S_CSI, bus=platform:32e20000.csi1_bridge, version=0x0005044a, capabilities=0x84200001, device_caps=0x04200001
[ 1031.672434] videodev: v4l2_release: video0: release
[ 1031.781000] videodev: v4l2_open: video0: open (0)
[ 1031.781011] video0: VIDIOC_QUERYCAP: driver=mx6s-csi, card=i.MX6S_CSI, bus=platform:32e20000.csi1_bridge, version=0x0005044a, capabilities=0x84200001, device_caps=0x04200001
[ 1031.781046] videodev: v4l2_release: video0: release
[ 1031.810331] videodev: v4l2_open: video0: open (0)
[ 1031.810344] video0: VIDIOC_QUERYCAP: driver=mx6s-csi, card=i.MX6S_CSI, bus=platform:32e20000.csi1_bridge, version=0x0005044a, capabilities=0x84200001, device_caps=0x04200001
[ 1031.810377] video0: VIDIOC_ENUMINPUT: index=0, name=Camera, type=2, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
[ 1031.810437] video0: VIDIOC_ENUMINPUT: error -22: index=1, name=, type=0, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x4
[ 1031.810446] video0: VIDIOC_ENUMSTD: error -61: index=0, id=0x0, name=, fps=0/0, framelines=0
[ 1031.810462] Unable to handle kernel paging request at virtual address ffff800010c3c880
[ 1031.810463] Mem abort info:
[ 1031.810465] ESR = 0x96000047
[ 1031.810467] EC = 0x25: DABT (current EL), IL = 32 bits
[ 1031.810468] SET = 0, FnV = 0
[ 1031.810470] EA = 0, S1PTW = 0
[ 1031.810471] Data abort info:
[ 1031.810472] ISV = 0, ISS = 0x00000047
[ 1031.810474] CM = 0, WnR = 1
[ 1031.810477] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000040fc0000
[ 1031.810478] [ffff800010c3c880] pgd=00000000bffff003, pud=00000000bfffe003, pmd=00000000bfffa003, pte=0000000000000000
[ 1031.810485] Internal error: Oops: 96000047 [#1] PREEMPT SMP
[ 1031.816064] Modules linked in: hx280enc brcmfmac cfg80211 brcmutil lepton(O) ci_hdrc_imx ci_hdrc ehci_hcd ulpi udc_core roles usbcore usbmisc_imx phy_generic ap1302_new(O) spi_imx imx_sdma hantrodec_845s galcore(O) [last unloaded: hx280enc]
[ 1031.837376] CPU: 2 PID: 699 Comm: gst-launch-1.0 Tainted: G O 5.4.74-imx8mm+g98ca569fafcb #1
[ 1031.847111] Hardware name: Variscite DART-MX8M-MINI (DT)
[ 1031.852421] pstate: 60000005 (nZCv daif -PAN -UAO)
[ 1031.857215] pc : osq_lock+0x80/0x1c0
[ 1031.860790] lr : __mutex_lock.isra.0+0x7c/0x5b8
[ 1031.865316] sp : ffff80001b2a3930
[ 1031.868628] x29: ffff80001b2a3930 x28: ffff00007d116200
[ 1031.873937] x27: 000000000000001f x26: 0000000000000000
[ 1031.879246] x25: ffff80001b2a3cd8 x24: ffff00007cad1408
[ 1031.884554] x23: 0000000080000000 x22: 0000000000000002
[ 1031.889863] x21: ffff000074f90d80 x20: ffff00007d11620c
[ 1031.895171] x19: ffff80001b2a3a80 x18: 0000000000000000
[ 1031.900480] x17: 0000000000000000 x16: 0000000000000000
[ 1031.905789] x15: 0000000000000000 x14: 0000000000000000
[ 1031.911098] x13: 0000000000000000 x12: 0000000000000000
[ 1031.916407] x11: 0000000000000000 x10: 0000000000000000
[ 1031.921715] x9 : 0000000000000000 x8 : ffff80001b2a3b68
[ 1031.927025] x7 : ffff800010c31018 x6 : ffff000074f90d80
[ 1031.932333] x5 : ffff00007d11620c x4 : ffff800010c3c880
[ 1031.937642] x3 : ffff00007fba2880 x2 : 00000000fffeffff
[ 1031.942952] x1 : ffff800010c3c880 x0 : 0000000000000000
[ 1031.948261] Call trace:
[ 1031.950707] osq_lock+0x80/0x1c0
[ 1031.953932] __mutex_lock.isra.0+0x7c/0x5b8
[ 1031.958112] __mutex_lock_slowpath+0x10/0x18
[ 1031.962378] mutex_lock+0x34/0x50
[ 1031.965693] v4l2_query_ext_ctrl+0x30/0x258
[ 1031.969872] v4l2_queryctrl+0x4c/0xe8
[ 1031.973532] v4l_queryctrl+0x80/0x98
[ 1031.977104] __video_do_ioctl+0x17c/0x3e0
[ 1031.981112] video_usercopy+0x184/0x5c0
[ 1031.984946] video_ioctl2+0x14/0x20
[ 1031.988433] v4l2_ioctl+0x3c/0x58
[ 1031.991746] do_vfs_ioctl+0x964/0xb48
[ 1031.995406] ksys_ioctl+0x44/0x90
[ 1031.998717] __arm64_sys_ioctl+0x1c/0xb8
[ 1032.002639] el0_svc_common.constprop.0+0x68/0x160
[ 1032.007427] el0_svc_handler+0x20/0x80
[ 1032.011173] el0_svc+0x8/0x204
[ 1032.014228] Code: f862d800 8b000024 f9000464 d5033abf (f8206823)
[ 1032.020320] ---[ end trace a001cd0783c2aee9 ]---
[ 1032.025029] note: gst-launch-1.0[699] exited with preempt_count 1
[ 1032.031607] VSYNC warning!
[ 1032.041100] VSYNC 104762 miss!
[ 1032.045691] Lost frame sync!