muse fails to launch in fresh ubuntustudio install

Bug #479662 reported by marker
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MusE - Linux Music Editor
Unknown
Unknown
Ubuntu Studio
Fix Released
Undecided
Unassigned
muse (Debian)
Fix Released
Unknown
muse (Ubuntu)
Fix Released
Medium
Unassigned
Karmic
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: muse

I tried to launch MusE from the menu but that failed, so I tried on the command line and got this:

$ muse
muse: malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted

A quick search showed that a similar problem has been found in Arch linux:

http://bugs.archlinux.org/task/15466?project=1&order=dateopened&sort=desc&pagenum=8

I tried downloading the source from http://sourceforge.net/project/showfiles.php?group_id=93414 and compiled the latest stable version of MusE (1.0RC3), and the resulting executable gave me exactly the same error as above.

All this was quite a surprise, as MusE is the midi sequencer installed by default in ubuntustudio and I expected it to just work.

ProblemType: Bug
Architecture: amd64
Date: Mon Nov 9 23:31:29 2009
DistroRelease: Ubuntu 9.10
Package: muse 0.8.1a-6.3
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-9.152-rt
SourcePackage: muse
Uname: Linux 2.6.31-9-rt x86_64
XsessionErrors:
 (gnome-settings-daemon:2923): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2923): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:2964): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:2956): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (gnome-panel:2955): Gdk-WARNING **: /build/buildd/gtk+2.0-2.18.3/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window

Revision history for this message
marker (mark-aktivix) wrote :
Revision history for this message
Eric Hedekar (stochastic) wrote :

hmm, Muse starts just fine on 32bit Ubuntu Studio Karmic. The bug you posted from Arch linux is also a 64bit bug.

Revision history for this message
marker (mark-aktivix) wrote : Re: [Bug 479662] Re: muse fails to launch in fresh ubuntustudio install

Hi Eric

Eric Hedekar (stochastic) wrote:
> ** Bug watch added: SourceForge.net Tracker #2894009
> http://sourceforge.net/support/tracker.php?aid=2894009

Thanks for pointing that out. I've added a 'me too' comment on
sourceforge and a link to the launchpad bug from there.

Mark

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

apparently this is still an issue for muse-1.0rc3. i'll debdiff a version of the arch patch in arch version muse-1.0rc3-1. for some reason the bug link to arch isnt being accepted by launchpad. the fix seems a bit arbitrary to me but it does work.

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

i dont have 64bit debian to test if this is a problem there, i'm guessing that it is but if someone who has a debian machine could test muse from debian unstable on 64 and link a bug upstream?

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

proposed package build muse - 0.8.1a-6.3ubuntu1
https://launchpad.net/~sevenmachines/+archive/release+1/+packages

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

hmm, this would be better as a 64 bit only patch as 32 seems unaffected

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

maybe better? only apply on amd64 builds, i386 doesnt have this problem so leaving it alone might be better if theres a hope of getting into sru

muse (0.8.1a-6.3ubuntu1) lucid; urgency=low

  * debian/30_fix_x64_sysmalloc.dpatch: fix sysmalloc on amd64 systems
    debian/patches/00list.amd64: only apply 30_fix_x64_sysmalloc.dpatch on amd64
    (LP: #479662 )
  * debian/control: update maintainer for ubuntu universe

Changed in muse (Ubuntu):
assignee: nobody → Fabrice Coutadeur (fabricesp)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Uploaded in Lucid. Thanks for your contribution!

Can you also report it to Debian?

And follow the SRU process to get this fix applied in Karmic?

Thanks,
Fabrice

Changed in muse (Ubuntu):
assignee: Fabrice Coutadeur (fabricesp) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package muse - 0.8.1a-6.3ubuntu1

---------------
muse (0.8.1a-6.3ubuntu1) lucid; urgency=low

  * debian/30_fix_x64_sysmalloc.dpatch: fix sysmalloc on amd64 systems. Patch
    taken from upstream.
  * debian/patches/00list.amd64: only apply 30_fix_x64_sysmalloc.dpatch on amd64
    (LP: #479662 )
 -- SevenMachines <email address hidden> Thu, 26 Nov 2009 18:07:57 +0000

Changed in muse (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

DESCRIPTION:
muse 0.8.1a-6.3 fails to start on ubuntu karmic amd64 (i386 not affected) with error
$ muse
muse: malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted

TEST CASE:
try to run muse on karmic amd64 arch (i386 not affected)

FIX:
Make change in muse/memory.cpp on amd64 to fix memory grow,
- int esize = (idx+1) * sizeof(int);
+ int esize = (idx+1) * sizeof(int)+2;

Applied in ubuntu lucid
muse (0.8.1a-6.3ubuntu1) lucid; urgency=low

  * debian/30_fix_x64_sysmalloc.dpatch: fix sysmalloc on amd64 systems. Patch
    taken from upstream.
  * debian/patches/00list.amd64: only apply 30_fix_x64_sysmalloc.dpatch on amd64
    (LP: #479662 )

REGRESSION:
The package is currently unusable on amd64 but ok on i386. Changes affect only the build of the muse package. The patch affects is only applied to amd64 builds and should not affect i386 so hopefully regression potential should be low

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

DESCRIPTION:
muse 0.8.1a-6.3 fails to start on ubuntu karmic amd64 (i386 not affected) with error
$ muse
muse: malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted

TEST CASE:
try to run muse on karmic amd64 arch (i386 not affected)

FIX:
Make change in muse/memory.cpp on amd64 to fix memory grow,
- int esize = (idx+1) * sizeof(int);
+ int esize = (idx+1) * sizeof(int)+2;

Applied in ubuntu lucid
muse (0.8.1a-6.3ubuntu1) lucid; urgency=low

  * debian/30_fix_x64_sysmalloc.dpatch: fix sysmalloc on amd64 systems. Patch
    taken from upstream.
  * debian/patches/00list.amd64: only apply 30_fix_x64_sysmalloc.dpatch on amd64
    (LP: #479662 )

REGRESSION:
The package is currently unusable on amd64 but ok on i386. Changes affect only the build of the muse package. The patch affects is only applied to amd64 builds and should not affect i386 so hopefully regression potential should be low

https://launchpad.net/~sevenmachines/+archive/release/+packages

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Uploaded to -proposed. Waiting for approval.

Changed in muse (Debian):
status: Unknown → New
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted muse into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in muse (Ubuntu Karmic):
status: New → Fix Committed
tags: added: verification-needed
Changed in muse (Debian):
status: New → Fix Released
Changed in ubuntustudio:
status: New → Fix Released
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

muse now starts fine in amd64.
Marking as verified

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package muse - 0.8.1a-6.3ubuntu0.1

---------------
muse (0.8.1a-6.3ubuntu0.1) karmic-proposed; urgency=low

  * debian/30_fix_x64_sysmalloc.dpatch: fix sysmalloc on amd64 systems. Patch
    taken from upstream.
  * debian/patches/00list.amd64: only apply 30_fix_x64_sysmalloc.dpatch on amd64
    (LP: #479662 )
 -- SevenMachines <email address hidden> Thu, 26 Nov 2009 18:07:57 +0000

Changed in muse (Ubuntu Karmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.