Patch for crash with message "can't create MCOP directory"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
arts |
Unknown
|
High
|
|||
arts (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Dapper |
Won't Fix
|
Medium
|
Unassigned | ||
Edgy |
Won't Fix
|
Medium
|
Unassigned | ||
mpg321 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: arts
Hi! I'm a developer of Gaim. Earlier today someone complained that they're getting a crash when Gaim tries to play an audio file using libao, which uses arts. The message "can't create MCOP directory" is printed to the console.
I believe this is a bug in arts. It is documented in Red Hat bug #169631: http://
Forgive me if this has already been reported or fixed. I saw some similar bugs in launchpad (31699, 33903, 39182, 42169), but they all seem to attribute the problem to something other than arts. And I would have checked if you already have the patch applied, but I've been unable to find where you guys keep your package files.
Red Hat applies this patch to arts 1.5.3. I suspect it is needed for 1.5.0 and higher. I do not know if there is a more recent release of arts, or if the bug is fixed in arts upstream.
--- arts-1.
+++ arts-1.
@@ -46,7 +46,13 @@
result = lstat(tmp_dir, &stat_buf);
if ((result == -1) && (errno == ENOENT))
{
- return 1;
+ result = mkdir(tmp_dir, 0700);
+ if (result == -1)
+ {
+ arts_warning(
+ return 1;
+ }
+ result = stat(tmp_dir, &stat_buf);
}
if ((result == -1) || (!S_ISDIR(
{
Related branches
Changed in arts: | |
status: | Unknown → Confirmed |
Changed in arts: | |
status: | Unconfirmed → Confirmed |
status: | Unconfirmed → Confirmed |
importance: | Undecided → Medium |
importance: | Undecided → Medium |
importance: | Undecided → Medium |
Changed in arts: | |
status: | Confirmed → Won't Fix |
Changed in arts: | |
status: | Won't Fix → Invalid |
Changed in mpg321: | |
status: | New → Invalid |
Changed in arts: | |
status: | Invalid → Unknown |
Changed in arts: | |
importance: | Unknown → High |
Changed in arts (Ubuntu Dapper): | |
status: | Confirmed → Won't Fix |
Definitely happening (see KDE and RedHat bugtrackers)