Test code using sox, I get something similar using output.external fed back 
through a named pipe.
```
cmd = "sox -t wav - -t wav - flanger 2>/tmp/stderr"
p = pipe(process=cmd, sine())
output.dummy(mksafe(p))
```

Run in gdb, almost instant segfault, stdout/log:
```

2018/10/11 12:36:08 [main:3] Liquidsoap 1.3.4
2018/10/11 12:36:08 [main:3] Using: bytes=[distributed with OCaml 4.02 or 
above] pcre=7.3.4 dtools=0.4.1 duppy=0.7.3 duppy.syntax=0.7.3 cry=0.6.2 
mm=0.4.0 ogg=0.5.2 mad=0.4.5 dynlink=[distributed with Ocaml] lame=0.3.3 
fdkaac=0.2.1 samplerate=0.1.4 taglib=0.3.3 magic=0.7.3 camomile=1.0.1 
inotify=2.3 faad=0.4.0 ladspa=0.1.5
2018/10/11 12:36:08 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2018/10/11 12:36:08 [frame:3] Frame size must be a multiple of 1764 ticks = 
1764 audio samples = 1 video samples.
2018/10/11 12:36:08 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio 
samples = 1764 ticks.
2018/10/11 12:36:08 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video 
samples = 1764 ticks.
2018/10/11 12:36:08 [threads:3] Created thread "generic queue #1".
2018/10/11 12:36:08 [threads:3] Created thread "generic queue #2".
2018/10/11 12:36:08 [threads:3] Created thread "non-blocking queue #1".
2018/10/11 12:36:08 [threads:3] Created thread "non-blocking queue #2".
2018/10/11 12:36:08 [threads:3] Created thread "wallclock_main" (1 total).
2018/10/11 12:36:08 [clock.wallclock_main:3] Streaming loop starts, 
synchronized with wallclock.
2018/10/11 12:36:08 [mksafe:3] Switch to safe_blank.
2018/10/11 12:36:08 [mksafe:3] Switch to pipe_8771 with transition.
Thread 4 "liquidsoap" received signal SIGSEGV, Segmentation fault.
```
```
Starting program: /home/gilles/.opam/4.07.0/bin/liquidsoap -v test.liq
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe4e70700 (LWP 18855)]
[New Thread 0x7fffe466f700 (LWP 18856)]
[New Thread 0x7fffe3e6e700 (LWP 18857)]
[New Thread 0x7fffe366d700 (LWP 18858)]
[New Thread 0x7fffe2e6c700 (LWP 18859)]
[New Thread 0x7fffe266b700 (LWP 18860)]
[New Thread 0x7fffe1e6a700 (LWP 18861)]
[New Thread 0x7fffe1669700 (LWP 18863)]

Thread 4 "liquidsoap" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe3e6e700 (LWP 18857)]
0x0000000000721768 in unix_write ()

Thread 9 (Thread 0x7fffe1669700 (LWP 18863)):
#0  0x00007ffff5ee1c1d in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1  0x000000000071f60d in unix_sleep ()
#2  0x00000000005e4704 in camlClock__usleep_702259 () at clock.ml:309
#3  0x00000000005e4c60 in camlClock__loop_702568 () at clock.ml:348
#4  0x00000000005e246d in camlClock__fun_1003514 () at clock.ml:377
#5  0x0000000000609032 in camlTutils__fun_1002761 () at tools/tutils.ml:137
#6  0x000000000069ba89 in camlThread__fun_2005 () at thread.ml:39
#7  0x000000000073ef2e in caml_start_program ()
#8  0x000000000071a08f in caml_thread_start ()
#9  0x00007ffff5ed86ba in start_thread (arg=0x7fffe1669700) at 
pthread_create.c:333
#10 0x00007ffff57f441d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7fffe1e6a700 (LWP 18861)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000071ae61 in caml_condition_wait ()
#2  0x000000000060a0da in camlTutils__fun_1002905 () at tools/tutils.ml:318
#3  0x000000000060886c in camlTutils__mutexify_1007 () at tools/tutils.ml:80
#4  0x000000000068d079 in camlDtools__thread_402530 () at dtools.ml:556
#5  0x000000000069ba89 in camlThread__fun_2005 () at thread.ml:39
#6  0x000000000073ef2e in caml_start_program ()
#7  0x000000000071a08f in caml_thread_start ()
#8  0x00007ffff5ed86ba in start_thread (arg=0x7fffe1e6a700) at 
pthread_create.c:333
#9  0x00007ffff57f441d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7fffe266b700 (LWP 18860)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000071a102 in st_masterlock_acquire.constprop ()
#2  0x000000000071a149 in caml_thread_leave_blocking_section ()
#3  0x0000000000723646 in caml_leave_blocking_section () at signals.c:130
#4  0x000000000071ae68 in caml_condition_wait ()
#5  0x0000000000683665 in camlDuppy__run_201580 () at duppy.ml:344
#6  0x0000000000683835 in camlDuppy__f_301586 () at duppy.ml:349
#7  0x0000000000683846 in camlDuppy__f_301586 () at duppy.ml:349
#8  0x0000000000683846 in camlDuppy__f_301586 () at duppy.ml:349
#9  0x0000000000683846 in camlDuppy__f_301586 () at duppy.ml:349
#10 0x0000000000683846 in camlDuppy__f_301586 () at duppy.ml:349
#11 0x0000000000683846 in camlDuppy__f_301586 () at duppy.ml:349
#12 0x0000000000683846 in camlDuppy__f_301586 () at duppy.ml:349
#13 0x0000000000683846 in camlDuppy__f_301586 () at duppy.ml:349
[…]
Quit
```

I might be doing something wrong, but I can't use liq 1.3.4, though that 
somehow worked in tests before the release. I'm waiting on this to upgrade a 
massive environment stuck on 1.2.0...


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/640#issuecomment-428910127
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to