gdb not working on ODROID-XU4

Post Reply
TakiEddine
Posts: 27
Joined: Mon Apr 22, 2019 1:19 am
languages_spoken: Arabic, English, French
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 1 time
Contact:

gdb not working on ODROID-XU4

Unread post by TakiEddine » Tue Nov 26, 2019 7:11 pm

I'm trying to use gdb in order to debug a c++ application with openCV. When I set the break point at a specific line and run the program, I get an illegal SIGIL instruction problem as shown below

Code: Select all

odroid@odroid:~/Taki_Eddine/workspace/StereoFull$ gdb output
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from output...done.
(gdb) b 100
Breakpoint 1 at 0x1e96: file depth.cpp, line 100.
(gdb) r
Starting program: /home/odroid/Taki_Eddine/workspace/StereoFull/output 
Cannot parse expression `.L1207 4@r4'.
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0xb2aed9c6 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1
(gdb) 

What can I do to resolve this problem ?

User avatar
AreaScout
Posts: 1128
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 26 times
Been thanked: 76 times
Contact:

Re: gdb not working on ODROID-XU4

Unread post by AreaScout » Tue Nov 26, 2019 10:29 pm

    From my personal experience with ARM I only got SIGIL (Illegal instruction) only or most when the application was compiled for different ARM architecture i.e (armv5 vs. armv7) or the compiler was build with arm support but not for a special architecture or some features are not compiled in i.e without NEON support but the app was build with NEON. Check your gcc from command line with gcc -v and look what options are build in, mine has this:

    Code: Select all

    gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/7/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
    Thread model: posix
    gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)
    
    Also the app should be build with -g -O0 option

    RG

    TakiEddine
    Posts: 27
    Joined: Mon Apr 22, 2019 1:19 am
    languages_spoken: Arabic, English, French
    ODROIDs: XU4
    Has thanked: 1 time
    Been thanked: 1 time
    Contact:

    Re: gdb not working on ODROID-XU4

    Unread post by TakiEddine » Thu Nov 28, 2019 12:49 am

    AreaScout wrote:
    Tue Nov 26, 2019 10:29 pm
      From my personal experience with ARM I only got SIGIL (Illegal instruction) only or most when the application was compiled for different ARM architecture i.e (armv5 vs. armv7) or the compiler was build with arm support but not for a special architecture or some features are not compiled in i.e without NEON support but the app was build with NEON. Check your gcc from command line with gcc -v and look what options are build in, mine has this:

      Code: Select all

      gcc -v
      Using built-in specs.
      COLLECT_GCC=gcc
      COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/7/lto-wrapper
      Target: arm-linux-gnueabihf
      Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
      Thread model: posix
      gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)
      
      Also the app should be build with -g -O0 option

      RG
      Here is the output of gcc -v, and I am using OpenMp SIMD neon to in my implementation.

      Code: Select all

      odroid@odroid:~/Desktop$ gcc -v
      Using built-in specs.
      COLLECT_GCC=gcc
      COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/7/lto-wrapper
      Target: arm-linux-gnueabihf
      Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
      Thread model: posix
      gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 
      odroid@odroid:~/Desktop$ 
      
      

      User avatar
      AreaScout
      Posts: 1128
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 26 times
      Been thanked: 76 times
      Contact:

      Re: gdb not working on ODROID-XU4

      Unread post by AreaScout » Thu Nov 28, 2019 4:49 am

        Try to recompile the application with this environment settings exported

        Code: Select all

        export CPPFLAGS="-mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -mfpu=neon-vfpv4 -ffast-math"
        export CXXFLAGS=$CPPFLAGS
        export CFLAGS=$CXXFLAGS
        
        and report back

        TakiEddine
        Posts: 27
        Joined: Mon Apr 22, 2019 1:19 am
        languages_spoken: Arabic, English, French
        ODROIDs: XU4
        Has thanked: 1 time
        Been thanked: 1 time
        Contact:

        Re: gdb not working on ODROID-XU4

        Unread post by TakiEddine » Thu Nov 28, 2019 7:15 pm

        AreaScout wrote:
        Thu Nov 28, 2019 4:49 am
          Try to recompile the application with this environment settings exported

          Code: Select all

          export CPPFLAGS="-mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -mfpu=neon-vfpv4 -ffast-math"
          export CXXFLAGS=$CPPFLAGS
          export CFLAGS=$CXXFLAGS
          
          and report back
          Exporting the flags you mentioned didn't change anything when debugging my application.

          User avatar
          AreaScout
          Posts: 1128
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 26 times
          Been thanked: 76 times
          Contact:

          Re: gdb not working on ODROID-XU4

          Unread post by AreaScout » Thu Nov 28, 2019 8:05 pm

            OK and now try with -mfpu=neon-vfpv3-d16 instead of -mfpu=neon-vfpv4 and be sure the CFLAGS get appended to your gcc command line by building with make -j7 V=1 you can then watch the output when building

            http://infocenter.arm.com/help/index.js ... 01s02.html

            RG

            TakiEddine
            Posts: 27
            Joined: Mon Apr 22, 2019 1:19 am
            languages_spoken: Arabic, English, French
            ODROIDs: XU4
            Has thanked: 1 time
            Been thanked: 1 time
            Contact:

            Re: gdb not working on ODROID-XU4

            Unread post by TakiEddine » Fri Nov 29, 2019 3:01 am

            AreaScout wrote:
            Thu Nov 28, 2019 8:05 pm
              OK and now try with -mfpu=neon-vfpv3-d16 instead of -mfpu=neon-vfpv4 and be sure the CFLAGS get appended to your gcc command line by building with make -j7 V=1 you can then watch the output when building

              http://infocenter.arm.com/help/index.js ... 01s02.html

              RG
              I'm not sure how to use the make command, and I assume that the option you're reffering to is -mfpu = vfpv3-d16 because the one you mentioned doesn't exist, anyway the same result as before. Would it be helpful if I tell you that my code contains class template ?

              User avatar
              AreaScout
              Posts: 1128
              Joined: Sun Jul 07, 2013 3:05 am
              languages_spoken: german, english
              ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
              N1, Go, VU5A, Show2, CloudShell2,
              H2, N2, VU7A, VuShell
              Has thanked: 26 times
              Been thanked: 76 times
              Contact:

              Re: gdb not working on ODROID-XU4

              Unread post by AreaScout » Fri Nov 29, 2019 4:38 am

                Ok c++ then, yea sorry I did a typo I was about referring to --with-fpu=vfpv3-d16 from your gcc versions info, what is the problem with make ? Do you have a different build system ? Did you try an older g++ i.e sudo apt install g++=4:7.3.0-3ubuntu2 I really would like to see the output of the build in verbose mode (make -j7 V=1), it's good to know what command line switches are passed to g++ when building .

                RG

                TakiEddine
                Posts: 27
                Joined: Mon Apr 22, 2019 1:19 am
                languages_spoken: Arabic, English, French
                ODROIDs: XU4
                Has thanked: 1 time
                Been thanked: 1 time
                Contact:

                Re: gdb not working on ODROID-XU4

                Unread post by TakiEddine » Fri Nov 29, 2019 7:33 pm

                AreaScout wrote:
                Fri Nov 29, 2019 4:38 am
                  Ok c++ then, yea sorry I did a typo I was about referring to --with-fpu=vfpv3-d16 from your gcc versions info, what is the problem with make ? Do you have a different build system ? Did you try an older g++ i.e sudo apt install g++=4:7.3.0-3ubuntu2 I really would like to see the output of the build in verbose mode (make -j7 V=1), it's good to know what command line switches are passed to g++ when building .

                  RG
                  You didn't get me, I'm not expert with compilers so I'm not sure where to run this command make -j7 V=1

                  User avatar
                  AreaScout
                  Posts: 1128
                  Joined: Sun Jul 07, 2013 3:05 am
                  languages_spoken: german, english
                  ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                  N1, Go, VU5A, Show2, CloudShell2,
                  H2, N2, VU7A, VuShell
                  Has thanked: 26 times
                  Been thanked: 76 times
                  Contact:

                  Re: gdb not working on ODROID-XU4

                  Unread post by AreaScout » Fri Nov 29, 2019 10:44 pm

                    It's not about compiler it's how to build a project, the standard is to have a Makefile within your folder of source files and then you issue a make from command line, how do you build the project, or do you have only the binaries ?

                    RG

                    TakiEddine
                    Posts: 27
                    Joined: Mon Apr 22, 2019 1:19 am
                    languages_spoken: Arabic, English, French
                    ODROIDs: XU4
                    Has thanked: 1 time
                    Been thanked: 1 time
                    Contact:

                    Re: gdb not working on ODROID-XU4

                    Unread post by TakiEddine » Fri Nov 29, 2019 11:55 pm

                    AreaScout wrote:
                    Fri Nov 29, 2019 4:38 am
                      Ok c++ then, yea sorry I did a typo I was about referring to --with-fpu=vfpv3-d16 from your gcc versions info, what is the problem with make ? Do you have a different build system ? Did you try an older g++ i.e sudo apt install g++=4:7.3.0-3ubuntu2 I really would like to see the output of the build in verbose mode (make -j7 V=1), it's good to know what command line switches are passed to g++ when building .

                      RG
                      You didn't get me, I'm no expert with compilers, so I'm not sure where to run this command make -j7 V=1.

                      User avatar
                      AreaScout
                      Posts: 1128
                      Joined: Sun Jul 07, 2013 3:05 am
                      languages_spoken: german, english
                      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                      N1, Go, VU5A, Show2, CloudShell2,
                      H2, N2, VU7A, VuShell
                      Has thanked: 26 times
                      Been thanked: 76 times
                      Contact:

                      Re: gdb not working on ODROID-XU4

                      Unread post by AreaScout » Sat Nov 30, 2019 6:26 pm

                        Double post because of forum problems ? Anyway if you do not know how to run make command, debugging might not be the best idea 8-)

                        RG

                        TakiEddine
                        Posts: 27
                        Joined: Mon Apr 22, 2019 1:19 am
                        languages_spoken: Arabic, English, French
                        ODROIDs: XU4
                        Has thanked: 1 time
                        Been thanked: 1 time
                        Contact:

                        Re: gdb not working on ODROID-XU4

                        Unread post by TakiEddine » Sat Nov 30, 2019 7:51 pm

                        AreaScout wrote:
                        Sat Nov 30, 2019 6:26 pm
                          Double post because of forum problems ? Anyway if you do not know how to run make command, debugging might not be the best idea 8-)

                          RG
                          I know that I use make when I have a Cmake.List. I'm not really familiar with ubuntu, and rather than laughing at me perhaps you can give me some guidelines or at least direct me to some material to review them ;)

                          TakiEddine
                          Posts: 27
                          Joined: Mon Apr 22, 2019 1:19 am
                          languages_spoken: Arabic, English, French
                          ODROIDs: XU4
                          Has thanked: 1 time
                          Been thanked: 1 time
                          Contact:

                          Re: gdb not working on ODROID-XU4

                          Unread post by TakiEddine » Sat Nov 30, 2019 8:07 pm

                          Anyway, I'll do some reading and get back to you.

                          User avatar
                          AreaScout
                          Posts: 1128
                          Joined: Sun Jul 07, 2013 3:05 am
                          languages_spoken: german, english
                          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                          N1, Go, VU5A, Show2, CloudShell2,
                          H2, N2, VU7A, VuShell
                          Has thanked: 26 times
                          Been thanked: 76 times
                          Contact:

                          Re: gdb not working on ODROID-XU4

                          Unread post by AreaScout » Sat Nov 30, 2019 9:36 pm

                            Sure, if you use CMake then you have to issue a make VERBOSE=1 command to get and see verbose output and what options are appended to the compiler :)

                            Btw. I am not laughing at you, didn't I try to advise you all the time !?

                            RG

                            TakiEddine
                            Posts: 27
                            Joined: Mon Apr 22, 2019 1:19 am
                            languages_spoken: Arabic, English, French
                            ODROIDs: XU4
                            Has thanked: 1 time
                            Been thanked: 1 time
                            Contact:

                            Re: gdb not working on ODROID-XU4

                            Unread post by TakiEddine » Sun Dec 01, 2019 5:31 am

                            Looks like I didn't get you, I have only when file in the project and did configure the options manually and executed directly this command in the terminal

                            Code: Select all

                            g++ -g  depth.cpp -O3 -o output -fopenmp -fopenmp-simd -march=native -mfpu=vfpv3-d16 `pkg-config --cflags --libs opencv`

                            User avatar
                            AreaScout
                            Posts: 1128
                            Joined: Sun Jul 07, 2013 3:05 am
                            languages_spoken: german, english
                            ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                            N1, Go, VU5A, Show2, CloudShell2,
                            H2, N2, VU7A, VuShell
                            Has thanked: 26 times
                            Been thanked: 76 times
                            Contact:

                            Re: gdb not working on ODROID-XU4

                            Unread post by AreaScout » Sun Dec 01, 2019 6:22 am

                              Ok then try this

                              Code: Select all

                              g++ -g  depth.cpp -O0 -o output -fopenmp -fopenmp-simd -mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -mfpu=neon-vfpv4 -ffast-math `pkg-config --cflags --libs opencv`
                              As you can see I use -O0 to turn of any optimization for g++, I always turn that off when debugging, are there any openmp macros inside your depth.cpp file ?

                              RG

                              TakiEddine
                              Posts: 27
                              Joined: Mon Apr 22, 2019 1:19 am
                              languages_spoken: Arabic, English, French
                              ODROIDs: XU4
                              Has thanked: 1 time
                              Been thanked: 1 time
                              Contact:

                              Re: gdb not working on ODROID-XU4

                              Unread post by TakiEddine » Sun Dec 01, 2019 4:05 pm

                              AreaScout wrote:
                              Sun Dec 01, 2019 6:22 am
                                Ok then try this

                                Code: Select all

                                g++ -g  depth.cpp -O0 -o output -fopenmp -fopenmp-simd -mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -mfpu=neon-vfpv4 -ffast-math `pkg-config --cflags --libs opencv`
                                As you can see I use -O0 to turn of any optimization for g++, I always turn that off when debugging, are there any openmp macros inside your depth.cpp file ?

                                RG
                                I did what you asked, and it didn't work. Then, I commented out the OpenMP macros from my source file, and compiled as follows

                                Code: Select all

                                g++ -g  depth.cpp -O0 -o output `pkg-config --cflags --libs opencv`
                                , and as alwyas the same result, I'm starting to doubt that it has something to do with ODROID heterogenous architecture.

                                User avatar
                                AreaScout
                                Posts: 1128
                                Joined: Sun Jul 07, 2013 3:05 am
                                languages_spoken: german, english
                                ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                N1, Go, VU5A, Show2, CloudShell2,
                                H2, N2, VU7A, VuShell
                                Has thanked: 26 times
                                Been thanked: 76 times
                                Contact:

                                Re: gdb not working on ODROID-XU4

                                Unread post by AreaScout » Sun Dec 01, 2019 6:26 pm

                                  Also don't forget to test -mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -mfpu=neon-vfpv4 with your last command line, g++ on arm can be very picky with the compiler options, try all as much combinations as you can, if it's still not working it's probably something from the opencv libraries and how they are compiled

                                  RG

                                  TakiEddine
                                  Posts: 27
                                  Joined: Mon Apr 22, 2019 1:19 am
                                  languages_spoken: Arabic, English, French
                                  ODROIDs: XU4
                                  Has thanked: 1 time
                                  Been thanked: 1 time
                                  Contact:

                                  Re: gdb not working on ODROID-XU4

                                  Unread post by TakiEddine » Tue Dec 03, 2019 5:59 pm

                                  AreaScout wrote:
                                  Sun Dec 01, 2019 6:26 pm
                                    Also don't forget to test -mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -mfpu=neon-vfpv4 with your last command line, g++ on arm can be very picky with the compiler options, try all as much combinations as you can, if it's still not working it's probably something from the opencv libraries and how they are compiled

                                    RG
                                    I have tried so far with different combinations of flags, and it always generates the same error. I'm not sure how to proceed. I'm starting to believe that this is a bug in gdb.

                                    TakiEddine
                                    Posts: 27
                                    Joined: Mon Apr 22, 2019 1:19 am
                                    languages_spoken: Arabic, English, French
                                    ODROIDs: XU4
                                    Has thanked: 1 time
                                    Been thanked: 1 time
                                    Contact:

                                    Re: gdb not working on ODROID-XU4

                                    Unread post by TakiEddine » Tue Dec 03, 2019 7:03 pm

                                    AreaScout wrote:
                                    Sun Dec 01, 2019 6:26 pm
                                      Also don't forget to test -mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -mfpu=neon-vfpv4 with your last command line, g++ on arm can be very picky with the compiler options, try all as much combinations as you can, if it's still not working it's probably something from the opencv libraries and how they are compiled

                                      RG
                                      I have tried so far with different combinations of flags, and it always generates the same error. I'm not sure how to proceed. I'm starting to believe that this is a bug in gdb.

                                      User avatar
                                      AreaScout
                                      Posts: 1128
                                      Joined: Sun Jul 07, 2013 3:05 am
                                      languages_spoken: german, english
                                      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                      N1, Go, VU5A, Show2, CloudShell2,
                                      H2, N2, VU7A, VuShell
                                      Has thanked: 26 times
                                      Been thanked: 76 times
                                      Contact:

                                      Re: gdb not working on ODROID-XU4

                                      Unread post by AreaScout » Tue Dec 03, 2019 9:36 pm

                                        There is a way to tell gdb to not stop on SIGNALS with

                                        Code: Select all

                                        (gdb) handle SIGILL nostop noprint
                                        will allow your program to continue, maybe it will help to continue the debugging, it seems that more peoples facing the illegal instruction message with gbd and libcrypto https://www.google.com/search?ei=TVXmXY ... pto.so.1.1

                                        RG
                                        These users thanked the author AreaScout for the post:
                                        odroid (Thu Dec 05, 2019 7:27 pm)

                                        TakiEddine
                                        Posts: 27
                                        Joined: Mon Apr 22, 2019 1:19 am
                                        languages_spoken: Arabic, English, French
                                        ODROIDs: XU4
                                        Has thanked: 1 time
                                        Been thanked: 1 time
                                        Contact:

                                        Re: gdb not working on ODROID-XU4

                                        Unread post by TakiEddine » Thu Dec 05, 2019 7:23 pm

                                        AreaScout wrote:
                                        Tue Dec 03, 2019 9:36 pm
                                          There is a way to tell gdb to not stop on SIGNALS with

                                          Code: Select all

                                          (gdb) handle SIGILL nostop noprint
                                          will allow your program to continue, maybe it will help to continue the debugging, it seems that more peoples facing the illegal instruction message with gbd and libcrypto https://www.google.com/search?ei=TVXmXY ... pto.so.1.1

                                          RG
                                          Finally, it works like a charm. Thank you very much for being patient with me. Now the next thing I want to do is to debug my application remotly using gdbserver from a host computer. Maybe I'll open a separate post for this.
                                          These users thanked the author TakiEddine for the post:
                                          AreaScout (Thu Dec 05, 2019 9:02 pm)

                                          Post Reply

                                          Return to “Issues”

                                          Who is online

                                          Users browsing this forum: No registered users and 0 guests