Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2292

Aborted when use afb_api_event_handler_add

    Details

      Description

      I was trying to use "afb_api_event_handler_add" in homescreen-service init() function, but when homescreen-service starting I got below log:

      Mar 30 07:11:12 m3ulcb afbd-homescreen-service@0.1[3949]: *** buffer overflow detected ***: afbd-homescreen-service@0.1 terminated
      Mar 30 07:11:12 m3ulcb afbd-homescreen-service@0.1[3949]:  ERROR: Terminating signal 6 received: Aborted [/usr/src/debug/af-binder/master+gitAUTOINC+f47f9d8473-r0/git/src/sig-monitor.c:213,on_signal_terminate]
      Mar 30 07:11:12 m3ulcb afbd-homescreen-service@0.1[3949]:  ERROR: BACKTRACE due to signal Aborted/6:
      Mar 30 07:11:12 m3ulcb afbd-homescreen-service@0.1[3949]:  [1/1] afbd-homescreen-service@0.1(+0x372d4) [0xaaaae56502d4]
      Mar 30 07:11:12 m3ulcb afbd-homescreen-service@0.1[3949]:  [/usr/src/debug/af-binder/master+gitAUTOINC+f47f9d8473-r0/git/src/sig-monitor.c:78,dumpstack]
      Mar 30 07:11:12 m3ulcb systemd[1]: afm-service-homescreen-service--0.1--main@0.service: Main process exited, code=exited, status=1/FAILURE
      Mar 30 07:11:12 m3ulcb systemd[1]: afm-service-homescreen-service--0.1--main@0.service: Unit entered failed state.
      Mar 30 07:11:12 m3ulcb systemd[1]: afm-service-homescreen-service--0.1--main@0.service: Failed with result 'exit-code'.
      

      This issue only referenced agl-service-homescreen, the sourcecode is at here.
      please `git diff HEAD^ HEAD` to see difference.

      The way of reproducing this issue is as below:

      • use sdk to compile agl-service-homescreen
        mkdir build;cd build;cmake ..;make
        
      • compress wgt file,
        cd build/package
        $AGL_TOP/sysroots/x86_64-aglsdk-linux/usr/bin/wgtpkg-pack -f -o homescreen-service.wgt root
        
      • use afm-util to uninstall/install homescreen-service.wgt
      • restart, then grep journal log with "homescreen-service"

        Attachments

        1. af-binder-82-crash.log
          3 kB
        2. af-binder-82-gdb.log
          3 kB
        3. af-binder-83-crash.log
          3 kB
        4. af-binder-83-gdb.log
          3 kB
        5. globset.c
          9 kB
        6. globset.h
          1 kB
        7. stack
          4 kB

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                jobol-iot josé bollo
                Reporter:
                wangzhiqiang zhiqiang wang
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: