Skip to content

Instantly share code, notes, and snippets.

@tosiara
Created March 10, 2020 09:03
Show Gist options
  • Save tosiara/d96c567c282827ea22f3d599f0930b3e to your computer and use it in GitHub Desktop.
Save tosiara/d96c567c282827ea22f3d599f0930b3e to your computer and use it in GitHub Desktop.
[1:ml1:MyCam1] [NTC] [ALL] motion_init: Camera 101 started: motion detection Enabled
[1:ml1:MyCam1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1:MyCam1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1:MyCam1] [ALR] [VID] v4l2_device_open: Failed to open video device /dev/video0: No such file or directory
[1:ml1:MyCam1] [ERR] [VID] vid_start: V4L2 device failed to open
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1:MyCam1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1:MyCam1] [NTC] [DBL] dbse_init: Database backend mysql
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: Cannot connect to MySQL database motion on host localhost with user motion
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: MySQL error was Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[1:ml1:MyCam1] [NTC] [ALL] motion_loop: Thread exiting
[0:memcheck-amd64-] [NTC] [ALL] main: Motion thread 1 restart
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 is from cams2/camera.conf
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 Camera Name: MyCam1 Device: /dev/video0
[1:ml1:MyCam1] [NTC] [ALL] motion_init: Camera 101 started: motion detection Enabled
[1:ml1:MyCam1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1:MyCam1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1:MyCam1] [ALR] [VID] v4l2_device_open: Failed to open video device /dev/video0: No such file or directory
[1:ml1:MyCam1] [ERR] [VID] vid_start: V4L2 device failed to open
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1:MyCam1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1:MyCam1] [NTC] [DBL] dbse_init: Database backend mysql
==29514== Thread 4 ml1:MyCam1:
==29514== Invalid read of size 8
==29514== at 0x6863E6F: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x1165FB: dbse_init_mysql (motion.c:1043)
==29514== by 0x1165FB: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Address 0x16da2200 is 0 bytes inside a block of size 128 free'd
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863F55: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x115DD0: dbse_deinit (motion.c:1170)
==29514== by 0x115DD0: motion_cleanup (motion.c:1736)
==29514== by 0x11AE3F: motion_loop (motion.c:2982)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Block was alloc'd at
==29514== at 0x4837B65: calloc (vg_replace_malloc.c:752)
==29514== by 0x685F005: mysql_init (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x11661F: dbse_init_mysql (motion.c:1047)
==29514== by 0x11661F: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514==
==29514== Invalid read of size 8
==29514== at 0x6863E03: ??? (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x6863ED4: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x1165FB: dbse_init_mysql (motion.c:1043)
==29514== by 0x1165FB: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Address 0x16da2208 is 8 bytes inside a block of size 128 free'd
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863F55: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x115DD0: dbse_deinit (motion.c:1170)
==29514== by 0x115DD0: motion_cleanup (motion.c:1736)
==29514== by 0x11AE3F: motion_loop (motion.c:2982)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Block was alloc'd at
==29514== at 0x4837B65: calloc (vg_replace_malloc.c:752)
==29514== by 0x685F005: mysql_init (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x11661F: dbse_init_mysql (motion.c:1047)
==29514== by 0x11661F: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514==
==29514== Invalid write of size 8
==29514== at 0x6863E1E: ??? (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x6863ED4: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x1165FB: dbse_init_mysql (motion.c:1043)
==29514== by 0x1165FB: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Address 0x16da2208 is 8 bytes inside a block of size 128 free'd
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863F55: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x115DD0: dbse_deinit (motion.c:1170)
==29514== by 0x115DD0: motion_cleanup (motion.c:1736)
==29514== by 0x11AE3F: motion_loop (motion.c:2982)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Block was alloc'd at
==29514== at 0x4837B65: calloc (vg_replace_malloc.c:752)
==29514== by 0x685F005: mysql_init (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x11661F: dbse_init_mysql (motion.c:1047)
==29514== by 0x11661F: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514==
==29514== Invalid write of size 8
==29514== at 0x6863E2A: ??? (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x6863ED4: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x1165FB: dbse_init_mysql (motion.c:1043)
==29514== by 0x1165FB: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Address 0x16da2251 is 81 bytes inside a block of size 128 free'd
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863F55: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x115DD0: dbse_deinit (motion.c:1170)
==29514== by 0x115DD0: motion_cleanup (motion.c:1736)
==29514== by 0x11AE3F: motion_loop (motion.c:2982)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Block was alloc'd at
==29514== at 0x4837B65: calloc (vg_replace_malloc.c:752)
==29514== by 0x685F005: mysql_init (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x11661F: dbse_init_mysql (motion.c:1047)
==29514== by 0x11661F: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514==
==29514== Invalid write of size 8
==29514== at 0x6863E3C: ??? (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x6863ED4: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x1165FB: dbse_init_mysql (motion.c:1043)
==29514== by 0x1165FB: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Address 0x16da2210 is 16 bytes inside a block of size 128 free'd
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863F55: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x115DD0: dbse_deinit (motion.c:1170)
==29514== by 0x115DD0: motion_cleanup (motion.c:1736)
==29514== by 0x11AE3F: motion_loop (motion.c:2982)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Block was alloc'd at
==29514== at 0x4837B65: calloc (vg_replace_malloc.c:752)
==29514== by 0x685F005: mysql_init (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x11661F: dbse_init_mysql (motion.c:1047)
==29514== by 0x11661F: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514==
==29514== Invalid free() / delete / delete[] / realloc()
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863EE5: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x1165FB: dbse_init_mysql (motion.c:1043)
==29514== by 0x1165FB: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Address 0x16da21b0 is 0 bytes inside a block of size 8 free'd
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863EE5: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x115DD0: dbse_deinit (motion.c:1170)
==29514== by 0x115DD0: motion_cleanup (motion.c:1736)
==29514== by 0x11AE3F: motion_loop (motion.c:2982)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Block was alloc'd at
==29514== at 0x4837B65: calloc (vg_replace_malloc.c:752)
==29514== by 0x685EFE6: mysql_init (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x11661F: dbse_init_mysql (motion.c:1047)
==29514== by 0x11661F: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514==
==29514== Invalid free() / delete / delete[] / realloc()
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863F55: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x1165FB: dbse_init_mysql (motion.c:1043)
==29514== by 0x1165FB: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Address 0x16da2200 is 0 bytes inside a block of size 128 free'd
==29514== at 0x48369AB: free (vg_replace_malloc.c:530)
==29514== by 0x6863F55: mysql_close (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x115DD0: dbse_deinit (motion.c:1170)
==29514== by 0x115DD0: motion_cleanup (motion.c:1736)
==29514== by 0x11AE3F: motion_loop (motion.c:2982)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514== Block was alloc'd at
==29514== at 0x4837B65: calloc (vg_replace_malloc.c:752)
==29514== by 0x685F005: mysql_init (in /usr/lib/x86_64-linux-gnu/libmariadb.so.3)
==29514== by 0x11661F: dbse_init_mysql (motion.c:1047)
==29514== by 0x11661F: dbse_init (motion.c:1147)
==29514== by 0x1192DB: motion_init (motion.c:1461)
==29514== by 0x1192DB: motion_loop (motion.c:2958)
==29514== by 0x689CFA2: start_thread (pthread_create.c:486)
==29514== by 0x70724CE: clone (clone.S:95)
==29514==
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: Cannot connect to MySQL database motion on host localhost with user motion
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: MySQL error was Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[1:ml1:MyCam1] [NTC] [ALL] motion_loop: Thread exiting
[0:memcheck-amd64-] [NTC] [ALL] main: Motion thread 1 restart
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 is from cams2/camera.conf
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 Camera Name: MyCam1 Device: /dev/video0
[1:ml1:MyCam1] [NTC] [ALL] motion_init: Camera 101 started: motion detection Enabled
[1:ml1:MyCam1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1:MyCam1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1:MyCam1] [ALR] [VID] v4l2_device_open: Failed to open video device /dev/video0: No such file or directory
[1:ml1:MyCam1] [ERR] [VID] vid_start: V4L2 device failed to open
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1:MyCam1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1:MyCam1] [NTC] [DBL] dbse_init: Database backend mysql
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: Cannot connect to MySQL database motion on host localhost with user motion
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: MySQL error was Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[1:ml1:MyCam1] [NTC] [ALL] motion_loop: Thread exiting
[0:memcheck-amd64-] [NTC] [ALL] main: Motion thread 1 restart
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 is from cams2/camera.conf
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 Camera Name: MyCam1 Device: /dev/video0
[1:ml1:MyCam1] [NTC] [ALL] motion_init: Camera 101 started: motion detection Enabled
[1:ml1:MyCam1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1:MyCam1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1:MyCam1] [ALR] [VID] v4l2_device_open: Failed to open video device /dev/video0: No such file or directory
[1:ml1:MyCam1] [ERR] [VID] vid_start: V4L2 device failed to open
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1:MyCam1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1:MyCam1] [NTC] [DBL] dbse_init: Database backend mysql
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: Cannot connect to MySQL database motion on host localhost with user motion
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: MySQL error was Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[1:ml1:MyCam1] [NTC] [ALL] motion_loop: Thread exiting
[0:memcheck-amd64-] [NTC] [ALL] main: Motion thread 1 restart
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 is from cams2/camera.conf
[0:memcheck-amd64-] [NTC] [ALL] motion_start_thread: Camera ID: 101 Camera Name: MyCam1 Device: /dev/video0
[1:ml1:MyCam1] [NTC] [ALL] motion_init: Camera 101 started: motion detection Enabled
[1:ml1:MyCam1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1:MyCam1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1:MyCam1] [ALR] [VID] v4l2_device_open: Failed to open video device /dev/video0: No such file or directory
[1:ml1:MyCam1] [ERR] [VID] vid_start: V4L2 device failed to open
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
[1:ml1:MyCam1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1:MyCam1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1:MyCam1] [NTC] [DBL] dbse_init: Database backend mysql
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: Cannot connect to MySQL database motion on host localhost with user motion
[1:ml1:MyCam1] [ERR] [DBL] dbse_init_mysql: MySQL error was Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[1:ml1:MyCam1] [NTC] [ALL] motion_loop: Thread exiting
^C[0:memcheck-amd64-] [NTC] [ALL] main: Threads finished
[0:memcheck-amd64-] [NTC] [ALL] main: Motion terminating
==29514==
==29514== HEAP SUMMARY:
==29514== in use at exit: 55,988 bytes in 258 blocks
==29514== total heap usage: 2,730 allocs, 2,481 frees, 132,024,991 bytes allocated
==29514==
==29514== LEAK SUMMARY:
==29514== definitely lost: 6,360 bytes in 5 blocks
==29514== indirectly lost: 0 bytes in 0 blocks
==29514== possibly lost: 1,352 bytes in 18 blocks
==29514== still reachable: 48,276 bytes in 235 blocks
==29514== of which reachable via heuristic:
==29514== newarray : 1,536 bytes in 16 blocks
==29514== suppressed: 0 bytes in 0 blocks
==29514== Rerun with --leak-check=full to see details of leaked memory
==29514==
==29514== For counts of detected and suppressed errors, rerun with: -v
==29514== ERROR SUMMARY: 81 errors from 8 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment