Ubuntu: portmidi calls exit(-1) in error conditions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Critical
|
Unassigned |
Bug Description
On Ubuntu Trusty, libportmidi0 1:200-0ubuntu3 is compiled with
PM_CHECK_ERRORS
which calls this is any error condition and crasches Mixxx without allowing Mixxx to gracefull handle the errors like buffer overflows which can likely happen.
static void prompt_
{
char line[STRING_MAX];
printf("type ENTER...");
fgets(line, STRING_MAX, stdin);
/* this will clean up open ports: */
exit(-1);
}
Mixxx log look like that
Debug [Controller]: PortMidiControl
Debug [Controller]: PortMidiControl
PortMidi call failed...
PortMidi: `Buffer overflow'
type ENTER...
Program received signal SIGSEGV, Segmentation fault.
QBrush::QBrush (this=0x3ae5e30) at painting/
425 d->ref.ref();
(gdb)
Changed in mixxx: | |
status: | Confirmed → Fix Released |
We have to check if his is the case on our buildserver as well and we need to provide our own version of portmidi in our ppa and depend Mixxx on that.
@rryan can you adopt this bug?