Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get detailed errors: "F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)"?
QtWS25 Last Chance

How to get detailed errors: "F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)"?

Scheduled Pinned Locked Moved Unsolved General and Desktop
20 Posts 4 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    senmx
    wrote on 30 Dec 2020, 10:54 last edited by senmx 1 Jan 2021, 08:57
    #1
    01-01 16:54:46.122 20883 20883 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    01-01 16:54:46.122 20883 20883 F DEBUG   : Build fingerprint: 'google/coral/coral:11/RP1A.200720.009/6720564:user/release-keys'
    01-01 16:54:46.122 20883 20883 F DEBUG   : Revision: '0'
    01-01 16:54:46.122 20883 20883 F DEBUG   : ABI: 'arm'
    01-01 16:54:46.122 20883 20883 F DEBUG   : Timestamp: 2021-01-01 16:54:46+0800
    01-01 16:54:46.122 20883 20883 F DEBUG   : pid: 20653, tid: 20744, name: qtMainLoopThrea  >>> xxxxxx <<<
    01-01 16:54:46.122 20883 20883 F DEBUG   : uid: 10217
    01-01 16:54:46.123 20883 20883 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6f0062
    01-01 16:54:46.123 20883 20883 F DEBUG   :     r0  d51001e8  r1  00000001  r2  00000054  r3  bcffd47c
    01-01 16:54:46.123 20883 20883 F DEBUG   :     r4  e666f260  r5  d51001e8  r6  b9c33c10  r7  bcffd490
    01-01 16:54:46.123 20883 20883 F DEBUG   :     r8  bcffd4b8  r9  e666f260  r10 ba9a8800  r11 e666f260
    01-01 16:54:46.123 20883 20883 F DEBUG   :     ip  006f0063  sp  bcffd478  lr  bc282863  pc  006f0062
    01-01 16:54:46.123 20883 20883 F DEBUG   : 
    01-01 16:54:46.123 20883 20883 F DEBUG   : backtrace:
    01-01 16:54:46.123 20883 20883 F DEBUG   :       #00 pc 006f0062  <unknown>
    01-01 16:54:46.123 20883 20883 F DEBUG   :       #01 pc 000ea85f  /data/app/xxxxxx-M-vT35IQfEWkC3DWVSInDA==/lib/arm/libQt5Qml_armeabi-v7a.so (BuildId: 0cd979223f6a7b3dff723df3f145a5c8d62fc19a)
    
    ********** Crash dump: **********
    Build fingerprint: 'google/coral/coral:11/RP1A.200720.009/6720564:user/release-keys'
    #00 0x006f0062 <unknown>
    #01 0x000ea85f /data/app/xxxxxx-M-vT35IQfEWkC3DWVSInDA==/lib/arm/libQt5Qml_armeabi-v7a.so (BuildId: 0cd979223f6a7b3dff723df3f145a5c8d62fc19a)
    Crash dump is completed
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 30 Dec 2020, 11:10 last edited by
      #2

      Use a debugger and take a look in the stack trace to see where the error comes from.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 2 Replies Last reply 30 Dec 2020, 12:43
      1
      • C Christian Ehrlicher
        30 Dec 2020, 11:10

        Use a debugger and take a look in the stack trace to see where the error comes from.

        S Offline
        S Offline
        senmx
        wrote on 30 Dec 2020, 12:43 last edited by senmx 1 Feb 2021, 13:58
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • C Christian Ehrlicher
          30 Dec 2020, 11:10

          Use a debugger and take a look in the stack trace to see where the error comes from.

          S Offline
          S Offline
          senmx
          wrote on 31 Dec 2020, 07:24 last edited by
          #4

          @Christian-Ehrlicher I updated the content of the question, please look again.Tks.

          J 1 Reply Last reply 31 Dec 2020, 08:10
          0
          • S senmx
            31 Dec 2020, 07:24

            @Christian-Ehrlicher I updated the content of the question, please look again.Tks.

            J Offline
            J Offline
            JonB
            wrote on 31 Dec 2020, 08:10 last edited by
            #5

            @senmx
            The code you have written seems to have nothing to do with Qt.

            Since you are told

            Cause: null pointer dereference

            why don't you put some more error checking into your code? For example, maybe r = RSA_new(); is returning nullptr, I don't do, how are you sure it does not? Or, put in some qDebug() statements or similar between the lines so you know where you get to.

            S 1 Reply Last reply 31 Dec 2020, 08:52
            1
            • J JonB
              31 Dec 2020, 08:10

              @senmx
              The code you have written seems to have nothing to do with Qt.

              Since you are told

              Cause: null pointer dereference

              why don't you put some more error checking into your code? For example, maybe r = RSA_new(); is returning nullptr, I don't do, how are you sure it does not? Or, put in some qDebug() statements or similar between the lines so you know where you get to.

              S Offline
              S Offline
              senmx
              wrote on 31 Dec 2020, 08:52 last edited by senmx
              #6

              @JonB Remove this sentence and it can run normally,at least no error

              EVP_PKEY_assign_RSA(evpkey, r);
              
              J 1 Reply Last reply 31 Dec 2020, 08:56
              0
              • S senmx
                31 Dec 2020, 08:52

                @JonB Remove this sentence and it can run normally,at least no error

                EVP_PKEY_assign_RSA(evpkey, r);
                
                J Offline
                J Offline
                JonB
                wrote on 31 Dec 2020, 08:56 last edited by
                #7

                @senmx
                And you did check whether r == nullptr?

                In any case, you should look at the documentation of the non-Qt library functions you are calling. Maybe your evpkey data is wrong.

                S 1 Reply Last reply 31 Dec 2020, 09:16
                0
                • J JonB
                  31 Dec 2020, 08:56

                  @senmx
                  And you did check whether r == nullptr?

                  In any case, you should look at the documentation of the non-Qt library functions you are calling. Maybe your evpkey data is wrong.

                  S Offline
                  S Offline
                  senmx
                  wrote on 31 Dec 2020, 09:16 last edited by
                  #8

                  @JonB evpkey and r are not null

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 31 Dec 2020, 11:19 last edited by
                    #9

                    Hi,

                    Do you base your code on an official example ?
                    If so can you share it ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    S 1 Reply Last reply 31 Dec 2020, 13:15
                    0
                    • S SGaist
                      31 Dec 2020, 11:19

                      Hi,

                      Do you base your code on an official example ?
                      If so can you share it ?

                      S Offline
                      S Offline
                      senmx
                      wrote on 31 Dec 2020, 13:15 last edited by senmx
                      #10

                      @SGaist The magic is that it is normal to using a demo to test this function separately.Even add this sentence

                      EVP_PKEY_assign_RSA(evpkey, r);
                      

                      The key is that you cannot get detailed error logs.

                      S 1 Reply Last reply 31 Dec 2020, 20:03
                      0
                      • S senmx
                        31 Dec 2020, 13:15

                        @SGaist The magic is that it is normal to using a demo to test this function separately.Even add this sentence

                        EVP_PKEY_assign_RSA(evpkey, r);
                        

                        The key is that you cannot get detailed error logs.

                        S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 31 Dec 2020, 20:03 last edited by
                        #11

                        @senmx said in How to get detailed errors: "F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)"?:

                        @SGaist The magic is that it is normal to using a demo to test this function separately.

                        What do you mean by that ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          senmx
                          wrote on 1 Jan 2021, 05:36 last edited by senmx 1 Jan 2021, 05:36
                          #12

                          @SGaist It's okay, it shouldn't be caused by that, the key is is there a way to get detailed logs?

                          J 1 Reply Last reply 1 Jan 2021, 08:07
                          0
                          • S senmx
                            1 Jan 2021, 05:36

                            @SGaist It's okay, it shouldn't be caused by that, the key is is there a way to get detailed logs?

                            J Offline
                            J Offline
                            JonB
                            wrote on 1 Jan 2021, 08:07 last edited by
                            #13

                            @senmx
                            This code has nothing to do with Qt, right? You have never even bothered to say what this third-party code belongs to, or where you get your code from. And you'd like someone here to tell you how to get detailed logs out of it?

                            1 Reply Last reply
                            1
                            • S Offline
                              S Offline
                              senmx
                              wrote on 1 Jan 2021, 09:24 last edited by
                              #14

                              @JonB Yes. I now suspect that there is a memory leak in EVP_PKEY_assign_RSA, causing the following code to be wrong.

                              J 1 Reply Last reply 1 Jan 2021, 09:32
                              0
                              • S senmx
                                1 Jan 2021, 09:24

                                @JonB Yes. I now suspect that there is a memory leak in EVP_PKEY_assign_RSA, causing the following code to be wrong.

                                J Offline
                                J Offline
                                JonB
                                wrote on 1 Jan 2021, 09:32 last edited by
                                #15

                                @senmx
                                Well a memory leak would not cause a crash, rather only some wasted memory. So that should not be the cause of the issue you report.

                                Despite being asked, you still have not said a word about what this library is and more importantly where you get the sample for the code you have written.....

                                S 2 Replies Last reply 2 Jan 2021, 03:26
                                1
                                • J JonB
                                  1 Jan 2021, 09:32

                                  @senmx
                                  Well a memory leak would not cause a crash, rather only some wasted memory. So that should not be the cause of the issue you report.

                                  Despite being asked, you still have not said a word about what this library is and more importantly where you get the sample for the code you have written.....

                                  S Offline
                                  S Offline
                                  senmx
                                  wrote on 2 Jan 2021, 03:26 last edited by
                                  #16

                                  @JonB Tks. It's just a guessing, it's probably a pointer memory problem.How to get a more detailed error stack?

                                  S 1 Reply Last reply 2 Jan 2021, 17:56
                                  0
                                  • S senmx
                                    2 Jan 2021, 03:26

                                    @JonB Tks. It's just a guessing, it's probably a pointer memory problem.How to get a more detailed error stack?

                                    S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 2 Jan 2021, 17:56 last edited by
                                    #17

                                    @senmx said in How to get detailed errors: "F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)"?:

                                    @JonB Tks. It's just a guessing, it's probably a pointer memory problem.How to get a more detailed error stack?

                                    Install the debug symbols of that library and use a debugger.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    1
                                    • S Offline
                                      S Offline
                                      senmx
                                      wrote on 3 Jan 2021, 06:51 last edited by
                                      #18

                                      @SGaist Okay. Where do I get the library debug symbols, do I compile it myself?

                                      1 Reply Last reply
                                      0
                                      • J JonB
                                        1 Jan 2021, 09:32

                                        @senmx
                                        Well a memory leak would not cause a crash, rather only some wasted memory. So that should not be the cause of the issue you report.

                                        Despite being asked, you still have not said a word about what this library is and more importantly where you get the sample for the code you have written.....

                                        S Offline
                                        S Offline
                                        senmx
                                        wrote on 3 Jan 2021, 12:10 last edited by senmx 1 Mar 2021, 12:37
                                        #19

                                        @JonB Presumably you are referring to this question.What library you are asking is just a piece of code. There is no library. My main question is how to get detailed error information. I'm already trying to solve it myself.

                                        J 1 Reply Last reply 3 Jan 2021, 13:13
                                        0
                                        • S senmx
                                          3 Jan 2021, 12:10

                                          @JonB Presumably you are referring to this question.What library you are asking is just a piece of code. There is no library. My main question is how to get detailed error information. I'm already trying to solve it myself.

                                          J Offline
                                          J Offline
                                          JonB
                                          wrote on 3 Jan 2021, 13:13 last edited by JonB 1 Mar 2021, 13:14
                                          #20

                                          @senmx said in How to get detailed errors: "F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)"?:

                                          There is no library.

                                          Oh! So all the code you originally showed, and the EVP_PKEY_assign_RSA(evpkey, r); you still have, is not in a library? It's your own code, with your own source code. And there was I, thinking it was all code from OpenSSL, when in fact it is not, and you just happen to have chosen to name all your own classes/functions to match those supplied from OpenSSL....

                                          So you don't need to install any debug symbols like @SGaist said, you can just look at your own source code. Will be much easier.

                                          1 Reply Last reply
                                          1

                                          10/20

                                          31 Dec 2020, 13:15

                                          • Login

                                          • Login or register to search.
                                          10 out of 20
                                          • First post
                                            10/20
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved