Bug 2664 - icu 3.6: do_install failed: Segmentation fault (tmpdir length)
Summary: icu 3.6: do_install failed: Segmentation fault (tmpdir length)
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium major
Target Milestone: 1.3 M4
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard: (QA testing completed) Done
Depends on:
Blocks: 2434
  Show dependency tree
 
Reported: 2012-06-27 02:30 UTC by Robert Yang
Modified: 2012-07-06 03:33 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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