| Summary: | groupadd: malloc(): memory corruption | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Robert Yang <liezhi.yang> |
| Component: | devtools / tool chain | Assignee: | Seebs <seebs> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Medium | CC: | liezhi.yang, meta.mr.watcher, meta.watcher, sgw, song.liu, yi.zhao, zhenfeng.zhao |
| Version: | 1.3 | ||
| Target Milestone: | 1.3 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | (P2) | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 2434 | ||
|
Description
Robert Yang
2012-06-21 05:46:26 UTC
It's a bug of pseudo, re-assign it to Peter, he will send a patch sooner. Here is the code that can reproduce the problem simply:
The too_long_line path should be longer than 300.
#include <unistd.h>
#include <stdio.h>
main()
{
if(chroot(too_long_line)){
printf("OOOOOOOOOOOO\n");
}
else
printf("NNNNNNNNNNN\n");
access("/etc/gshadow", F_OK);
}
Compile it and use the pseudo to run it, then we can see the error.
Fixed in pseudo 1.3.1. Updating tar balls and such, will send out an oe-core update for this Real Soon. Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=fe5feba665980b515a624bf6f07fff864a9edcfa Verified with 1.3 master branch git info: bd726660a3b365b8f0f702771afef30dcd05b6d7 Create a build directory, the length is 410. No errors when running "bitbake core-image-sato". |