Re: Unaligned access in svn_eol__find_eol_start causes crash w/ upcoming GCC 15

2025-02-26 Thread Stefan Sperling
On Wed, Feb 26, 2025 at 02:54:43PM +0100, Daniel Sahlberg wrote: > Should have researched a bit more before replying. There was already some > code to do exactly this, but it was removed in r1722879: > > [[[ > stefan2 2016-01-04 15:17:04 > Stop using pointer arithmetics to check for proper alignm

Re: Unaligned access in svn_eol__find_eol_start causes crash w/ upcoming GCC 15

2025-02-26 Thread Daniel Sahlberg
Den ons 26 feb. 2025 kl 14:45 skrev Daniel Sahlberg < daniel.l.sahlb...@gmail.com>: > Den ons 26 feb. 2025 kl 14:30 skrev Stefan Sperling : > >> On Wed, Feb 26, 2025 at 01:24:22PM +0100, Daniel Sahlberg wrote: >> > Looking at the code, I'm assuming that if SVN_UNALIGNED_ACCESS_IS_OK was >> > set t

Re: Unaligned access in svn_eol__find_eol_start causes crash w/ upcoming GCC 15

2025-02-26 Thread Daniel Sahlberg
Den ons 26 feb. 2025 kl 14:30 skrev Stefan Sperling : > On Wed, Feb 26, 2025 at 01:24:22PM +0100, Daniel Sahlberg wrote: > > Looking at the code, I'm assuming that if SVN_UNALIGNED_ACCESS_IS_OK was > > set to 0 (so the char by char loop after #endif is used instead), the > code > > would run just

Re: Unaligned access in svn_eol__find_eol_start causes crash w/ upcoming GCC 15

2025-02-26 Thread Stefan Sperling
On Wed, Feb 26, 2025 at 01:24:22PM +0100, Daniel Sahlberg wrote: > Looking at the code, I'm assuming that if SVN_UNALIGNED_ACCESS_IS_OK was > set to 0 (so the char by char loop after #endif is used instead), the code > would run just fine. Can you confirm that? > > SVN_UNALIGNED_ACCESS_IS_OK is de

Re: Unaligned access in svn_eol__find_eol_start causes crash w/ upcoming GCC 15

2025-02-26 Thread Daniel Sahlberg
Den ons 26 feb. 2025 kl 12:33 skrev Sam James : > Hi! > Hi, Thanks for the detailed report! > When subversion-1.14.5 is built with upcoming GCC 15 with -O3 -mavx (or > -O2 -mavx -fno-vect-cost-model), it crashes in some cases in > svn_eol__find_eol_start. > > We found `svn checkout https://svn

Unaligned access in svn_eol__find_eol_start causes crash w/ upcoming GCC 15

2025-02-26 Thread Sam James
Hi! When subversion-1.14.5 is built with upcoming GCC 15 with -O3 -mavx (or -O2 -mavx -fno-vect-cost-model), it crashes in some cases in svn_eol__find_eol_start. We found `svn checkout https://svn.code.sf.net/p/sdcc/code/trunk/sdcc` was a reliable reproducer, as was `svn cleanup sdcc` once the fi