FS#41476 - [desmume] Program does not start, throws std::bad_alloc
Attached to Project:
Community Packages
Opened by Tilman Blumenbach (Tblue) - Tuesday, 05 August 2014, 12:54 GMT
Last edited by Felix Yan (felixonmars) - Monday, 11 August 2014, 23:34 GMT
Opened by Tilman Blumenbach (Tblue) - Tuesday, 05 August 2014, 12:54 GMT
Last edited by Felix Yan (felixonmars) - Monday, 11 August 2014, 23:34 GMT
|
Details
Description:
------------ desmume does not start. Running it from a terminal shows the following: Failed to set format: Invalid argument Microphone init failed. DeSmuME 0.9.10 svn0 x86-JIT NOSSE terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc zsh: abort desmume Removing ~/.config/desmume/ does not help. Proposed fix: ------------- According to https://bbs.archlinux.org/viewtopic.php?pid=1415917#p1415917, this may be a bug in GCC. Compiling it with clang (as suggested in the linked post) works for me. Unlike the poster, I did not have to edit any external headers to compile desmume with clang, so this is a somewhat easy fix. I have attached a patch for the PKGBUILD. While this is not an ideal solution, it's better than a broken package. Additional info: ---------------- * package version: 0.9.10-3 Steps to reproduce: ------------------- 1. Install desmume from [community]. 2. Try to run it from a terminal (for log output). 3. See how it fails to start. |
This task depends upon
Closed by Felix Yan (felixonmars)
Monday, 11 August 2014, 23:34 GMT
Reason for closing: Implemented
Additional comments about closing: 0.9.10-4
Monday, 11 August 2014, 23:34 GMT
Reason for closing: Implemented
Additional comments about closing: 0.9.10-4
http://pkgbuild.com/~fyan/staging/desmume-0.9.10-4-i686.pkg.tar.xz
http://pkgbuild.com/~fyan/staging/desmume-0.9.10-4-x86_64.pkg.tar.xz
When do you get the segfault?