Bug 2664

Summary: icu 3.6: do_install failed: Segmentation fault (tmpdir length)
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: Medium CC: liang.li2, meta.mr.watcher, meta.watcher, richard.purdie, sgw, song.liu, zhenfeng.zhao
Version: 1.3   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (QA testing completed) Done
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 2434    

Description Robert Yang 2012-06-27 02:30:59 UTC
There is a "Segmentation fault" error when the tmpdir is longer than 470 (or less), this is because it used "char cmd[1024]" which is not enough for the command line. Allocate a larger memory size should fix this problem.
Comment 2 liang li 2012-07-06 03:33:42 UTC
in builddir "/home/yocto/test_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yoco/test_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto"(path length of dir equals 470 characters),run "bitbake icu",no error happened during build:

...
NOTE: Running task 910 of 963 (ID: 2, /buildarea/poky.ubuntu.new/meta/recipes-support/icu/icu_3.6.bb, do_install)
NOTE: package icu-3.6-r9: task do_install: Started
NOTE: package db-5.3.15-r7: task do_package_write_rpm: Succeeded
NOTE: Running noexec task 911 of 963 (ID: 561, /buildarea/poky.ubuntu.new/meta/recipes-support/db/db_5.3.15.bb, do_package_write)
NOTE: package icu-3.6-r9: task do_install: Succeeded
NOTE: Running task 912 of 963 (ID: 8, /buildarea/poky.ubuntu.new/meta/recipes-support/icu/icu_3.6.bb, do_package)
...
NOTE: Running noexec task 961 of 963 (ID: 176, /buildarea/poky.ubuntu.new/meta/recipes-core/eglibc/eglibc_2.15.bb, do_package_write)
NOTE: package perl-5.14.2-r8: task do_package_write_rpm: Succeeded
NOTE: Running noexec task 962 of 963 (ID: 230, /buildarea/poky.ubuntu.new/meta/recipes-devtools/perl/perl_5.14.2.bb, do_package_write)
NOTE: Running noexec task 963 of 963 (ID: 9, /buildarea/poky.ubuntu.new/meta/recipes-support/icu/icu_3.6.bb, do_build)
NOTE: Tasks Summary: Attempted 963 tasks of which 603 didn't need to be rerun and all succeeded.

Summary: There were 2 WARNING messages shown.

verified on :
git info:3051f3644496ab570f3c6fb8f5def9d5843b1508
git branch:poky/master

test env : 
host :Fedora 17 x86_64
linux kernel: 3.4.3-1.fc17.x86_64 #1 SMP