This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 'make' and 'ls' hang


I have the same problem with mc (midnight commander)
very odd...



On Saturday 15 December 2001 09:21, Art Boulatov wrote:
> Hi,
>
> I know such gcc&glibc configuration is probably not supported on this list
> right now, but could you please help me to understand what causes the
> following to happen?
>
> I've just built the base linux system from scratch, using
> gcc version 3.0.3 20011213 (prerelease) and glibc-2.2.90 (CVS).
> All the software I've compiled and installed works fine (including XFree),
> except few programs like GNU make and ls, which hang or segfault with the
> same symptom:
>
> # ldd /bin/ls.dynamic
>         librt.so.1 => /lib/librt.so.1 (0x4001b000)
>         libc.so.6 => /lib/libc.so.6 (0x4002d000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x4016b000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2
>
> # strace /bin/ls.dynamic
>
> ....................<snip>
> open("/lib/libpthread.so.0", O_RDONLY)  = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220C\0"..., 1024)
> = 1024
> fstat64(3, {st_mode=S_IFREG|0755, st_size=104468, ...}) = 0
> old_mmap(NULL, 87384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4016b000
> mprotect(0x40179000, 30040, PROT_NONE)  = 0
> old_mmap(0x40179000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0xd000) = 0x40179000
> close(3)                                = 0
> munmap(0x40018000, 8181)                = 0
> getrlimit(0x3, 0xbffffa14)              = 0
> setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
> getpid()                                = 30653
> uname({sys="Linux", node="some.host.ru", ...}) = 0
> rt_sigaction(SIGRTMIN, {0x40174500, [], 0x4000000}, NULL, 8) = 0
> rt_sigaction(SIGRT_1, {0x401735b0, [], 0x4000000}, NULL, 8) = 0
> rt_sigaction(SIGRT_2, {0x40174590, [], 0x4000000}, NULL, 8) = 0
> rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
> _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff7dc, 35, (nil), 0}) = 0
> brk(0)                                  = 0x8054304
> brk(0x8054334)                          = 0x8054334
> brk(0x8055000)                          = 0x8055000
> rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
> rt_sigsurspend([]
> <unfinished ...>
> ---------------------------------------------------------------------------
>--------------------
>
> # ldd /usr/bin/make.dynamic
>         libutil.so.1 => /lib/libutil.so.1 (0x4001b000)
>         librt.so.1 => /lib/librt.so.1 (0x4001e000)
>         libc.so.6 => /lib/libc.so.6 (0x40030000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x4016e000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
>
> # strace /usr/bin/make.dynamic
>
> .....................<snip>
> open("/lib/libpthread.so.0", O_RDONLY)  = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220C\0"..., 1024)
> = 1024
> fstat64(3, {st_mode=S_IFREG|0755, st_size=104468, ...}) = 0
> old_mmap(NULL, 87384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4016e000
> mprotect(0x4017c000, 30040, PROT_NONE)  = 0
> old_mmap(0x4017c000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0xd000) = 0x4017c000
> close(3)                                = 0
> munmap(0x40018000, 8181)                = 0
> getrlimit(0x3, 0xbffffa04)              = 0
> setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
> getpid()                                = 30660
> uname({sys="Linux", node="some.host.ru", ...}) = 0
> rt_sigaction(SIGRTMIN, {0x40177500, [], 0x4000000}, NULL, 8) = 0
> rt_sigaction(SIGRT_1, {0x401765b0, [], 0x4000000}, NULL, 8) = 0
> rt_sigaction(SIGRT_2, {0x40177590, [], 0x4000000}, NULL, 8) = 0
> rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
> _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff7cc, 35, (nil), 0}) = 0
> brk(0)                                  = 0x8069d04
> brk(0x8069d34)                          = 0x8069d34
> brk(0x806a000)                          = 0x806a000
> rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
> rt_sigsuspend([] <unfinished ...>
>
>
> Thanks in advance,
> Art.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]