Comment 3 for bug 1266187

Revision history for this message
HeadLess (headless-u) wrote :

terminal:
$ electricsheep --debug 1 --standalone 1
=====================================
electric sheep v2.7b12
time start Fri Sep 4 15:16:23 2015
init_curl_cmd 0
curl_cmd = nice -n 10 curl --location --silent --show-error
server = v2d7c.sheepserver.net
play_counts init, thread=main
play counts: 80525:3 80527:4 80835:3 80891:2 80895:3 80900:2 80932:2 81096:1 81100:1 83420:1 83421:1 83545:1 83548:1 83554:1 83571:1 83572:1 83614:1 83615:1 83624:1 83648:1 83649:1 83664:1 83685:1
updating cache path=/home/headless/.electricsheep/
updating cache path=/home/headless/.electricsheep/
thread main compute ranks
median rank 0.8 n = 201 plays = 0
ncheck = 23/201
begin delete cached 0
thread display compute ranks
median rank 0.8 n = 201 plays = 0
ncheck = 23/201
time display loop Fri Sep 4 15:16:23 2015
idx=50 ncached_sheep=201 best_atime
found new anim id=83546.
play anim x=50 id=83546 iters=2 path=/home/headless/.electricsheep/
bumped 83546 to 1, page=163
writing play counts
writing dirty page 163
set atime of 50 to 1441372583
playing /home/headless/.electricsheep/00244=83546=83546=83546.avi
[avi @ 0x7d27e0] max_analyze_duration reached

and stops there..
in this time syslog shows up entry:
Sep 4 15:19:17 mylaptop kernel: [15044.191727] electricsheep[22286]: segfault at 0 ip 0000000000404731 sp 00007ffefc9d0ab0 error 4 in electricsheep[400000+15000]

after ctrl-c in terminal exits with this:
^Chandle_sig_term main 2
cleanup.
handle_sig_term waiter 2
writing play counts
cleanup.
writing play counts
handle_sig_term waiter 15
cleanup.
writing play counts
Terminated

run with strace:
$ strace electricsheep --debug 1 --standalone 1
(...)
getuid() = 1000
mremap(0x7fc460679000, 1036288, 1040384, MREMAP_MAYMOVE) = 0x7fc459d05000
stat("/home/headless/.electricsheep/00244=80900=80895=80869.avi", {st_mode=S_IFREG|0644, st_size=1549056, ...}) = 0
getuid() = 1000
mremap(0x7fc459d05000, 1040384, 1044480, MREMAP_MAYMOVE) = 0x7fc460677000
getdents(7, /* 0 entries */, 32768) = 0
brk(0x72c000) = 0x72c000
close(7) = 0
write(2, "thread main compute ranks\n", 26thread main compute ranks
) = 26
write(2, "median rank 0.8 n = 201 plays = "..., 34median rank 0.8 n = 201 plays = 0
) = 34
write(2, "ncheck = 26/201\n", 16ncheck = 26/201
) = 16
write(2, "begin delete cached 0\n", 22begin delete cached 0
) = 22
statfs("/home/headless/.electricsheep/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=98494329, f_bfree=56880921, f_bavail=51871936, f_files=25026560, f_ffree=23263562, f_fsid={-1273269597, 1642271591}, f_namelen=255, f_frsize=4096}) = 0
stat("/home/headless/.electricsheep/", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
wait4(22328, [avi @ 0x70a760] max_analyze_duration reached

$ lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04

$ apt-cache policy electricsheep
electricsheep:
  Installed: 2.7~b12+svn20091224-1.2
  Candidate: 2.7~b12+svn20091224-1.2
  Version table:
 *** 2.7~b12+svn20091224-1.2 0
        100 /var/lib/dpkg/status

mplayer plays ok:

$ mplayer /home/headless/.electricsheep/00244=80900=80895=80869.avi
MPlayer SVN-r37401 (C) 2000-2012 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/headless/.electricsheep/00244=80900=80895=80869.avi.
libavformat version 56.33.101 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO: [h264] 800x592 24bpp 30.000 fps 2311.5 kbps (282.2 kbyte/s)
Clip info:
 Software: MEncoder 2:1.0~rc2-0ubuntu19
 Title: 00244=80900=80895=80869
 Artist: electricsheep.org
Load subtitles in /home/headless/.electricsheep/
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.39.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.35:1 - prescaling to correct movie aspect.
VO: [xv] 800x592 => 800x592 Planar YV12
V: 1.2 38/ 38 18% 1% 0.0% 0 0

Exiting... (Quit)

Any idea?