Bug 1244481 - [abrt] ezstream: stream_setup(): ezstream killed by SIGSEGV
Summary: [abrt] ezstream: stream_setup(): ezstream killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ezstream
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b0539eab550e4070addc801f26f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-19 06:15 UTC by Francesco Frassinelli (frafra)
Modified: 2015-08-07 13:15 UTC (History)
1 user (show)

Fixed In Version: ezstream-0.6.0-2.fc21
Clone Of:
Environment:
Last Closed: 2015-08-07 13:08:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (21.25 KB, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: cgroup (190 bytes, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: core_backtrace (700 bytes, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: dso_list (1.73 KB, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: environ (3.23 KB, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: limits (1.29 KB, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: maps (8.34 KB, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: mountinfo (3.62 KB, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: namespaces (85 bytes, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: open_fds (186 bytes, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: proc_pid_status (1006 bytes, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details
File: var_log_messages (297 bytes, text/plain)
2015-07-19 06:15 UTC, Francesco Frassinelli (frafra)
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.