Azure-Samples / Cognitive-Services-Voice-Assistant

Welcome to the Microsoft Voice Assistant samples repository! Here you will find samples to help you get started building client application for your bot or Custom Command service. You will also be able to easily deploy a working Custom Command based Voice Assistant to your own Azure subscription
MIT License
102 stars 99 forks source link

Crash if compiling cpp-console with -O2 #556

Open albanoandrea opened 3 years ago

albanoandrea commented 3 years ago

This issue is for a: (mark with an x)

- [x] bug report 
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

On linux (both Ubuntu 20.04 x64 and a custom yocto arm64). Building with -O2 gcc optimization generate a crash. No problem going back to -O0.

Any log messages given by the failure

18:39:53.192 Initialized with live mic. Enter 'x' to exit. New status : Initializing 18:39:53.192 Configuration loaded. Creating connector... 18:39:53.208 Connector created 18:39:53.208 Initializing Audio Player... Format = Mono16khz16bit stack smashing detected : terminated Aborted (core dumped)

OS and Version?

Ubuntu 20.04, Custom Yocto

Versions

SpeechSDK-Linux-1.16.0/1.17.0