| Summary: | "login[423]: segfault" for minimal image | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Stoicescu Cornel <corneliux.stoicescu> |
| Component: | core | Assignee: | Saul Wold <sgw> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | alexandrux.palalau, meta.mr.watcher, meta.watcher, Qi.Chen, richard.purdie |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M6 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Stoicescu Cornel
2013-03-25 09:56:30 UTC
This seems very unlikely to be a BSP-specific bug. Are you seeing this on any other BSP? It is a general issue with core-image-minimal images. I believe I should have placed this in the OE-CORE product. Changing accordingly. confirmed on qemux86 and qemuarm. And it's not restricted to minimal image. The same problem appeared on sato-sdk image: root@qemuarm:/etc# login qemuarm login: jfiewoefiwof Password: Segmentation fault Indeed but it is not a general issue. core-image-lsb-sdk for instance does not have this issue (tested core-image-lsb-sdk-jasperforest). I debugged this issue down to the new version of the crypt() code in eglibc 2.17, it expects 2 valid chars as part the chipher, or it returns NULL. The tinylogin code uses the return to do a strcmp(). This causes the segfault. There is also an issue in the shadow version of login, but manifests itself as a perror: crypt: Invalid Argument. There are potential fixes for both of these that are being looked into currently. Verified on master branch: Commit ID: c42cc8fb38aee46f4778b9c68412a47ae5919923 |