Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Before sort:
- | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
- | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
- Segmentation fault (core dumped)
- william@william-VirtualBox:~/wakim_w-tp05/build$ valgrind ./test_quick_sort
- ==23839== Memcheck, a memory error detector
- ==23839== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==23839== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
- ==23839== Command: ./test_quick_sort
- ==23839==
- >> Sorted test <<
- Before sort:
- | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
- | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
- ==23839== Invalid read of size 4
- ==23839== at 0x400AD8: partition (quick_sort.c:17)
- ==23839== by 0x400B9B: quick_sort (quick_sort.c:45)
- ==23839== by 0x4007D9: test (test_quick_sort.c:39)
- ==23839== by 0x400928: sorted_test (test_quick_sort.c:50)
- ==23839== by 0x400A6E: main (test_quick_sort.c:73)
- ==23839== Address 0x51fd068 is 0 bytes after a block of size 40 alloc'd
- ==23839== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==23839== by 0x400A57: main (test_quick_sort.c:72)
- ==23839==
- ==23839== Invalid read of size 4
- ==23839== at 0x400AE4: partition (quick_sort.c:20)
- ==23839== by 0x400B9B: quick_sort (quick_sort.c:45)
- ==23839== by 0x4007D9: test (test_quick_sort.c:39)
- ==23839== by 0x400928: sorted_test (test_quick_sort.c:50)
- ==23839== by 0x400A6E: main (test_quick_sort.c:73)
- ==23839== Address 0x51fd03c is 4 bytes before a block of size 40 alloc'd
- ==23839== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==23839== by 0x400A57: main (test_quick_sort.c:72)
- ==23839==
- ==23839== Invalid write of size 4
- ==23839== at 0x400AF3: partition (quick_sort.c:21)
- ==23839== by 0x400B9B: quick_sort (quick_sort.c:45)
- ==23839== by 0x4007D9: test (test_quick_sort.c:39)
- ==23839== by 0x400928: sorted_test (test_quick_sort.c:50)
- ==23839== by 0x400A6E: main (test_quick_sort.c:73)
- ==23839== Address 0x51fd03c is 4 bytes before a block of size 40 alloc'd
- ==23839== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==23839== by 0x400A57: main (test_quick_sort.c:72)
- ==23839==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement