public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
@ 2022-12-27 10:59 registration at filiproland dot hu
  2022-12-27 11:02 ` [Bug c/108232] " registration at filiproland dot hu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-27 10:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

            Bug ID: 108232
           Summary: Bus & Segmentation error on lz4_decompress.c  while
                    make linux-raspi
           Product: gcc
           Version: 11.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: registration at filiproland dot hu
  Target Milestone: ---

The output of gcc -v:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
11.3.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-11
--program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --enable-libphobos-checking=release
--with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
--enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release
--build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
--with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)

--------------------------------------------------------------------------------

The commandline trigger the bug:

~/<...>/linux-raspi-5.15.0$ sudo make

--> 

gcc -Wp,-MMD,lib/lz4/.lz4_decompress.o.d -nostdinc -isystem
/usr/lib/gcc/aarch64-linux-gnu/11/include -I./arch/arm64/include
-I./arch/arm64/include/generated  -I./include -I./arch/arm64/include/uapi
-I./arch/arm64/include/generated/uapi -I./include/uapi
-I./include/generated/uapi -include ./include/linux/compiler-version.h -include
./include/linux/kconfig.h -I./ubuntu/include -include
./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian
-DCC_USING_PATCHABLE_FUNCTION_ENTRY -DKASAN_SHADOW_SCALE_SHIFT=
-fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE
-Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type
-Wno-format-security -std=gnu89 -mgeneral-regs-only
-DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -mabi=lp64
-fno-asynchronous-unwind-tables -fno-unwind-tables
-mbranch-protection=pac-ret+leaf+bti -Wa,-march=armv8.5-a
-DARM64_ASM_ARCH='"armv8.5-a"' -DKASAN_SHADOW_SCALE_SHIFT=
-fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation
-Wno-format-overflow -Wno-address-of-packed-member -O2
-fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong
-Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable
-Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls
-fno-stack-clash-protection -g -gdwarf-4 -fpatchable-function-entry=2
-Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation
-Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict
-Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow
-fno-stack-check -fconserve-stack -Werror=date-time
-Werror=incompatible-pointer-types -Werror=designated-init
-Wno-packed-not-aligned -mstack-protector-guard=sysreg
-mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1424 -O3 
-fsanitize=bounds -fsanitize=shift -fsanitize=bool -fsanitize=enum   
-DKBUILD_MODFILE='"lib/lz4/lz4_decompress"'
-DKBUILD_BASENAME='"lz4_decompress"' -DKBUILD_MODNAME='"lz4_decompress"'
-D__KBUILD_MODNAME=kmod_lz4_decompress -c -o lib/lz4/lz4_decompress.o
lib/lz4/lz4_decompress.c

-------------------------------------------------------------------------------

The error while 'make' 'linux-raspi-5.15.0' source on RPi4:

...
lib/lz4/lz4_decompress.c:575:1: internal compiler error: Bus error
  575 | }
      | ^

lib/lz4/lz4_decompress.c:575:1: internal compiler error: Segmentation fault
gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report,
...

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
@ 2022-12-27 11:02 ` registration at filiproland dot hu
  2022-12-27 11:10 ` registration at filiproland dot hu
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-27 11:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #1 from Filip Roland <registration at filiproland dot hu> ---
Created attachment 54157
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54157&action=edit
lz4_decompress.i.gz

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
  2022-12-27 11:02 ` [Bug c/108232] " registration at filiproland dot hu
@ 2022-12-27 11:10 ` registration at filiproland dot hu
  2022-12-27 12:08 ` marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-27 11:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

Filip Roland <registration at filiproland dot hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |Raspberry Pi4
              Build|                            |Raspberry Pi4
             Target|                            |Raspberry Pi4

--- Comment #2 from Filip Roland <registration at filiproland dot hu> ---
I've downloaded linux source code with '$ sudo apt source
linux-image-5.15.0-1021-raspi'
After turn off CONFIG_STRICT_DEVMEM with use of '$ sudo make menuconfig'
Kernel hacking --> Filter dev/mem: 'N'

After tried make but no luck...

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
  2022-12-27 11:02 ` [Bug c/108232] " registration at filiproland dot hu
  2022-12-27 11:10 ` registration at filiproland dot hu
@ 2022-12-27 12:08 ` marxin at gcc dot gnu.org
  2022-12-28 18:42 ` registration at filiproland dot hu
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-27 12:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2022-12-27
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
This might me an out-of-memory issue. Can you please check the memory
consumption during the compilation?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
                   ` (2 preceding siblings ...)
  2022-12-27 12:08 ` marxin at gcc dot gnu.org
@ 2022-12-28 18:42 ` registration at filiproland dot hu
  2022-12-28 18:44 ` registration at filiproland dot hu
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-28 18:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #4 from Filip Roland <registration at filiproland dot hu> ---
Created attachment 54162
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54162&action=edit
System Monitor Scrrenshot

CPU&Memory Usage while gcc ...

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
                   ` (3 preceding siblings ...)
  2022-12-28 18:42 ` registration at filiproland dot hu
@ 2022-12-28 18:44 ` registration at filiproland dot hu
  2022-12-28 18:48 ` [Bug target/108232] " pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-28 18:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #5 from Filip Roland <registration at filiproland dot hu> ---
Created attachment 54163
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54163&action=edit
Memory Usage by 'free' while 'make' runned

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
                   ` (4 preceding siblings ...)
  2022-12-28 18:44 ` registration at filiproland dot hu
@ 2022-12-28 18:48 ` pinskia at gcc dot gnu.org
  2022-12-28 18:49 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-28 18:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works for me with:
ubuntu@ubuntu:~/src/upstream-gcc-aarch64\# ~/upstream-gcc/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/home/ubuntu/upstream-gcc/bin/gcc
COLLECT_LTO_WRAPPER=/home/ubuntu/upstream-gcc/libexec/gcc/aarch64-unknown-linux-gnu/13.0.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /home/ubuntu/src/upstream-gcc-aarch64/gcc/configure
--prefix=/home/ubuntu/upstream-gcc --enable-languages=c,c++,fortran,lto,objc,go
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.0.0 20220808 (experimental) (GCC)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
                   ` (5 preceding siblings ...)
  2022-12-28 18:48 ` [Bug target/108232] " pinskia at gcc dot gnu.org
@ 2022-12-28 18:49 ` pinskia at gcc dot gnu.org
  2022-12-28 18:59 ` registration at filiproland dot hu
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-28 18:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe you should report this to Ubuntu first since you got GCC from them.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
                   ` (6 preceding siblings ...)
  2022-12-28 18:49 ` pinskia at gcc dot gnu.org
@ 2022-12-28 18:59 ` registration at filiproland dot hu
  2022-12-28 19:01 ` registration at filiproland dot hu
  2022-12-30  9:42 ` registration at filiproland dot hu
  9 siblings, 0 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-28 18:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #8 from Filip Roland <registration at filiproland dot hu> ---
Hi!

First I tried to run make from plain terminal (Without X) in hope then will
remain more memory but it failed again.
After I 'freed' while 'make' runned at background and free memory typicaly was
over cca. 150Mi with plain terminal.
Because I didn't knewn when will it broke I runned 'free' by manually wit some
sec distinct. The result in the .txt file. The last record made after the error
report. The one before last is which was the nearest to the failure at 2-3 secs
before.
I tried to run directly the 'gcc <...>' command in background too but I cannot
'free'-d becouse it throw the fault very quickly.

After I swichted to X and ran SystemMonitor and run the 'gcc <...>' and make a
screenshot. The 'gcc <...>' runned about 10th sec, memory usage still under
100%

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
                   ` (7 preceding siblings ...)
  2022-12-28 18:59 ` registration at filiproland dot hu
@ 2022-12-28 19:01 ` registration at filiproland dot hu
  2022-12-30  9:42 ` registration at filiproland dot hu
  9 siblings, 0 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-28 19:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #9 from Filip Roland <registration at filiproland dot hu> ---
Thanks Andrew I'll test tomorrow!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/108232] Bus & Segmentation error on lz4_decompress.c  while make linux-raspi
  2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
                   ` (8 preceding siblings ...)
  2022-12-28 19:01 ` registration at filiproland dot hu
@ 2022-12-30  9:42 ` registration at filiproland dot hu
  9 siblings, 0 replies; 11+ messages in thread
From: registration at filiproland dot hu @ 2022-12-30  9:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108232

--- Comment #10 from Filip Roland <registration at filiproland dot hu> ---
Hi!

The gcc-13 not released yet but i make 'with' gcc-12 and that went through at
lz4_decompress.o...

Thanks!

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-12-30  9:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27 10:59 [Bug c/108232] New: Bus & Segmentation error on lz4_decompress.c while make linux-raspi registration at filiproland dot hu
2022-12-27 11:02 ` [Bug c/108232] " registration at filiproland dot hu
2022-12-27 11:10 ` registration at filiproland dot hu
2022-12-27 12:08 ` marxin at gcc dot gnu.org
2022-12-28 18:42 ` registration at filiproland dot hu
2022-12-28 18:44 ` registration at filiproland dot hu
2022-12-28 18:48 ` [Bug target/108232] " pinskia at gcc dot gnu.org
2022-12-28 18:49 ` pinskia at gcc dot gnu.org
2022-12-28 18:59 ` registration at filiproland dot hu
2022-12-28 19:01 ` registration at filiproland dot hu
2022-12-30  9:42 ` registration at filiproland dot hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).