[Pkg-bluetooth-maintainers] Bug#856487: pulseaudio: SIGSEGV upon streaming to bluetooth headset

Felipe Sateler fsateler at debian.org
Fri Mar 3 18:27:56 UTC 2017


Control: retitle -1 libsbc1: compiling with gcc > 4.9 causes stack corruption

On Fri, Mar 3, 2017 at 3:24 PM, Linus Lüssing <linus.luessing at c0d3.blue> wrote:
> On Fri, Mar 03, 2017 at 01:14:56PM -0300, Felipe Sateler wrote:
>> It has been pointed out to me that this may be unrelated to PIE, but
>> just caused by a newer GCC version. Could you check if disabling PIE
>> makes the binary work again? To do so:
>>
>> apt-get source sbc
>> sudo apt-get build-dep sbc
>> cd sbc-1.3
>> DEB_BUILD_OPTIONS=hardening=-pie dpkg-buildpackage -us -uc
>> sudo dpkg -i ../libsbc1_*.deb
>
> Tried it, but still crashes. I also tried:
>
> 0) dpkg-buildpackage -us -uc
> 1) DEB_BUILD_OPTIONS=hardening=-stackprotectorstrong,-stackprotector,-pie,-fortify dpkg-buildpackage -us -uc
> 2) DEB_BUILD_OPTIONS=hardening=-all dpkg-buildpackage -us -uc
> 3) CC=gcc-5 dpkg-buildpackage -us -uc
>
> But the resulting packages/libraries crash, too.
>
> ~~~
> $ gcc --version
> gcc (Debian 6.3.0-8) 6.3.0 20170221
> $ gcc-5 --version
> gcc-5 (Debian 5.4.1-5) 5.4.1 20170205
> ~~~
>
> What seems to work though:
> ~~~
> $ CC=clang dpkg-buildpackage -us -uc
> [...]
> $ sudo dpkg -i ../libsbc1_*.deb
> ~~~

Thanks for verifying! The problem would not be PIE then. It appears
the custom assembler is not compatible with current gcc versions.

-- 

Saludos,
Felipe Sateler



More information about the Pkg-bluetooth-maintainers mailing list