Am 17.03.2012 03:22, schrieb Ferosh Jacob:
> Hi all
>
> I have an OpenMP program written in C and OpenMP, the program runs fine
> for some sizes of data,
> For bigger sizes it is throwing a segmentation fault, I tried setting
> the ulimit -s 10000, unlimited, G/K/O, MP_STACKSIZE, variables but all
> in vain.
>
> While running through valgrind this is not happening, the program
> ends normally.

Probably your program has problems with with data races/locking, which 
do not appear (by luck_) in valgrind, as VG is serializing threads.
Trying to mimicking the VG environment is probably not what you want:
Why to parallelize a program which later is run only on just one core? 
The easier way is not to use OpenMP ;-)

You can check for races/locking problems with the VG tools DRD and helgrind.

Josef


   Below is the Valgrind summary. I believe if I can setup
> the execution environment as in the Valgrind, my program will execute
> normally. :)
> Anyone knows where I can find this information, like the value of
> variables set before executing a program in Valgrind.  Please let me
> know if you need more information.
>
> ==4506==
> ==4506== HEAP SUMMARY:
> ==4506==     in use at exit: 1,764 bytes in 4 blocks
> ==4506==   total heap usage: 37,477 allocs, 37,473 frees, 7,095,680
> bytes allocated
> ==4506==
> ==4506== LEAK SUMMARY:
> ==4506==    definitely lost: 0 bytes in 0 blocks
> ==4506==    indirectly lost: 0 bytes in 0 blocks
> ==4506==      possibly lost: 152 bytes in 1 blocks
> ==4506==    still reachable: 1,612 bytes in 3 blocks
> ==4506==         suppressed: 0 bytes in 0 blocks
> ==4506== Rerun with --leak-check=full to see details of leaked memory
> ==4506==
> ==4506== For counts of detected and suppressed errors, rerun with: -v
> ==4506== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 6)
>
>
> Thanks
> Ferosh
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Valgrind-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to