* 14.4.2rc2 segfaults on remote OGGs
@ 2015-02-10 20:38 Jan Stary
2015-02-12 4:31 ` Eric Wong
0 siblings, 1 reply; 5+ messages in thread
From: Jan Stary @ 2015-02-10 20:38 UTC (permalink / raw)
To: sox-users
This is 14.4.2rc2 on OpenBSD/amd64.
play(1) segfaults on each of the following:
http://amp.cesnet.cz:8000/cro-d-dur.flac
http://amp.cesnet.cz:8000/cro-d-dur.ogg
http://amp.cesnet.cz:8000/cro2.ogg
http://amp.cesnet.cz:8000/cro3.ogg
http://amp.cesnet.cz:8000/cro-plus.ogg
http://amp.cesnet.cz:8000/cro-radio-junior.ogg
Remote mp3's play fine though, local ogg's too.
Is this a known bug?
Jan
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 14.4.2rc2 segfaults on remote OGGs
2015-02-10 20:38 14.4.2rc2 segfaults on remote OGGs Jan Stary
@ 2015-02-12 4:31 ` Eric Wong
2015-02-12 7:42 ` Jan Stary
0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2015-02-12 4:31 UTC (permalink / raw)
To: sox-users
Jan Stary <hans@stare.cz> wrote:
> This is 14.4.2rc2 on OpenBSD/amd64.
> play(1) segfaults on each of the following:
>
> http://amp.cesnet.cz:8000/cro-d-dur.flac
> http://amp.cesnet.cz:8000/cro-d-dur.ogg
> http://amp.cesnet.cz:8000/cro2.ogg
> http://amp.cesnet.cz:8000/cro3.ogg
> http://amp.cesnet.cz:8000/cro-plus.ogg
> http://amp.cesnet.cz:8000/cro-radio-junior.ogg
>
> Remote mp3's play fine though, local ogg's too.
> Is this a known bug?
I can't reproduce it on my Linux machine.
Can you show more info? (-V99 / core dump + backtrace)
sox uses wget by default, but doesn't it use ftp(1) on OpenBSD?
Maybe that triggered a bug somewhere...
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 14.4.2rc2 segfaults on remote OGGs
2015-02-12 4:31 ` Eric Wong
@ 2015-02-12 7:42 ` Jan Stary
2015-02-12 8:14 ` Jan Stary
2015-02-13 22:06 ` Eric Wong
0 siblings, 2 replies; 5+ messages in thread
From: Jan Stary @ 2015-02-12 7:42 UTC (permalink / raw)
To: sox-users
On Feb 12 04:31:11, normalperson@yhbt.net wrote:
> Jan Stary <hans@stare.cz> wrote:
> > This is 14.4.2rc2 on OpenBSD/amd64.
> > play(1) segfaults on each of the following:
> >
> > http://amp.cesnet.cz:8000/cro-d-dur.flac
> > http://amp.cesnet.cz:8000/cro-d-dur.ogg
> > http://amp.cesnet.cz:8000/cro2.ogg
> > http://amp.cesnet.cz:8000/cro3.ogg
> > http://amp.cesnet.cz:8000/cro-plus.ogg
> > http://amp.cesnet.cz:8000/cro-radio-junior.ogg
> >
> > Remote mp3's play fine though, local ogg's too.
> > Is this a known bug?
>
> I can't reproduce it on my Linux machine.
> Can you show more info? (-V99 / core dump + backtrace)
$ play -V6 http://amp.cesnet.cz:8000/cro3.ogg
play DBUG sox: Looking for a default device: trying format `sndio'
play: SoX v14.4.2
time: Feb 9 2015 17:30:50
uname: OpenBSD lenovo.stare.cz 5.7 GENERIC.MP#2 amd64
compiler: gcc 4.2.1 20070719
arch: 1288 48 88 L
play INFO formats: detected file format type `vorbis'
Segmentation fault (core dumped)
> sox uses wget by default, but doesn't it use ftp(1) on OpenBSD?
> Maybe that triggered a bug somewhere...
The OpenBSD port of SoX that uses ftp instead of wget; however,
this is `vanilla' SoX as distributed in the 14.4.2rc2 tarball.
Jan
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 14.4.2rc2 segfaults on remote OGGs
2015-02-12 7:42 ` Jan Stary
@ 2015-02-12 8:14 ` Jan Stary
2015-02-13 22:06 ` Eric Wong
1 sibling, 0 replies; 5+ messages in thread
From: Jan Stary @ 2015-02-12 8:14 UTC (permalink / raw)
To: sox-users
> The OpenBSD port of SoX that uses ftp instead of wget; however,
> this is `vanilla' SoX as distributed in the 14.4.2rc2 tarball.
I mean, the source code gets patched when building the OpenBSD port
(see diff below); it's not like ./configure picks ftp(1) on systems
that have it.
Jan
$OpenBSD: patch-src_formats_c,v 1.5 2014/12/24 12:31:23 sthen Exp $
--- src/formats.c.orig Sun Jan 13 19:57:39 2013
+++ src/formats.c Wed Dec 24 12:30:53 2014
@@ -349,7 +349,7 @@ static int sox_checkformat(sox_format_t * ft)
return SOX_SUCCESS;
}
-static sox_bool is_url(char const * text) /* detects only wget-supported URLs */
+static sox_bool is_url(char const * text)
{
return !(
strncasecmp(text, "http:" , (size_t)5) &&
@@ -386,7 +386,7 @@ static FILE * xfopen(char const * identifier, char con
else if (is_url(identifier)) {
FILE * f = NULL;
#ifdef HAVE_POPEN
- char const * const command_format = "wget --no-check-certificate -q -O- \"%s\"";
+ char const * const command_format = "ftp -a -V -o - \"%s\"";
char * command = lsx_malloc(strlen(command_format) + strlen(identifier));
sprintf(command, command_format, identifier);
f = popen(command, POPEN_MODE);
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 14.4.2rc2 segfaults on remote OGGs
2015-02-12 7:42 ` Jan Stary
2015-02-12 8:14 ` Jan Stary
@ 2015-02-13 22:06 ` Eric Wong
1 sibling, 0 replies; 5+ messages in thread
From: Eric Wong @ 2015-02-13 22:06 UTC (permalink / raw)
To: sox-users
Jan Stary <hans@stare.cz> wrote:
> Segmentation fault (core dumped)
Any backtrace from gdb? I suggest compiling with -ggdb3 to get
as much debug info as possible.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-02-13 22:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 20:38 14.4.2rc2 segfaults on remote OGGs Jan Stary
2015-02-12 4:31 ` Eric Wong
2015-02-12 7:42 ` Jan Stary
2015-02-12 8:14 ` Jan Stary
2015-02-13 22:06 ` Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).