Bug 11352

Summary: libpcap: do_configure failed when len(tmp) = 410
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: dengke <dengke.du>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 2.3   
Target Milestone: 2.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2017-04-13 09:48:02 UTC
checking for capable yacc/bison... ../libpcap-1.8.1/configure: line 7194: 21598 Segmentation fault      $YACC -p pcap_ -o /dev/null $srcdir/grammar.y > /dev/null 2>&1
insufficient
configure: error: bison -y is insufficient to compile libpcap.
 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them.
WARNING: /buildarea/lyang1/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/tmp/work/i586-poky-linux/libpcap/1.8.1-r0/temp/run.do_configure.18003:1 exit 1 from 'exit 1'
ERROR: Function failed: do_configure (log file is located at /buildarea/lyang1/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/tmp/work/i586-poky-linux/libpcap/1.8.1-r0/temp/log.do_configure.18003)


The simple reproducer is:
$ bitbake libpcap -cdevshell
$ bison ./grammar.y

# bison ./grammar.y 
./grammar.y: warning: 38 shift/reduce conflicts [-Wconflicts-sr]
Segmentation fault

I found this error on Ubuntu 12.04, I'm not sure whether other hosts have this issue or not, I tried to use gdb, but doesn't figure out the reason.
Comment 1 dengke 2017-09-05 01:30:56 UTC
I have test this bug on latest oe-core master branch, len(tmp)=409 is ok.