Skip to content

Instantly share code, notes, and snippets.

@bwhite
Created December 4, 2010 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhite/728590 to your computer and use it in GitHub Desktop.
Save bwhite/728590 to your computer and use it in GitHub Desktop.
brandyn@router:~/projects/libfreenect/build/bin$ ./glpclview
[Stream 70] Expected 1748 data bytes, but got 1908. Dropping...
Segmentation fault
brandyn@router:~/projects/libfreenect/build/bin$ valgrind ./glpclview
==5505== Memcheck, a memory error detector
==5505== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==5505== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==5505== Command: ./glpclview
==5505==
[Stream 70] Expected 1748 data bytes, but got 1908. Dropping...
[Stream 70] Expected 1748 data bytes, but got 1908. Dropping...
[Stream 70] Expected 1748 data bytes, but got 1908. Dropping...
[Stream 70] Expected 1748 data bytes, but got 1908. Dropping...
[Stream 70] Expected 1748 data bytes, but got 1908. Dropping...
==5505== Thread 2:
==5505== Invalid write of size 1
==5505== at 0x42F238C: convert_bayer_to_rgb (cameras.c:375)
==5505== by 0x42F26BE: video_process (cameras.c:454)
==5505== by 0x42F3C0D: iso_callback (usb_libusb10.c:187)
==5505== by 0x42FC6B0: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FE0CC: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FBD44: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC510: libusb_handle_events_timeout (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC5B1: libusb_handle_events (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42F3727: fnusb_process_events (usb_libusb10.c:66)
==5505== by 0x42F11F9: freenect_process_events (core.c:61)
==5505== by 0x402C0F1: init (in /home/brandyn/projects/libfreenect/build/lib/libfreenect_sync.so.0.0.1)
==5505== by 0x42B4CC8: start_thread (pthread_create.c:304)
==5505== Address 0x6157028 is 0 bytes inside a block of size 35,964 free'd
==5505== at 0x40257ED: free (vg_replace_malloc.c:366)
==5505== by 0x4B30049: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A931: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0B137: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A83E: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B300D8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B277D0: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B27955: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B0FCBD: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x8049688: DrawGLScene (in /home/brandyn/projects/libfreenect/build/bin/glpclview)
==5505==
==5505== Invalid write of size 1
==5505== at 0x42F239D: convert_bayer_to_rgb (cameras.c:376)
==5505== by 0x42F26BE: video_process (cameras.c:454)
==5505== by 0x42F3C0D: iso_callback (usb_libusb10.c:187)
==5505== by 0x42FC6B0: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FE0CC: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FBD44: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC510: libusb_handle_events_timeout (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC5B1: libusb_handle_events (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42F3727: fnusb_process_events (usb_libusb10.c:66)
==5505== by 0x42F11F9: freenect_process_events (core.c:61)
==5505== by 0x402C0F1: init (in /home/brandyn/projects/libfreenect/build/lib/libfreenect_sync.so.0.0.1)
==5505== by 0x42B4CC8: start_thread (pthread_create.c:304)
==5505== Address 0x6157029 is 1 bytes inside a block of size 35,964 free'd
==5505== at 0x40257ED: free (vg_replace_malloc.c:366)
==5505== by 0x4B30049: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A931: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0B137: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A83E: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B300D8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B277D0: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B27955: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B0FCBD: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x8049688: DrawGLScene (in /home/brandyn/projects/libfreenect/build/bin/glpclview)
==5505==
==5505== Invalid write of size 1
==5505== at 0x42F23AE: convert_bayer_to_rgb (cameras.c:377)
==5505== by 0x42F26BE: video_process (cameras.c:454)
==5505== by 0x42F3C0D: iso_callback (usb_libusb10.c:187)
==5505== by 0x42FC6B0: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FE0CC: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FBD44: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC510: libusb_handle_events_timeout (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC5B1: libusb_handle_events (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42F3727: fnusb_process_events (usb_libusb10.c:66)
==5505== by 0x42F11F9: freenect_process_events (core.c:61)
==5505== by 0x402C0F1: init (in /home/brandyn/projects/libfreenect/build/lib/libfreenect_sync.so.0.0.1)
==5505== by 0x42B4CC8: start_thread (pthread_create.c:304)
==5505== Address 0x615702a is 2 bytes inside a block of size 35,964 free'd
==5505== at 0x40257ED: free (vg_replace_malloc.c:366)
==5505== by 0x4B30049: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A931: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0B137: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A83E: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B300D8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B277D0: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B27955: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B0FCBD: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x8049688: DrawGLScene (in /home/brandyn/projects/libfreenect/build/bin/glpclview)
==5505==
==5505== Invalid write of size 1
==5505== at 0x42F23C4: convert_bayer_to_rgb (cameras.c:380)
==5505== by 0x42F26BE: video_process (cameras.c:454)
==5505== by 0x42F3C0D: iso_callback (usb_libusb10.c:187)
==5505== by 0x42FC6B0: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FE0CC: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FBD44: ??? (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC510: libusb_handle_events_timeout (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42FC5B1: libusb_handle_events (in /lib/libusb-1.0.so.0.0.0)
==5505== by 0x42F3727: fnusb_process_events (usb_libusb10.c:66)
==5505== by 0x42F11F9: freenect_process_events (core.c:61)
==5505== by 0x402C0F1: init (in /home/brandyn/projects/libfreenect/build/lib/libfreenect_sync.so.0.0.1)
==5505== by 0x42B4CC8: start_thread (pthread_create.c:304)
==5505== Address 0x615702b is 3 bytes inside a block of size 35,964 free'd
==5505== at 0x40257ED: free (vg_replace_malloc.c:366)
==5505== by 0x4B30049: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A931: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0B137: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4C0A83E: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B300D8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B303B8: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B277D0: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B27955: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x4B0FCBD: ??? (in /usr/lib/dri/i915_dri.so)
==5505== by 0x8049688: DrawGLScene (in /home/brandyn/projects/libfreenect/build/bin/glpclview)
==5505==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment