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

Seg fault in cpp API of afb-daemon (bindings/tuto-3.cpp)

    XMLWordPrintable

Details

    Description

      When running afb-daemon with tuto-3.so:

      afb-daemon --binding bindings/tutorials/tuto-3.so --port 3333 --token ''
      

      On the client side:

      afb-client-demo -H ws://localhost:3333/api?token=x
      tuto-3 login {"user":"jobol","password":"please"}
      

      Obtained result:

      on the client side:

      ON-REPLY 2:tuto-3/login: ERROR 
      { 
       "jtype":"afb-reply", 
       "request":{ 
       "status":"aborted", 
       "info":"signal Segmentation fault(11) caught" 
       } 
      } 

      On the daemon side:

      ERROR: ALERT! signal 11 received: Segmentation fault [/mnt/c/Users/teddy/Documents/wsl_space/app-framework-binder/src/sig-monitor.c:362,on_signal_error]
      ERROR: BACKTRACE due to signal Segmentation fault/11:
       [1/5] ./cmake-build-debug-wsl-gcc9/src/afb-daemon(+0x34e7d) [0x7f0c00634e7d]
       [2/5] ./cmake-build-debug-wsl-gcc9/src/afb-daemon(+0x3535e) [0x7f0c0063535e]
       [3/5] ./cmake-build-debug-wsl-gcc9/src/afb-daemon(+0x357b3) [0x7f0c006357b3]
       [4/5] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890) [0x7f0bffff2890]
       [5/5] [0x7fffc6c33cc0]
       [/mnt/c/Users/teddy/Documents/wsl_space/app-framework-binder/src/sig-monitor.c:103,dumpstack]

       

      Expected result:

      similar to tuto-2:.

       

      Attachments

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

        Activity

          People

            jobol-iot jose bollo
            teddy.zhai Teddy Zhai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: