Bug#1060785: libspa-audioconvert: Crash sometimes due to misaligned load to YMM register.

2024-04-29 Thread K.Ohta
Hello,

This fix (by upstream) has confirmed by me too, so we can close this BUG.
 
 Thanks,
 
 Ohta.

On Mon, 29 Apr 2024 11:46:34 +0200
Dylan Aïssi  wrote:

> Hello,
> 
> Le lun. 15 janv. 2024 à 22:00, K.Ohta  a
> écrit :
> >
> > I forwarded to upstream.
> > See, https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3790
> > . Thank you for your suggestion.
> 
> This bug is marked as fixed upstream, so can we close it here as well
> or is it still an issue?
> 
> Best regards,
> Dylan
> 



Bug#1060785: libspa-audioconvert: Crash sometimes due to misaligned load to YMM register.

2024-04-29 Thread Dylan Aïssi
Hello,

Le lun. 15 janv. 2024 à 22:00, K.Ohta  a écrit :
>
> I forwarded to upstream.
> See, https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3790 .
> Thank you for your suggestion.

This bug is marked as fixed upstream, so can we close it here as well
or is it still an issue?

Best regards,
Dylan



Bug#1060785: libspa-audioconvert: Crash sometimes due to misaligned load to YMM register.

2024-01-15 Thread K.Ohta
Dear Dylan-San,

I forwarded to upstream.
See, https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3790 .
Thank you for your suggestion.
 
Ohta.

On Mon, 15 Jan 2024 18:21:56 +0100
Dylan Aïssi  wrote:

> Hi Ohta,
> 
> Le dim. 14 janv. 2024 à 10:24, Kyuma Ohta
>  a écrit :
> >
> > Sometimes ...mostly be load growth a lot..., pipe-wire daemon or
> > pipewire-pulse daemon crashes with below message [1].
> >
> > This happens misalign of loading to YMM register [2][3].
> >
> > This crash seems to happen at "vlddqu -0x20(%rcx),%ymm2" [2],
> > this need align at 256bit (but, Older Ryzen may be need only align
> > of 128bit).
> > But, RCX register didn't align of 256bits [3].
> > Value is 0x5650f98e99c4 .
> >
> > So, software related libspa-audioconvert crashes sometime and
> > randomly. I think.
> 
> Thank you for this bug report. May I ask you to forward it upstream?
> at https://gitlab.freedesktop.org/pipewire/pipewire/-/issues
> 
> Thank you!
> Best regards,
> Dylan
> 



Bug#1060785: libspa-audioconvert: Crash sometimes due to misaligned load to YMM register.

2024-01-15 Thread Dylan Aïssi
Hi Ohta,

Le dim. 14 janv. 2024 à 10:24, Kyuma Ohta
 a écrit :
>
> Sometimes ...mostly be load growth a lot..., pipe-wire daemon or
> pipewire-pulse daemon crashes with below message [1].
>
> This happens misalign of loading to YMM register [2][3].
>
> This crash seems to happen at "vlddqu -0x20(%rcx),%ymm2" [2],
> this need align at 256bit (but, Older Ryzen may be need only align of
> 128bit).
> But, RCX register didn't align of 256bits [3].
> Value is 0x5650f98e99c4 .
>
> So, software related libspa-audioconvert crashes sometime and randomly.
> I think.

Thank you for this bug report. May I ask you to forward it upstream?
at https://gitlab.freedesktop.org/pipewire/pipewire/-/issues

Thank you!
Best regards,
Dylan



Bug#1060785: libspa-audioconvert: Crash sometimes due to misaligned load to YMM register.

2024-01-14 Thread Kyuma Ohta
Package: libspa-0.2-modules
Version: 1.0.1-1
Severity: important

Dear Maintainer,

Sometimes ...mostly be load growth a lot..., pipe-wire daemon or
pipewire-pulse daemon crashes with below message [1].

This happens misalign of loading to YMM register [2][3].

This crash seems to happen at "vlddqu -0x20(%rcx),%ymm2" [2],
this need align at 256bit (but, Older Ryzen may be need only align of
128bit).
But, RCX register didn't align of 256bits [3].
Value is 0x5650f98e99c4 .

So, software related libspa-audioconvert crashes sometime and randomly.
I think.

Best regards,
Ohta.

[1]
--- begin ---
systemd-coredump[389337]: Process 9706 (pipewire-pulse) of user 1002 dumped 
core.
 
 Module libzstd.so.1 from 
deb libzstd-1.5.5+dfsg2-2.amd64
 Module libsystemd.so.0 
from deb systemd-255.2-4.amd64
 Stack trace of thread 9723:
 #0  0x7f4830237f4c 
inner_product_avx (libspa-audioconvert.so + 0x56f4c)
 #1  0x7f4830221aca 
impl_native_process (libspa-audioconvert.so + 0x40aca)
 #2  0x7f4830218af5 
impl_node_process (libspa-audioconvert.so + 0x37af5)
 #3  0x7f48301f2f1c 
impl_node_process (libspa-audioconvert.so + 0x11f1c)
 #4  0x7f4831b69619 
process_node (libpipewire-0.3.so.0 + 0x77619)
 #5  0x7f4831c31dd6 
loop_iterate (libspa-support.so + 0x9dd6)
 #6  0x7f4831b3d030 
do_loop (libpipewire-0.3.so.0 + 0x4b030)
 #7  0x7f48319983ec 
start_thread (libc.so.6 + 0x883ec)
 #8  0x7f4831a18980 
__clone (libc.so.6 + 0x108980)
 
 Stack trace of thread 9706:
 #0  0x7f4831a18e66 
epoll_wait (libc.so.6 + 0x108e66)
 #1  0x7f4831c40938 
impl_pollfd_wait (libspa-support.so + 0x18938)
 #2  0x7f4831c31d1d 
loop_iterate (libspa-support.so + 0x9d1d)
 #3  0x7f4831b61d38 
pw_main_loop_run (libpipewire-0.3.so.0 + 0x6fd38)
 #4  0x5650f3e4146c 
main (pipewire + 0x146c)
 #5  0x7f48319376ca 
__libc_start_call_main (libc.so.6 + 0x276ca)
 #6  0x7f4831937785 
__libc_start_main_impl (libc.so.6 + 0x27785)
 #7  0x5650f3e41611 
_start (pipewire + 0x1611)
 
 Stack trace of thread 9714:
 #0  0x7f4831a18e66 
epoll_wait (libc.so.6 + 0x108e66)
 #1  0x7f4831c40938 
impl_pollfd_wait (libspa-support.so + 0x18938)
 #2  0x7f4831c31d1d 
loop_iterate (libspa-support.so + 0x9d1d)
 #3  0x7f4831b9f7d5 
do_loop (libpipewire-0.3.so.0 + 0xad7d5)
 #4  0x7f48319983ec 
start_thread (libc.so.6 + 0x883ec)
 #5  0x7f4831a18980 
__clone (libc.so.6 + 0x108980)
 ELF object binary 
architecture: AMD x86-64
░░ Subject: Process 9706 (pipewire-pulse) dumped core
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ Documentation: man:core(5)
░░ 
░░ Process 9706 (pipewire-pulse) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.

--- end ---

[2]
I disassemble libspa-audioconvert.so with gdb.
Around crashes are below:
--- begin ---
0x7f4830237f36 <+278>:vmovaps %ymm1,%ymm0
0x7f4830237f3a <+282>:nopw   0x0(%rax,%rax,1)
0x7f4830237f40 <+288>:add$0x10,%eax
0x7f4830237f43 <+291>:vlddqu -0x20(%rcx),%ymm2
0x7f4830237f48 <+296>:add$0x40,%rdx
=> 0x7f4830237f4c <+300>:add$0x40,%rcx
0x7f4830237f50 <+304>:vfmadd231ps -0x60(%rdx),%ymm2,%ymm0
0x7f4830237f56 <+310>:vlddqu -0x40(%rcx),%ymm2
0x7f4830237f5b