* [Buildroot] Strange hang while executing commands
@ 2011-02-14 19:18 Martin Hicks
2011-02-17 20:47 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Martin Hicks @ 2011-02-14 19:18 UTC (permalink / raw)
To: buildroot
Hi,
Does anyone have any clues where I might start looking for the reason
behind commands within the procps package just hanging?
The built-in busybox commands work fine. I wanted vmstat from procps,
but it hangs too.
Strace shows:
execve("/bin/ps", ["ps", "aux"], [/* 15 vars */]) = 0 <0.001063>
brk(0) = 0x10040000 <0.000065>
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4801e000 <0.000084>
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory) <0.000104>
[...snip...]
mmap(0xffae000, 9500, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffae000 <0.000082>
close(3) = 0 <0.000032>
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x48020000 <0.000057>
mprotect(0xffa9000, 16384, PROT_READ) = 0 <0.000104>
mprotect(0x4802e000, 4096, PROT_READ) = 0 <0.000077>
munmap(0x4801f000, 64) = 0 <0.000098>
uname({sys="Linux", node="targa4v2", ...}) = 0 <0.000115>
--- SIGINT (Interrupt) @ 0 (0) ---
+++ killed by SIGINT +++
--
Martin Hicks P.Eng. ?? ? | ? ? ? ? mort at bork.org
Bork Consulting Inc. ? ? | ? +1 (613) 266-2296
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Strange hang while executing commands
2011-02-14 19:18 [Buildroot] Strange hang while executing commands Martin Hicks
@ 2011-02-17 20:47 ` Peter Korsgaard
2011-02-17 20:49 ` Martin Hicks
0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2011-02-17 20:47 UTC (permalink / raw)
To: buildroot
>>>>> "Martin" == Martin Hicks <mort@bork.org> writes:
Martin> Hi,
Martin> Does anyone have any clues where I might start looking for the reason
Martin> behind commands within the procps package just hanging?
Hanging or crashing?
Martin> mprotect(0xffa9000, 16384, PROT_READ) = 0 <0.000104>
Martin> mprotect(0x4802e000, 4096, PROT_READ) = 0 <0.000077>
Martin> munmap(0x4801f000, 64) = 0 <0.000098>
Martin> uname({sys="Linux", node="targa4v2", ...}) = 0 <0.000115>
Martin> --- SIGINT (Interrupt) @ 0 (0) ---
Martin> +++ killed by SIGINT +++
This looks like a crash (a null pointer access). On what arch / with
what configuration is this?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Strange hang while executing commands
2011-02-17 20:47 ` Peter Korsgaard
@ 2011-02-17 20:49 ` Martin Hicks
2011-03-28 20:08 ` Martin Hicks
0 siblings, 1 reply; 4+ messages in thread
From: Martin Hicks @ 2011-02-17 20:49 UTC (permalink / raw)
To: buildroot
On Thu, Feb 17, 2011 at 3:47 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Martin" == Martin Hicks <mort@bork.org> writes:
>
> ?Martin> Hi,
> ?Martin> Does anyone have any clues where I might start looking for the reason
> ?Martin> behind commands within the procps package just hanging?
>
> Hanging or crashing?
Hang.
>
> ?Martin> mprotect(0xffa9000, 16384, PROT_READ) ? = 0 <0.000104>
> ?Martin> mprotect(0x4802e000, 4096, PROT_READ) ? = 0 <0.000077>
> ?Martin> munmap(0x4801f000, 64) ? ? ? ? ? ? ? ? ?= 0 <0.000098>
> ?Martin> uname({sys="Linux", node="targa4v2", ...}) = 0 <0.000115>
> ?Martin> --- SIGINT (Interrupt) @ 0 (0) ---
> ?Martin> +++ killed by SIGINT +++
>
> This looks like a crash (a null pointer access). On what arch / with
> what configuration is this?
The last two lines are me hitting ^C. It hangs after the uname() forever.
This is a custom board based on MPC8379ERDB. Compiled using the code
sourcery toolchain.
(glibc, linux-2.7.37)
mh
--
Martin Hicks P.Eng. ?? ? | ? ? ? ? mort at bork.org
Bork Consulting Inc. ? ? | ? +1 (613) 266-2296
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Strange hang while executing commands
2011-02-17 20:49 ` Martin Hicks
@ 2011-03-28 20:08 ` Martin Hicks
0 siblings, 0 replies; 4+ messages in thread
From: Martin Hicks @ 2011-03-28 20:08 UTC (permalink / raw)
To: buildroot
On Thu, Feb 17, 2011 at 3:49 PM, Martin Hicks <mort@bork.org> wrote:
> On Thu, Feb 17, 2011 at 3:47 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>>> "Martin" == Martin Hicks <mort@bork.org> writes:
>>
>> ?Martin> Hi,
>> ?Martin> Does anyone have any clues where I might start looking for the reason
>> ?Martin> behind commands within the procps package just hanging?
>>
>> Hanging or crashing?
>
> Hang.
I finally got around to investigating this further. If I enable the
"build packages with debugging symbols' the problem goes away :(
If I interrupt the processes with gdb and step, I see that it's
looping through the same function over and over, for some reason. I
did try procps-3.2.8, to no avail.
Any ideas?
Thanks,
mh
(gdb) step
Single stepping until exit from function init_Linux_version,
which has no line number information.
0x0ffc9104 in _restgpr_30_x () from /lib/libproc-3.2.8.so
(gdb)
Single stepping until exit from function _restgpr_30_x,
which has no line number information.
0x0fe5f540 in vsscanf () from /lib/libc.so.6
(gdb)
Single stepping until exit from function vsscanf,
which has no line number information.
0x0fe4d4b0 in sscanf () from /lib/libc.so.6
(gdb)
Single stepping until exit from function sscanf,
which has no line number information.
0x0ffc8ba8 in init_Linux_version () from /lib/libproc-3.2.8.so
(gdb)
Single stepping until exit from function init_Linux_version,
which has no line number information.
0x0ffc9104 in _restgpr_30_x () from /lib/libproc-3.2.8.so
(gdb)
--
Martin Hicks P.Eng. ?? ? | ? ? ? ? mort at bork.org
Bork Consulting Inc. ? ? | ? +1 (613) 266-2296
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-28 20:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-14 19:18 [Buildroot] Strange hang while executing commands Martin Hicks
2011-02-17 20:47 ` Peter Korsgaard
2011-02-17 20:49 ` Martin Hicks
2011-03-28 20:08 ` Martin Hicks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.