[Home]

Summary:ASTERISK-12712: CLI> "file convert file.ogg file.gsm" Segfaults
Reporter:Alexandre Bourget (wackysalut)Labels:
Date Opened:2008-09-11 10:43:13Date Closed:2008-09-12 11:22:21
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Formats/format_ogg_vorbis
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Simply crashes.

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7b746b0 (LWP 24371)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xb756dd00 in handle_cli_file_convert (e=0xb756f4e0, cmd=-4, a=0xbfaf34fc) at res_convert.c:118
#2  0x0809380e in ast_cli_command (fd=1, s=0x81aafd0 "file convert milonga.ogg milonga.gsm") at cli.c:1887
#3  0x08076422 in ?? ()
#4  0xb7c25450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
ASTERISK-1  0x0805d691 in ?? ()
(gdb)


****** ADDITIONAL INFORMATION ******

libvorbis-dev version 1.2.0.dfsg
libvorbis0a version 1.2.0.dfsg
same version for libvorbisenc2 and libvorbisfile3

libogg0 version 1.1.3-3ubuntu..  same for libogg0-dev
Comments:By: Alexandre Bourget (wackysalut) 2008-09-11 10:44:31

You can get the file I used to do the test:

http://www.vigilia.info/files/milonga.ogg

By: Alexandre Bourget (wackysalut) 2008-09-12 09:04:39

Here is another crash (with Asterisk 1.6..rc-6 now..), with another file, but now a .wav file!

http://www.vigilia.info/files/cepstral.wav

(file convert cepstral.wav cepstral.ulaw)

By: Digium Subversion (svnbot) 2008-09-12 11:18:09

Repository: asterisk
Revision: 142740

U   branches/1.4/main/file.c

------------------------------------------------------------------------
r142740 | tilghman | 2008-09-12 11:18:08 -0500 (Fri, 12 Sep 2008) | 4 lines

Don't return a free'd pointer, when a file cannot be opened.
(closes issue ASTERISK-12712)
Reported by: wackysalut

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=142740

By: Tilghman Lesher (tilghman) 2008-09-12 11:22:21

BTW, your files weren't 8000Hz, which is why they failed to convert.  However, it should not have crashed, so I've fixed the underlying problem.