Skip to content

Segfault RPi 400 #15

Description

@pepi55

After compiling on a raspberrypi 400:

Program received signal SIGSEGV, Segmentation fault.
0x0000aaaaaaaab538 in menu_load () at src/menu.c:154
154                             command[i][j] = c;
(gdb) p command
$1 = {0xaaaaaaabf510 "/bin/clear", 0xaaaaaaac0980 "/bin/ls -l", '\377' <repeats 190 times>..., 0x0, 0x0, 0x0, 0x0,
  0x0, 0x0, 0x0, 0x0}
(gdb) p c
$2 = 255 '\377'
(gdb) p i
$3 = 1
(gdb) p j
$4 = 128640
$ uname -a
Linux Pie400 5.4.77-1-MANJARO-ARM #1 SMP PREEMPT Tue Nov 17 18:22:54 CST 2020 aarch64 GNU/Linux
$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled as: CFLAGS="-O0 -ggdb -Wall -pedantic" make -j $(nproc)

Before that: make -j $(nproc) && sudo make install -- same error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions