The jstest utility will segfault when attempting to retrieve joystick button mappings from the js interface when they have not been previously defined, which is probably the case for just about anyone calling jstest. This is due to not checking the result of two ioctl calls and using the result to index into a char *[] array of button/axis names.
Created attachment 86386 [details, diff] patch to fix segfault my proposed patch to fix this segfault. I can also confirm this works well on x86_64 (~amd64)
the patch works fine here my on x86 box. :)
thanks, patch added to joystick-20060731