Can anyone provide me some insight what is the root cause of the following problem & how to fix it? (ie. Do it need to recompile tshark or just have the dependence updated?) The version of tshark and its dependency are from the sunfreeware.com.
...
gdb indicate there is a Illegal instruction in the libcrypto.so.1.0.0
asked 02 Dec ‘11, 10:12 Kelvin Lee edited 02 Dec ‘11, 10:27 Guy Harris ♦♦ |
One Answer:
The root cause of the problem is probably that SPARC is the one remaining processor out there (or, at least, the one remaining processor used in general-purpose computers) that traps on unaligned accesses rather than supporting unaligned accesses, most people develop code on other processors and may not realize that you can't blithely dereference unaligned pointers, and some compilers don't warn about those dereferences (either because they're generating code for other processors and don't bother to do the check or don't bother to do the check at all) and even for the ones that do we aren't checking for those warnings. :-) I.e., this is a Wireshark bug, it's just one that doesn't show up on most machines. (That's probably different from the SIGILL problem, which is some other issue, perhaps an issue with gdb.) Do you have a stack trace of the "bus error" crash? I'll see whether there are any alignment warnings coughed up by, for example, the Clang static analyzer. answered 02 Dec '11, 10:32 Guy Harris ♦♦ |