On 29/08/2014 1:31 AM, vineet59 [via OpenSSL] wrote:
> Hi
> Please help me to resolve this issue of segmentation fault.Below is 
> the stack trace from valgrind,may this helps:
> valgrind ./ssl fecdba9876543210 40fedf386da13d57 test.txt test.des
> ==30856== Memcheck, a memory error detector
> ==30856== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
> ==30856== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright 
> info
> ==30856== Command: ./ssl fecdba9876543210 40fedf386da13d57 test.txt 
> test.des
> ==30856==
> ==30856== Invalid write of size 1
> ==30856==    at 0x8048B4C: translate (in /home/vineet/ssl)
> ==30856==    by 0x8048865: main (in /home/vineet/ssl)
> ==30856==  Address 0x4026b34 is 0 bytes after a block of size 4 alloc'd
> ==30856==    at 0x4005E5E: malloc (vg_replace_malloc.c:236)
> ==30856==    by 0x8048845: main (in /home/vineet/ssl)
> ==30856==
> ==30856== Invalid write of size 1
> ==30856==    at 0x8048B4C: translate (in /home/vineet/ssl)
> ==30856==    by 0x80488DF: main (in /home/vineet/ssl)
> ==30856==  Address 0x4026b6c is 0 bytes after a block of size 4 alloc'd
> ==30856==    at 0x4005E5E: malloc (vg_replace_malloc.c:236)
> ==30856==    by 0x80488BF: main (in /home/vineet/ssl)
> ==30856==
> ==30856== Invalid read of size 4
> ==30856==    at 0x80488EA: main (in /home/vineet/ssl)
> ==30856==  Address 0x4026b6c is 0 bytes after a block of size 4 alloc'd
> ==30856==    at 0x4005E5E: malloc (vg_replace_malloc.c:236)
> ==30856==    by 0x80488BF: main (in /home/vineet/ssl)
> ==30856==
> ==30856== Use of uninitialised value of size 4
> ==30856==    at 0x50BC95: DES_set_odd_parity (in 
> /lib/libcrypto.so.0.9.8e)
> ==30856==    by 0x80488FA: main (in /home/vineet/ssl)
> ==30856==
> ==30856== Invalid read of size 1
> ==30856==    at 0xAC5B3D: fclose@@GLIBC_2.1 (in /lib/libc-2.5.so)
> ==30856==    by 0x8048A30: main (in /home/vineet/ssl)
> ==30856==  Address 0x41414187 is not stack'd, malloc'd or (recently) 
> free'd
> ==30856==
> ==30856==
> ==30856== Process terminating with default action of signal 11 (SIGSEGV)
> ==30856==  Access not within mapped region at address 0x41414187
> ==30856==    at 0xAC5B3D: fclose@@GLIBC_2.1 (in /lib/libc-2.5.so)
> ==30856==    by 0x8048A30: main (in /home/vineet/ssl)
> ==30856==  If you believe this happened as a result of a stack
> ==30856==  overflow in your program's main thread (unlikely but
> ==30856==  possible), you can try to increase the size of the
> ==30856==  main thread stack using the --main-stacksize= flag.
> ==30856==  The main thread stack size used in this run was 10485760.
> 32==30856==
> ==30856== HEAP SUMMARY:
> ==30856==     in use at exit: 1,582 bytes in 26 blocks
> ==30856==   total heap usage: 51 allocs, 25 frees, 8,503 bytes allocated
> ==30856==
> ==30856== LEAK SUMMARY:
> ==30856==    definitely lost: 4 bytes in 1 blocks
> ==30856==    indirectly lost: 0 bytes in 0 blocks
> ==30856==      possibly lost: 4 bytes in 1 blocks
> ==30856==    still reachable: 1,574 bytes in 24 blocks
> ==30856==         suppressed: 0 bytes in 0 blocks
> ==30856== Rerun with --leak-check=full to see details of leaked memory
> ==30856==
> ==30856== For counts of detected and suppressed errors, rerun with: -v
> ==30856== Use --track-origins=yes to see where uninitialised values 
> come from
> ==30856== ERROR SUMMARY: 14 errors from 5 contexts (suppressed: 25 
> from 8)
> Segmentation fault
>
> Respond me as soon as possible.
> Thanks!!
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://openssl.6102.n7.nabble.com/Generation-of-DES-key-for-use-in-DES-encrypt1-tp52999p53170.html
>  
>
> To unsubscribe from Generation of DES key for use in DES_encrypt1(), 
> click here 
> <http://openssl.6102.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=52999&code=dmluZWV0c2lldGFsbGRAZ21haWwuY29tfDUyOTk5fDE2Njg4NDkxNjI=>.
> NAML 
> <http://openssl.6102.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>  
>





--
View this message in context: 
http://openssl.6102.n7.nabble.com/Generation-of-DES-key-for-use-in-DES-encrypt1-tp52999p53171.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.

Reply via email to