From: Feng C. <fc...@pi...> - 2003-06-20 21:34:39
|
Hi there, I'm running valgrind to do memcheck on a program that uses OpenSSL, and having some problems: a) Before the program finished, it would crash and leave nothing traceable via gdb: program terminated with signal 6, Aborted. Cannot access memory at address 0x40302000 #0 0x4018392f in ?? () b) Lots of OpenSSL related reports which may or may not be real problems, such as ==16963== Thread 18: ==16963== Use of uninitialised value of size 4 ==16963== at 0x40872B33: des_encrypt2 (in /lib/libcrypto.so.0.9.6b) ==16963== ==16963== Thread 18: ==16963== Use of uninitialised value of size 4 ==16963== at 0x408267DD: ssl3_get_record (in /lib/libssl.so.0.9.6b) ==16963== by 0x40826FF3: ssl3_read_bytes (in /lib/libssl.so.0.9.6b) ==16963== by 0x40827FAF: ssl3_get_message (in /lib/libssl.so.0.9.6b) ==16963== by 0x40827A3C: ssl3_get_finished (in /lib/libssl.so.0.9.6b) ==16963== c) To suppress the OpenSSL error reports - because I'm not going to fix it, I added some rules in the /usr/local/lib/valgrind/default.supp file. However, it seems not always working. For example, when adding the following to the /usr/local/lib/valgrind/default.supp file, the above reports still keep coming up in the logs: { /lib/libssl.so.0.9.6b Memcheck:Cond obj:/lib/libssl.so.0.9.6b } { /lib/libcrypto.so.0.9.6b Memcheck:Cond obj:/lib/libcrypto.so.0.9.6b } { des_encrypt2 (in /lib/libcrypto.so.0.9.6b) Memcheck:Cond fun:des_encrypt2 } { des_encrypt2 again (in /lib/libcrypto.so.0.9.6b) Memcheck:Cond fun:des_encrypt2 obj:/lib/libcrypto.so.0.9.6b } Can someone please help? Thanks a lot! Feng |