Opened 12 years ago

Closed 7 years ago

#32719 closed defect (fixed)

mpd crash on Lion when playing m4a files

Reported by: promac@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: iggames@…
Port: mpd

Description

The bug was also reported in mantis:

http://musicpd.org/mantis/view.php?id=3413

mp3 files play fine, but any m4a file downloaded from icloud crashes mpd when switching to another song or at the end of the song.

I am using the latest mpd port (0.16.5).

Change History (9)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rmstonecipher@… added
Owner: changed from macports-tickets@… to milosh@…
Port: mpd added

Then I guess we'll wait for upstream to fix it. Not MacPorts-specific.

comment:2 Changed 12 years ago by iggames@…

The upstream bug is stuck because no one can get the debug info he asked for. I took a stab at this myself, and found that I could not reproduce the crash if I disabled optimization (I was trying to include debug symbols with -g, and http://stackoverflow.com/questions/1370945/xcode-3-2-llvm-no-local-symbols-when-debugging suggested that optimization might get in the way of this):

Edit the Port file: sudo port edit mpd
Add line: configure.cflags-delete -O2
Uninstall: sudo port uninstall mpd
Reinstall from local sources: sudo port -s install mpd

This suggestions a compiler bug, not necessarily a product bug. Should macports take some action here (such as removing the -O2 flag by default)? Or does the fact that -O2 causes the problem suggest a particular sort of fix in the product?

comment:3 in reply to:  2 Changed 12 years ago by promac@…

Replying to iggames@…:

The upstream bug is stuck because no one can get the debug info he asked for. I took a stab at this myself, and found that I could not reproduce the crash if I disabled optimization (I was trying to include debug symbols with -g, and http://stackoverflow.com/questions/1370945/xcode-3-2-llvm-no-local-symbols-when-debugging suggested that optimization might get in the way of this):

Edit the Port file: sudo port edit mpd
Add line: configure.cflags-delete -O2
Uninstall: sudo port uninstall mpd
Reinstall from local sources: sudo port -s install mpd

This suggestions a compiler bug, not necessarily a product bug. Should macports take some action here (such as removing the -O2 flag by default)? Or does the fact that -O2 causes the problem suggest a particular sort of fix in the product?

I can confirm that suppressing -O2 fixes this issue.

That is exactly the same problem I have when running CGAL applications on Lion. Random crashes if I use -O2.

comment:4 Changed 12 years ago by iggames@…

Cc: iggames@… added

Cc Me!

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Clearing or changing configure.optflags would be easier than using configure.cflags.

Is this change still needed with mpd 0.17?

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rmstonecipher@… removed
Owner: changed from milosh@… to rmstonecipher@…

comment:7 Changed 12 years ago by promac@…

Unfortunately, yes, it still crashes.

The solution is keep rebuilding mdp myself ...

comment:8 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from rmstonecipher@… to macports-tickets@…

rmstonecipher has retired. See #51138.

comment:9 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

closing - mpd requires Mt Lion+

Note: See TracTickets for help on using tickets.