Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118226

Summary: media-sound/gramofile-1.6 segfaults when recording or playing
Product: Gentoo Linux Reporter: Volker Schroer <dl1ksv>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: fellows, sound
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 137756    
Bug Blocks:    
Attachments: Ebuild for changing some CFLAGS in gramofile

Description Volker Schroer 2006-01-07 13:42:50 UTC
When trying to record or play a soundfile with gramofile , gramofile doesn't do anything. The logfiles show a segmentation fault.

Steps to reproduce

1) Start gramofile
2) Select:
   Record audio to a sound file
   select the file and start recording

Actual results:

Gramofile returns to main menu at once
In the log you'll get for example:

Jan  7 17:40:19 tux64 brec_gramo[5219]: segfault at ffffffffff9a0b5c rip 000000000040230a rsp 00007fffff99f5c0 error 4
Jan  7 17:41:16 tux64 brec_gramo[5222]: segfault at ffffffffff848b58 rip 000000000040230a rsp 00007fffff8472d0 error 4
Jan  7 17:47:07 tux64 brec_gramo[5277]: segfault at ffffffffff838b5c rip 00002aaaaad88c90 rsp 00007fffff836f28 error 4

Expected results

 a saved soundfile

Tested versions:
gramofile-1.6 and gramofile-1.6-r1
Comment 1 Volker Schroer 2006-01-07 13:51:19 UTC
This problem is caused by a missing call to basename if the macrovariable linux is not set

Solved this problem by adding the following line 

sed -i -e "s/CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DREDHAT50 -DLP2CD -DVUMETER/CFLAGS \= -Wall `echo ${CFLAGS}
` -DUSEBUFFLOCK -DLP2CD -DVUMETER -Dlinux/" bplaysrc/Makefile

to the ebuild.

Additionally this line assures that the CFLAGS from make.conf are used.

A new ebuild is attached
Comment 2 Volker Schroer 2006-01-07 13:53:06 UTC
Created attachment 76473 [details]
Ebuild for changing some CFLAGS in gramofile
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-11-16 13:41:52 UTC
Please test w/ gramofile-1.6_p3 and reopen if you have issues with that one.