FW: Signal 11 caught by ps on Alpha
I hit this problem and found it quite annoying, so I debugged & fixed it. I'm
forwarding this to debian-alpha in case anyone else hits it before the
package can be fixed. It's bug #52482 in Debian's bug tracking system.
-Doug
------------------------
Package: procps
Version: 1:2.0.6-2
On an Alpha system, ps 2.0.6-2 exits with Signal 11. Example:
jekyl:~$ ps
PID TTY TIME CMD
Signal 11 caught by ps (procps version 2.0.6).
Please send bug reports to <procps-bugs@redhat.com>
The problem is one of 32 vs. 64-bit pointers, in devname.c of libproc.so. A
parameter is declared as int that is really a pointer to char. Diff follows:
*** devname.c Fri Dec 10 21:31:23 19
--- devname.c~ Fri Dec 10 19:14:53 1999
***************
*** 137,143 ****
* Useful names could be in /proc/PID/fd/2 (stderr, seldom redirected)
* and in /proc/PID/fd/255 (used by bash to remember the tty).
*/
! static int link_name(char * const buf, int maj, int min, int pid, char *name){
struct stat sbuf;
char path[32];
int count;
--- 137,143 ----
* Useful names could be in /proc/PID/fd/2 (stderr, seldom redirected)
* and in /proc/PID/fd/255 (used by bash to remember the tty).
*/
! static int link_name(char * const buf, int maj, int min, int pid, int name){
struct stat sbuf;
char path[32];
int count;
-Doug Larrick
Reply to: