1480: "bad address" instead of "argument list too"
I get the following in a directory which has many files in it on a Braodcom 1480:
2179:tbm@bigsur: ~/build/logs] grep foo *
zsh: bad address: grep
Normally, I'd expect an "zsh: argument list too long: grep" error.
I get this with different shells. Hmm, that's interesting. "echo *" works. I assume shell built-in commands work but others don't.
Any idea?
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 10 lines · Martin Michlmayr
I get the following in a directory which has many files in it on a Braodcom 1480:
2179:tbm@bigsur: ~/build/logs] grep foo *
zsh: bad address: grepNormally, I'd expect an "zsh: argument list too long: grep" error.
I get this with different shells. Hmm, that's interesting. "echo *" works. I assume shell built-in commands work but others don't.
Chances are this is caused by the return value of some syscall. Can you use strace on a shell to isolate it? Is this 32-bit software on a 64-bit kernel?
Ralf
Quoted 2 lines · Ralf Baechle
Chances are this is caused by the return value of some syscall. Can you use strace on a shell to isolate it?
I tried, but I don't know how. "strace echo *" immediately gives a "bad address" because the wildcard is evaluated before strace is invoked. How can I call strace in this case?
Quoted 1 line
Is this 32-bit software on a 64-bit kernel?
Yes.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 7 lines · Martin Michlmayr
Quoted 2 lines · Ralf Baechle
Chances are this is caused by the return value of some syscall. Can you use strace on a shell to isolate it?
I tried, but I don't know how. "strace echo *" immediately gives a "bad address" because the wildcard is evaluated before strace is invoked. How can I call strace in this case?
Log into a second shell from another tty, find out the PID of the first shell. Then do an strace -ff -v -p <PID of first shell> in the second shell, go back to the first shell and do your echo *. You now should have the interesting bits of the log in the second window.
Quoted 1 line
Quoted 1 line
Is this 32-bit software on a 64-bit kernel?
There remain corner cases to be fixed in that emulation layer even though it's good enough for general use since a long time.
Ralf
Quoted 4 lines · Ralf Baechle
Log into a second shell from another tty, find out the PID of the first shell. Then do an strace -ff -v -p <PID of first shell> in the second shell, go back to the first shell and do your echo *. You now should have the interesting bits of the log in the second window.
Doh, I could've thought of that myself. The strace is attached.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 7 lines · Martin Michlmayr
Quoted 4 lines · Ralf Baechle
Log into a second shell from another tty, find out the PID of the first shell. Then do an strace -ff -v -p <PID of first shell> in the second shell, go back to the first shell and do your echo *. You now should have the interesting bits of the log in the second window.
Doh, I could've thought of that myself. The strace is attached.
No smoking gun in that trace, I'm afraid.
Ralf