| Summary: | Pseudo segfaults on CentOS 5.5 | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Pseudo | Reporter: | Joshua Lock - Disabled <josh> |
| Component: | pseudo | Assignee: | Mark Hatle <mark.hatle> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | High | CC: | dvhart, msm-oss, seebs, yp.pseudo.watcher, yp.watcher |
| Version: | unspecified | ||
| Target Milestone: | 1.1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Joshua Lock - Disabled
2011-07-15 16:59:32 UTC
objdump -T does the trick nicely, purely for example my F15 box lists: joshual@scimitar:/lib $ objdump -T libc.so.6 | grep realpath 416c3f00 g DF .text 00000041 (GLIBC_2.0) realpath 415e60e0 g DF .text 00000478 GLIBC_2.3 realpath 4169a330 g DF .text 00000037 GLIBC_2.4 __realpath_ch From CentOS 5.6 [mattsm@busy poky (master)]$ cat /etc/issue CentOS release 5.6 (Final) Kernel \r on an \m [mattsm@busy poky (master)]$ objdump -T /lib/libc.so.6 | grep realpath 009cca90 g DF .text 0000003f (GLIBC_2.0) realpath 008f75c0 g DF .text 000004c1 GLIBC_2.3 realpath 009a8030 g DF .text 00000038 GLIBC_2.4 __realpath_chk And not /lib64/libc.so.6 [mattsm@busy poky (master)]$ objdump -T /lib64/libc.so.6 | grep realpath 0000003e08d09bf0 g DF .text 000000000000001b (GLIBC_2.2.5) realpath 0000003e08c3c8e0 g DF .text 00000000000004ab GLIBC_2.3 realpath 0000003e08ce8670 g DF .text 000000000000001b GLIBC_2.4 __realpath_chk Backtrace from IRC: program received signal SIGSEGV, Segmentation fault. 0x00007fffffffe260 in ?? () (gdb) bt #0 0x00007fffffffe260 in ?? () #1 0x00002aaaaaac78a7 in open (path=0x48c08e "/dev/tty", flags=2050) at pseudo_wrapfuncs.c:7490 #2 0x0000000000423c15 in check_dev_tty () #3 0x000000000041a0ed in main () (gdb) Possible fix: in the realpath_fix.patch... line 68: int (*f)(void); change that to: int (*f)(void) = (int (*)(void)) NULL; *** Bug 1177 has been marked as a duplicate of this bug. *** Confirm fixed on my CentOS 5.5 box Fixed in pseudo 1.1.2, which is now available on the github page. I was surprised that gcc didn't warn about that. A patch from upstream has been merged into oe-core: http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=5fdc8ab37e11781112e74f93f6c420ecb303fa88 Verify fixed |