Hi! 

I've just been setting up liquidsoap on a Raspberry Pi 2 and I'm getting
a segfault with the script I'm using, and also with just playing wav
files. Liquidsoap does not segfault if my input is a sinewave. The
function failing is caml_float_pcm_convert_s16_native. This is happening
on both the 1.1.1 version and the latest git source. 

There seems to be a similar problem here:
http://sourceforge.net/p/savonet/mailman/message/31852502/ [1] 

Script and gdb output below: 

#############################################################################


set("log.file.path", "/usr/local/var/log/liquidsoap/ob-rec.log")
set("log.stdout", true)
set("log.level", 5) 

#Receive Feed
receive = clock(input.gstreamer.audio(pipeline="udpsrc port=1351
caps=\"application/x-rtp\" ! queue ! rtpopusdepay ! opusdec")) 

receive = mksafe(receive) 

output.alsa(receive, device="hw:0,0", fallible=true, clock_safe=false) 

#############################################################################


$ gdb liquidsoap
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/liquidsoap...done.
(gdb) set arg ob-rec.liq
(gdb) run
Starting program: /usr/local/bin/liquidsoap ob-rec.liq
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/arm-linux-gnueabihf/libthread_db.so.1".
2015/04/15 23:10:49 >>> LOG START
2015/04/15 23:10:47 [protocols.external:3] Found
"/usr/local/lib/liquidsoap/scm/liquidget".
2015/04/15 23:10:48 [main:3] Liquidsoap 1.1.1+scm
(git://github.com/savonet/liquidsoap.git@de8d49c1a605950adad95853c03af0d0b99666e2:20150415:225824)
2015/04/15 23:10:48 [main:3] Using: pcre=6.2.5 dtools=0.3.1 duppy=0.5.1
duppy.syntax=0.5.1 cry=0.3.0 mm=0.3.0 ogg=0.5.0 vorbis=0.6.2 opus=0.1.1
mad=0.4.4 dynlink=[distributed with Ocaml] lame=0.3.2 gstreamer=0.2.0
alsa=0.2.1 ao=0.2.0 samplerate=0.1.2 taglib=0.3.1 camomile=0.8.4
lo=0.1.0
2015/04/15 23:10:48 [main:2]
2015/04/15 23:10:48 [main:2] DISCLAIMER: This version of Liquidsoap has
been
2015/04/15 23:10:48 [main:2] compiled from a snapshot of the development
code.
2015/04/15 23:10:48 [main:2] As such, it should not be used in
production
2015/04/15 23:10:48 [main:2] unless you know what you are doing!
2015/04/15 23:10:48 [main:2]
2015/04/15 23:10:48 [main:2] We are, however, very interested in any
feedback
2015/04/15 23:10:48 [main:2] about our development code and committed to
fix
2015/04/15 23:10:48 [main:2] issues as soon as possible.
2015/04/15 23:10:48 [main:2]
2015/04/15 23:10:48 [main:2] If you are interested in collaborating to
2015/04/15 23:10:48 [main:2] the development of Liquidsoap, feel free to
2015/04/15 23:10:48 [main:2] drop us a mail at
<[email protected]>
2015/04/15 23:10:48 [main:2] or to join the #savonet IRC channel on
Freenode.
2015/04/15 23:10:48 [main:2]
2015/04/15 23:10:48 [main:2] Please send any bug report or feature
request
2015/04/15 23:10:48 [main:2] at
<https://github.com/savonet/liquidsoap/issues>.
2015/04/15 23:10:48 [main:2]
2015/04/15 23:10:48 [main:2] We hope you enjoy this snapshot build of
Liquidsoap!
2015/04/15 23:10:48 [main:2]
2015/04/15 23:10:48 [dynamic.loader:3] Could not find dynamic module for
fdkaac encoder.
2015/04/15 23:10:48 [dynamic.loader:3] Could not find dynamic module for
aacplus encoder.
2015/04/15 23:10:49 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz
master.
2015/04/15 23:10:49 [frame:3] Frame size must be a multiple of 1764
ticks = 1764 audio samples = 1 video samples.
2015/04/15 23:10:49 [frame:3] Targetting 'frame.duration': 0.04s = 1764
audio samples = 1764 ticks.
2015/04/15 23:10:49 [frame:3] Frames last 0.04s = 1764 audio samples = 1
video samples = 1764 ticks.
2015/04/15 23:10:49 [clock:4] Currently 1 clocks allocated.
2015/04/15 23:10:49 [video.converter:4] Couldn't find preferred video
converter: gavl.
2015/04/15 23:10:49 [audio.converter:4] Using preferred samplerate
converter: libsamplerate.
[New Thread 0x75973460 (LWP 28115)]
[New Thread 0x75173460 (LWP 28116)]
2015/04/15 23:10:49 [threads:3] Created thread "generic queue #1".
[New Thread 0x74973460 (LWP 28117)]
2015/04/15 23:10:49 [threads:3] Created thread "generic queue #2".
[New Thread 0x74173460 (LWP 28118)]
2015/04/15 23:10:49 [clock.wallclock_input.gstreamer.audio_video_5400:4]
Starting 1 sources...
2015/04/15 23:10:49 [source:4] Source output.alsa_5408 gets up.
2015/04/15 23:10:49 [source:4] Source mksafe gets up.
2015/04/15 23:10:49 [source:4] Source input.gstreamer.audio_video_5400
gets up.
2015/04/15 23:10:49 [input.gstreamer.audio_video_5400:4] Content kind is
{audio=2;video=0;midi=0}.
2015/04/15 23:10:49 [input(dot)gstreamer(dot)audio_video_5400:4]
Activations changed: static=[],
dynamic=[mksafe:alsa_out(hw:0,0):alsa_out(hw:0,0)].
2015/04/15 23:10:49 [source:4] Source safe_blank gets up.
2015/04/15 23:10:49 [safe_blank:4] Content kind is
{audio=2;video=0;midi=0}.
2015/04/15 23:10:49 [safe_blank:4] Activations changed: static=[],
dynamic=[mksafe:alsa_out(hw:0,0):alsa_out(hw:0,0)].
2015/04/15 23:10:49 [mksafe:4] Activations changed:
static=[alsa_out(hw:0,0):alsa_out(hw:0,0)], dynamic=[].
2015/04/15 23:10:49 [alsa_out(hw:0,0):4] Activations changed:
static=[alsa_out(hw:0,0)], dynamic=[].
2015/04/15 23:10:49 [alsa_out(hw:0,0):4] Enabling caching mode: active
source.
[New Thread 0x73973460 (LWP 28119)]
2015/04/15 23:10:49 [threads:3] Created thread "alsa_out(hw:0,0)" (1
total).
[New Thread 0x73173460 (LWP 28120)]
2015/04/15 23:10:49 [threads:3] Created thread
"wallclock_input.gstreamer.audio_video_5400" (2 total).
2015/04/15 23:10:49 [clock:4] Main phase starts.
2015/04/15 23:10:49 [clock.wallclock_input.gstreamer.audio_video_5400:3]
Streaming loop starts, synchronized with wallclock.
2015/04/15 23:10:49 [io.gstreamer:5] GStreamer pipeline: udpsrc
port=1351 caps="application/x-rtp" ! queue ! rtpopusdepay ! opusdec !
decodebin ! audioconvert ! audioresample ! appsink max-buffers=10
drop=false sync=false name="audio_sink"
caps="audio/x-raw,format=S16LE,layout=interleaved,channels=2,rate=44100"
[New Thread 0x72551460 (LWP 28121)]
[New Thread 0x71bff460 (LWP 28122)]
2015/04/15 23:10:50 [mksafe:3] Switch to safe_blank.
2015/04/15 23:10:50 [safe_blank:4] Activations changed:
static=[mksafe:alsa_out(hw:0,0):alsa_out(hw:0,0)],
dynamic=[mksafe:alsa_out(hw:0,0):alsa_out(hw:0,0)].
2015/04/15 23:10:50 [clock.wallclock_input.gstreamer.audio_video_5400:2]
We must catchup 1.00 seconds!
2015/04/15 23:10:50 [alsa_out(hw:0,0):3] Using ALSA 1.0.25.
2015/04/15 23:10:50 [alsa_out(hw:0,0):2] Falling back on interleaved
S16LE
2015/04/15 23:10:50 [alsa_out(hw:0,0):3] Samplefreq=44100Hz,
Bufsize=16384B, Frame=4B, Periods=64
[New Thread 0x713ff460 (LWP 28123)]
2015/04/15 23:10:50 [mksafe:3] Switch to
input(dot)gstreamer(dot)audio_video_5400 with transition.
2015/04/15 23:10:50 [safe_blank:4] Activations changed: static=[],
dynamic=[mksafe:alsa_out(hw:0,0):alsa_out(hw:0,0)].
2015/04/15 23:10:50 [input(dot)gstreamer(dot)audio_video_5400:4]
Activations changed: static=[mksafe:alsa_out(hw:0,0):alsa_out(hw:0,0)],
dynamic=[mksafe:alsa_out(hw:0,0):alsa_out(hw:0,0)]. 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x73173460 (LWP 28120)]
caml_float_pcm_convert_s16_native (_src=0, _offset=0, _dst=1930898268,
_dst_off=0, _length=-2, little_endian=1)
 at audio_c.c:244
244 int nc = Wosize_val(_dst) ;
(gdb) bt
#0 caml_float_pcm_convert_s16_native (_src=0, _offset=0,
_dst=1930898268, _dst_off=0, _length=-2, little_endian=1)
 at audio_c.c:244
#1 0x00031500 in caml_float_pcm_convert_s16le_native (_src=<optimized
out>, _offset=<optimized out>,
 _dst=<optimized out>, _dst_off=<optimized out>, _length=-2) at
audio_c.c:272
#2 0x00031524 in caml_float_pcm_convert_s16le_byte (argv=<optimized
out>, argn=<optimized out>) at audio_c.c:277
#3 0x000556c0 in caml_interprete ()
#4 0x73173694 in ?? ()
#5 0x73173694 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt
stack?)
(gdb) 

-- 

Assistant Station Manager &
Assistant Chief Engineer
 UNIVERSITY RADIO YORK ((URY)) 

 

Links:
------
[1] http://sourceforge.net/p/savonet/mailman/message/31852502/
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to