Debug build causes applications with bindings to fail.

Description

Add dbg-pkgs to EXTRA_IMAGE_FEATURES then build agl-demo-platform image.. Any applications that are using the binding framework will segfault with below message.

 

Jun 12 22:49:12 qemux86-64 afb-daemon[935]: NOTICE: API monitor added /usr/src/debug/af-binder/1.0-r0/git/src/afb-apiset.c:252,afb_apiset_add

Jun 12 22:49:12 qemux86-64 afb-daemon[935]: NOTICE: API auth added /usr/src/debug/af-binder/1.0-r0/git/src/afb-apiset.c:252,afb_apiset_add

Jun 12 22:49:12 qemux86-64 afb-daemon[935]: ERROR: ALERT! signal 11 received: Segmentation fault /usr/src/debug/af-binder/1.0-r0/git/src/sig-monitor.c:120,on_signal_error

Jun 12 22:49:12 qemux86-64 afb-daemon[935]: ERROR: start aborted: received signal Segmentation fault /usr/src/debug/af-binder/1.0-r0/git/src/main.c:537,start

Jun 12 22:49:12 qemux86-64 systemd[289]: afm-appli-hvac@0.1.service: Main process exited, code=exited, status=1/FAILURE

Jun 12 22:49:12 qemux86-64 systemd[289]: afm-appli-hvac@0.1.service: Unit entered failed state.

Jun 12 22:49:12 qemux86-64 systemd[289]: afm-appli-hvac@0.1.service: Failed with result 'exit-code'.

Environment

None

Activity

Show:

jose bollo 
May 31, 2018 at 7:48 AM

seems to be reopened by error

jose bollo 
January 5, 2018 at 4:05 PM

the bug is corriged upstream in dlopen but I also implement exclusion of directories starting with a dot.

Fulup Ar Foll 
January 5, 2018 at 3:22 PM

As commented before, current option does not fully solve the issue. Ignoring directories starting with a dot seams the simplest option to enable yocto rpm debug.

Fulup Ar Foll 
January 5, 2018 at 3:21 PM

Current does not fix lib/.debug/xxxx.so as generated by yoto debug rpm. While the sigfaul is correctly handle this break still break corresponding binding.

The simplest option would be to exclude every directories starting with a dot '.' from binding ldpath search.

Jose Bollo 
September 19, 2017 at 10:52 AM

merged

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Contract ID

Priority

Created June 12, 2017 at 10:53 PM
Updated June 7, 2018 at 8:46 AM
Resolved May 31, 2018 at 7:48 AM