Program received signal SIGSEGV, Segmentation fault.

Home Forums Forums Technical Support for BerryIMU Program received signal SIGSEGV, Segmentation fault.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #15953
    jaume
    Participant

    Hello:

    I compile

    gcc -g -o compass_tutorial04 compass_tutorial04.c -lSDL sdl-config --cflags sdl-config --libs

    and exuecution with gdb:

    pi@raspy2:~/BerryIMU/compass_tutorial04_graphical_output $ gdb compass_tutorial04
    GNU gdb (Raspbian 8.2.1-2) 8.2.1
    Copyright (C) 2018 Free Software Foundation, Inc.
    L……..
    ……
    Starting program: /home/pi/BerryIMU/compass_tutorial04_graphical_output/compass_tutorial04
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library “/lib/arm-linux-gnueabihf/libthread_db.so.1”.

    ##### BerryIMUv1/LSM9DS0 DETECTED #####

    Program received signal SIGSEGV, Segmentation fault.
    0x00011824 in startSDL () at sdl.c:42
    42 screen = SDL_SetVideoMode(videoInfo->current_w, videoInfo->current_h, videoInfo->vfmt->BitsPerPixel, SDL_SWSURFACE );
    (gdb)

    The same with:

    gyro_accelerometer_tutorial02_inclinometer

    Please have solution?

    Thanks

    Jaume

     

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…