motion crash due to missing strstr.c in libc-2.23.so

Bug #1692410 reported by Yuriy Grishin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Happens in motion 4.0.1-1 (amd64) but was seen initially on Motion 3.2.12+git20140228.
I am using Kubuntu 16.04.2 LTS amd64.

$uname -a
Linux recorder 4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$cat /var/log/syslog
...
May 21 23:21:14 recorder motion: [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
May 21 23:21:14 recorder motion: [0:motion] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_deinterlace"
May 21 23:21:14 recorder motion: [0:motion] [ALR] [ALL] conf_cmdparse: Unknown config option "sdl_threadnr"
May 21 23:21:14 recorder motion: [0:motion] [WRN] [ALL] thread config option deprecated use camera
May 21 23:21:14 recorder motion: [0:motion] [NTC] [ALL] config_camera: Processing camera config file /etc/motion/thread1.conf
May 21 23:21:14 recorder motion: [0:motion] [NTC] [ALL] motion_startup: Motion 4.0.1 Started
May 21 23:21:14 recorder motion: [0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)
May 21 23:21:14 recorder kernel: [49437.909642] ml1[3031]: segfault at 0 ip 00007f7e5cf8a4c9 sp 00007f7e4ea8e9f0 error 4 in libc-2.23.so[7f7e5cefd000+1bf000]
May 21 23:21:15 recorder org.kde.KScreen[1258]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "VGA1" ) ( "VGA1" ) to KScreen::Output(Id: 66 , Name: "VGA1" ) ( "VGA1" )
May 21 23:23:08 recorder org.kde.KScreen[1258]: message repeated 35 times: [ kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "VGA1" ) ( "VGA1" ) to KScreen::Output(Id: 66 , Name: "VGA1" ) ( "VGA1" )]
May 21 23:23:11 recorder motion: [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
May 21 23:23:11 recorder motion: [0:motion] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_deinterlace"
May 21 23:23:11 recorder motion: [0:motion] [ALR] [ALL] conf_cmdparse: Unknown config option "sdl_threadnr"
May 21 23:23:11 recorder motion: [0:motion] [WRN] [ALL] thread config option deprecated use camera
May 21 23:23:11 recorder motion: [0:motion] [NTC] [ALL] config_camera: Processing camera config file /etc/motion/thread1.conf
May 21 23:23:11 recorder motion: [0:motion] [NTC] [ALL] motion_startup: Motion 4.0.1 Started
May 21 23:23:11 recorder motion: [0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)
May 21 23:23:11 recorder kernel: [49554.955243] ml1[3049]: segfault at 0 ip 00007efd4a8e44c9 sp 00007efd3c3e89f0 error 4 in libc-2.23.so[7efd4a857000+1bf000]
...

$tail -n 200 /var/log/motion/motion.log (camera's IP address was blacked out):
...
[0:motion] [NTC] [ALL] [May 21 23:23:11] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [ENC] [May 21 23:23:11] ffmpeg_init: ffmpeg libavcodec version 56.60.100 libavformat version 56.40.101
[0:motion] [NTC] [ALL] [May 21 23:23:11] main: Motion running in setup mode.
[0:motion] [NTC] [ALL] [May 21 23:23:11] main: Camera 1 is from /etc/motion/thread1.conf
[0:motion] [NTC] [ALL] [May 21 23:23:11] main: Camera 1 is device: http://A.B.C.D/nphMotionJpeg?Resolution=1280x720&Quality=Standard input -1
[0:motion] [NTC] [ALL] [May 21 23:23:11] main: Stream port 8081
[0:motion] [NTC] [ALL] [May 21 23:23:11] main: Waiting for threads to finish, pid: 3048
[1:ml1] [NTC] [ALL] [May 21 23:23:11] motion_init: Camera 1 started: motion detection Enabled
[1:ml1] [ALR] [NET] [May 21 23:23:11] netcam_start: Network Camera thread starting... for url (http://A.B.C.D/nphMotionJpeg?Resolution=1280x720&Quality=Standard)
[1:ml1] [NTC] [NET] [May 21 23:23:11] netcam_read_first_header: Found Conn: close header ('Connection: close')
[0:motion] [NTC] [ALL] [May 21 23:26:04] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [ENC] [May 21 23:26:04] ffmpeg_init: ffmpeg libavcodec version 56.60.100 libavformat version 56.40.101
[0:motion] [NTC] [ALL] [May 21 23:26:04] main: Motion running in setup mode.
[0:motion] [NTC] [ALL] [May 21 23:26:04] main: Camera 1 is from /etc/motion/thread1.conf
[0:motion] [NTC] [ALL] [May 21 23:26:04] main: Camera 1 is device: http://A.B.C.D/nphMotionJpeg?Resolution=1280x720&Quality=Standard input -1
[0:motion] [NTC] [ALL] [May 21 23:26:04] main: Stream port 8081
[0:motion] [NTC] [ALL] [May 21 23:26:04] main: Waiting for threads to finish, pid: 3075
[1:ml1] [NTC] [ALL] [May 21 23:26:04] motion_init: Camera 1 started: motion detection Enabled
[1:ml1] [ALR] [NET] [May 21 23:26:04] netcam_start: Network Camera thread starting... for url (http://A.B.C.D/nphMotionJpeg?Resolution=1280x720&Quality=Standard)
[1:ml1] [NTC] [NET] [May 21 23:26:04] netcam_read_first_header: Found Conn: close header ('Connection: close')
...

Command was run when the crash happened:
#/usr/bin/motion -s
as well as it happens with
#/etc/init.d/motion start

Camera in question: Panasonic BL-VP104W. Apparently supports MJPEG since I am able to get the video when open http://A.B.C.D/nphMotionJpeg?Resolution=1280x720&Quality=Standard in browser.

Core dump is attached.

Revision history for this message
Yuriy Grishin (ygrishin-lists) wrote :
Revision history for this message
Yuriy Grishin (ygrishin-lists) wrote :

A follow-up: motion 4.0.1+gitc50d4b5 doesn't crash. That's motion's @master as of now.

Revision history for this message
Yuriy Grishin (ygrishin-lists) wrote :

No, it does. Was not reproducing it properly. Attaching a core dump along with the binary.

Revision history for this message
Yuriy Grishin (ygrishin-lists) wrote :

This is a bug confirmed by developers, see
https://github.com/Motion-Project/motion/issues/389
for workaround and details.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.