Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built executable segfaults on Debian 11 #267

Closed
bootmii opened this issue Mar 17, 2022 · 3 comments
Closed

Built executable segfaults on Debian 11 #267

bootmii opened this issue Mar 17, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@bootmii
Copy link

bootmii commented Mar 17, 2022

Describe the bug
When built on Debian 11, the executable sneedacity segfaults on launch.

To Reproduce

  1. Install the required packages
  2. Try to run Cmake.
  3. The source tree doesn't have a sneedacity subdirectory, guess we're using .. instead.
  4. Run make
  5. Run bin/Debug/sneedacity
  6. See a "segmentation fault" error

Expected behavior
A clear and concise description of what you expected to happen.

  1. You wouldn't be telling us to refer to ../sneedacity, which doesn't exist once we cd into build.
  2. I have all the dependencies, and all the warnings about how wxWidgets shouldn't be using GTimeVal and all the deprecated declarations shouldn't matter.
  3. The binary doesn't segfault on launch
    Screenshots
    If applicable, add screenshots to help explain your problem.

Additional information (please complete the following information):

  • OS: Debian 11 Bullseye
  • Version: Sneedacity 3.x, I think I cloned it
  • Sound Device: ALSA/PulseAudio on an Intel HD Audio chipset

Additional context
Add any other context about the problem here.

@ImGonnaChuck ImGonnaChuck self-assigned this Mar 24, 2022
@ImGonnaChuck ImGonnaChuck added the bug Something isn't working label Mar 24, 2022
@ImGonnaChuck ImGonnaChuck modified the milestone: Correct bugs Mar 24, 2022
@ImGonnaChuck
Copy link
Contributor

I was able to confirm this bug on a fresh amd64 Debian VM.

@ImGonnaChuck
Copy link
Contributor

It happens inside the function Pa_Initialize() called in the line PaError err = Pa_Initialize(); of the file AudioIO.cpp.
We need to find out why Portaudio is segfaulting.

ImGonnaChuck added a commit that referenced this issue Mar 25, 2022
… ffmpeg init earlier so that when avcodec_register_all() is called by the system's libasound_module_pcm_a52.so, the function pointer declared in FFmpeg.h isn't null. However the fact that system's libraries have dependencies fulfilled by older versions in the repo is very wrong and will cause issues down the line. (#268)

I don't know why the build action hasn't triggered so I'm merging it.
@ImGonnaChuck
Copy link
Contributor

Should be fixed in commit 9bf36c7. Please re-open if the error persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants