Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- k3ungy@Mio-Naruse:~/42_work/graphic_projects/rtv1$ valgrind --track-origins=yes ./rtv1
- ==10372== Memcheck, a memory error detector
- ==10372== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
- ==10372== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
- ==10372== Command: ./rtv1
- ==10372==
- ==10372== Syscall param writev(vector[...]) points to uninitialised byte(s)
- ==10372== at 0x59A8950: __writev_nocancel (syscall-template.S:84)
- ==10372== by 0x5C7BF28: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
- ==10372== by 0x5C7C31C: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
- ==10372== by 0x5C7C3A4: xcb_writev (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
- ==10372== by 0x508848D: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
- ==10372== by 0x50885EF: _XReadEvents (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
- ==10372== by 0x5086B10: XWindowEvent (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
- ==10372== by 0x10CC7E: mlx_int_wait_first_expose (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
- ==10372== by 0x10CAC3: mlx_new_window (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
- ==10372== by 0x10A132: main (main.c:107)
- ==10372== Address 0x64aabdc is 28 bytes inside a block of size 16,384 alloc'd
- ==10372== at 0x4C2EB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==10372== by 0x5078662: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
- ==10372== by 0x10C712: mlx_init (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
- ==10372== by 0x10A047: main (main.c:100)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10CBC0: mlx_int_anti_resize_win (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
- ==10372==
- ==10372== Thread 4:
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x53A65C8: sqrt (w_sqrt.c:27)
- ==10372== by 0x10ABE7: vec_length (vec_length.c:17)
- ==10372== by 0x10AC70: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10B8A3: lambertian_material (lambertian_material.c:25)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A8D5: vec_div_i (vec_div_i.c:17)
- ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10B8A3: lambertian_material (lambertian_material.c:25)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A8E0: vec_div_i (vec_div_i.c:17)
- ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10B8A3: lambertian_material (lambertian_material.c:25)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A5B8: sphere_hit (sphere_hit.c:27)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x53BC4B7: sqrtf (w_sqrtf.c:27)
- ==10372== by 0x10AE98: eq_quadratic (eq_quadratic.c:20)
- ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x53BC4B7: sqrtf (w_sqrtf.c:27)
- ==10372== by 0x10AEC5: eq_quadratic (eq_quadratic.c:21)
- ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10AEF3: eq_quadratic (eq_quadratic.c:22)
- ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10AF02: eq_quadratic (eq_quadratic.c:22)
- ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10AF11: eq_quadratic (eq_quadratic.c:22)
- ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10AF24: eq_quadratic (eq_quadratic.c:24)
- ==10372== by 0x10A5F1: sphere_hit (sphere_hit.c:29)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Thread 3:
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A604: sphere_hit (sphere_hit.c:30)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A620: sphere_hit (sphere_hit.c:32)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x53A65C8: sqrt (w_sqrt.c:27)
- ==10372== by 0x10ABE7: vec_length (vec_length.c:17)
- ==10372== by 0x10AC70: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10A6BF: sphere_hit (sphere_hit.c:38)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A8D5: vec_div_i (vec_div_i.c:17)
- ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10A6BF: sphere_hit (sphere_hit.c:38)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A8E0: vec_div_i (vec_div_i.c:17)
- ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10A6BF: sphere_hit (sphere_hit.c:38)
- ==10372== by 0x10A732: check_hit (check_hit.c:25)
- ==10372== by 0x10B983: lambertian_material (lambertian_material.c:26)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x53A65C8: sqrt (w_sqrt.c:27)
- ==10372== by 0x10ABE7: vec_length (vec_length.c:17)
- ==10372== by 0x10AC70: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10B933: lambertian_material (lambertian_material.c:31)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A8D5: vec_div_i (vec_div_i.c:17)
- ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10B933: lambertian_material (lambertian_material.c:31)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- ==10372== Conditional jump or move depends on uninitialised value(s)
- ==10372== at 0x10A8E0: vec_div_i (vec_div_i.c:17)
- ==10372== by 0x10AC81: vec_normalize (vec_normalize.c:18)
- ==10372== by 0x10B933: lambertian_material (lambertian_material.c:31)
- ==10372== by 0x10A357: lights (raytrace.c:21)
- ==10372== by 0x10A4AF: raytrace (raytrace.c:33)
- ==10372== by 0x10C0DB: ray_gen_aa (ray_gen.c:49)
- ==10372== by 0x10C337: scanline (ray_gen.c:86)
- ==10372== by 0x56946C9: start_thread (pthread_create.c:333)
- ==10372== Uninitialised value was created by a stack allocation
- ==10372== at 0x10ACA6: vec_plus (vec_plus.c:16)
- ==10372==
- Rendered !
- ^[[A^[[A^C==10372==
- ==10372== Process terminating with default action of signal 2 (SIGINT)
- ==10372== at 0x59A70BD: ??? (syscall-template.S:84)
- ==10372== by 0x5C7BC61: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
- ==10372== by 0x5C7D8D6: xcb_wait_for_event (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
- ==10372== by 0x5088707: _XReadEvents (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
- ==10372== by 0x50776B7: XNextEvent (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
- ==10372== by 0x10CB5D: mlx_loop (in /home/k3ungy/42_work/graphic_projects/rtv1/rtv1)
- ==10372== by 0x10B73C: render (render.c:90)
- ==10372== by 0x10A16F: main (main.c:109)
- ==10372==
- ==10372== HEAP SUMMARY:
- ==10372== in use at exit: 60,060 bytes in 76 blocks
- ==10372== total heap usage: 201 allocs, 125 frees, 70,613 bytes allocated
- ==10372==
- ==10372== LEAK SUMMARY:
- ==10372== definitely lost: 0 bytes in 0 blocks
- ==10372== indirectly lost: 0 bytes in 0 blocks
- ==10372== possibly lost: 0 bytes in 0 blocks
- ==10372== still reachable: 60,060 bytes in 76 blocks
- ==10372== suppressed: 0 bytes in 0 blocks
- ==10372== Rerun with --leak-check=full to see details of leaked memory
- ==10372==
- ==10372== For counts of detected and suppressed errors, rerun with: -v
- ==10372== ERROR SUMMARY: 8238243 errors from 19 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement