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

Segfault upon completion of conversion (gcc / minGW only) #3

Closed
jniemann66 opened this issue Nov 10, 2017 · 0 comments
Closed

Segfault upon completion of conversion (gcc / minGW only) #3

jniemann66 opened this issue Nov 10, 2017 · 0 comments

Comments

@jniemann66
Copy link
Owner

jniemann66 commented Nov 10, 2017

Description: occasional crash at the end of the conversion
Affects: version 2.0.0+ when compiled with gcc or minGW

Suspect double-free or some other deallocation issue

2.0.0-pre-release 64-bit version                                                                                                                                                   
Input file: ./inputs/96khz_sweep-3dBFS_32f.wav                                                                                                                                     
Output file: ./outputs/96khz_sweep-3dBFS_32f-to44k-dp-steep.wav                                                                                                                    
Using double precision for calculations.                                                                                                                                           
input bit format: 32f (float)                                                                                                                                                      
source file channels: 1                                                                                                                                                            
input sample rate: 96000                                                                                                                                                           
output sample rate: 44100                                                                                                                                                          
Scanning input file for peaks ...Done                                                                                                                                              
Peak input sample: 0.707107 (-3.010297 dBFS) at 0:0:0.215438                                                                                                                       
LPF transition frequency: 21047.73 Hz (95.45 %)                                                                                                                                    
Conversion ratio: 0.459375 (147:320)                                                                                                                                               
Writing Metadata                                                                                                                                                                   
Converting ...Done                                                                                                                                                                 
Peak output sample: 0.707107 (-3.010297 dBFS)                                                                                                                                      
Time=329 ms [24.3x]                                                                                                                                                                

*** Error in `../ReSampler': double free or corruption (out): 0x0000000001a7edc0 ***              

Update 24/02/18:
fixed channel output buffer size out-by-one bug.
See attached valgrind output
valgrind-session-ReSampler-bug.txt

Update 17/02/18: crashing as soon as
std::vector<std::vector> outputChannelBuffers;
is destroyed. Still not exactly sure why.

@jniemann66 jniemann66 changed the title Segfault upon completion of conversion (gcc / linux / dev version only) Segfault upon completion of conversion (gcc / minGW only) Feb 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant