Skip to content

Crash if compiling cpp-console with -O2 #556

@albanoandrea

Description

@albanoandrea

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions