Bug 1244481

Summary: [abrt] ezstream: stream_setup(): ezstream killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Francesco Frassinelli (frafra) <fraph24>
Component: ezstreamAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/ce880da58b2ff885243b2b5544a9202138bc0bb3
Whiteboard: abrt_hash:b0539eab550e4070addc801f26fea8e0c2a314cd
Fixed In Version: ezstream-0.6.0-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-07 13:08:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Francesco Frassinelli (frafra) 2015-07-19 06:15:14 UTC
Version-Release number of selected component:
ezstream-0.6.0-1.fc22

Additional info:
reporter:       libreport-2.6.0
backtrace_rating: 4
cmdline:        ezstream -c /home/frafra/.ezstream-viglug.conf
crash_function: stream_setup
executable:     /usr/bin/ezstream
global_pid:     2254
kernel:         4.2.0-0.rc2.git0.1.fc23.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (1 frames)
 #0 stream_setup at util.c:138

Comment 1 Francesco Frassinelli (frafra) 2015-07-19 06:15:18 UTC
Created attachment 1053561 [details]
File: backtrace

Comment 2 Francesco Frassinelli (frafra) 2015-07-19 06:15:19 UTC
Created attachment 1053562 [details]
File: cgroup

Comment 3 Francesco Frassinelli (frafra) 2015-07-19 06:15:20 UTC
Created attachment 1053563 [details]
File: core_backtrace

Comment 4 Francesco Frassinelli (frafra) 2015-07-19 06:15:21 UTC
Created attachment 1053564 [details]
File: dso_list

Comment 5 Francesco Frassinelli (frafra) 2015-07-19 06:15:23 UTC
Created attachment 1053565 [details]
File: environ

Comment 6 Francesco Frassinelli (frafra) 2015-07-19 06:15:24 UTC
Created attachment 1053566 [details]
File: limits

Comment 7 Francesco Frassinelli (frafra) 2015-07-19 06:15:25 UTC
Created attachment 1053567 [details]
File: maps

Comment 8 Francesco Frassinelli (frafra) 2015-07-19 06:15:27 UTC
Created attachment 1053568 [details]
File: mountinfo

Comment 9 Francesco Frassinelli (frafra) 2015-07-19 06:15:28 UTC
Created attachment 1053569 [details]
File: namespaces

Comment 10 Francesco Frassinelli (frafra) 2015-07-19 06:15:29 UTC
Created attachment 1053570 [details]
File: open_fds

Comment 11 Francesco Frassinelli (frafra) 2015-07-19 06:15:30 UTC
Created attachment 1053571 [details]
File: proc_pid_status

Comment 12 Francesco Frassinelli (frafra) 2015-07-19 06:15:31 UTC
Created attachment 1053572 [details]
File: var_log_messages

Comment 13 Petr Pisar 2015-07-20 13:56:48 UTC
It looks like the pezConfig->format was NULL in this code:

    if (!strcmp(pezConfig->format, MP3_FORMAT) &&
        shout_set_format(shout, SHOUT_FORMAT_MP3) != SHOUTERR_SUCCESS) {
        printf("%s: shout_set_format(MP3): %s\n",
               __progname, shout_get_error(shout));
        shout_free(shout);
        return (NULL);
    }

Could you provide more details how to reproduce the bug? Does it crash for you all the time or randomly?

Comment 14 Petr Pisar 2015-07-20 14:25:12 UTC
From reading the current code, I believe you forgot to specify "format" element in the configuration file. That lead to NULL pezConfig->format and a crash when the code compared the variable to "MP3" string.

Comment 15 Francesco Frassinelli (frafra) 2015-07-20 14:37:13 UTC
(In reply to Petr Pisar from comment #13)
> Could you provide more details how to reproduce the bug? Does it crash for
> you all the time or randomly?

All the time.

#!/bin/bash
cat << EOF > bug-1244481.conf
<ezstream>
<url>http://localhost:8000/test</url>
<sourcepassword>dummy</sourcepassword>
<filename>stdin</filename>
</ezstream>
EOF
chmod 600 bug-1244481.conf
ezstream -c bug-1244481.conf
rm bug-1244481.conf

(In reply to Petr Pisar from comment #14)
> From reading the current code, I believe you forgot to specify "format"
> element in the configuration file. That lead to NULL pezConfig->format and a
> crash when the code compared the variable to "MP3" string.

Exactly. I forgot "format".

Comment 16 Petr Pisar 2015-07-21 15:34:47 UTC
Reported to upstream <https://trac.xiph.org/ticket/2208>. Upstream has rewritten relevant code, so next upstream ezstream version should not suffer from this problem. I will apply simple fix onto Fedora packages that fixes the problem too.

Comment 17 Fedora Update System 2015-07-21 15:53:32 UTC
ezstream-0.6.0-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/ezstream-0.6.0-2.fc22

Comment 18 Fedora Update System 2015-07-21 15:55:28 UTC
ezstream-0.6.0-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ezstream-0.6.0-2.fc21

Comment 19 Fedora Update System 2015-07-29 01:54:58 UTC
Package ezstream-0.6.0-2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ezstream-0.6.0-2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-12035/ezstream-0.6.0-2.fc21
then log in and leave karma (feedback).

Comment 20 Fedora Update System 2015-08-07 13:08:28 UTC
ezstream-0.6.0-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2015-08-07 13:15:29 UTC
ezstream-0.6.0-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.