View Issue Details

IDProjectCategoryView StatusLast Update
0000282ardourbugspublic2008-11-20 23:36
Reportereldad Assigned Topaul  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Summary0000282: Audio Library import crashes with a certain file
DescriptionTrying to import a certain file into the audio library crashes ardour with a segfault.

I have two audiofiles that caused this problem - they weight 15M each.
Additional InformationI'm using gcc 3.3.2, libsndfile 1.0.5, ardour beta10.2
TagsNo tags attached.

Activities

taybin

2004-02-27 18:19

administrator   ~0000467

Can you listen to the file in the AudioLibrary window successfully? What sort of file is it? What is its name?

eldad

2004-02-27 20:51

reporter   ~0000472

No, I can't. Simply trying to import it to the audio library crashes ardour with a segfault.

Both of them are WAV files:

RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz

Changing the filename doesn't seem to matter.
In fact, I traced down the bug to libsndfile.

ardour spits this as it segfaults:

R sizeof (header): 4096 headindex: 4094 bytes: 2

The same happens with sndfile-info.

How come libsndfile can take down ardour on its way down?

taybin

2004-02-27 21:09

administrator   ~0000475

Where did you get the files? What programs can successfully open them?

eldad

2004-02-27 22:30

reporter   ~0000476

I recorded them, in 2001, in windows using soundforge.

xmms can play it, and doesn't act strange, BUT when I exit it segfaults (only visible in the console, doesn't crash at all)

I'm debugging libsndfile right now (the latest, 1.0.7), seems like a problem with a bad behaving memcpy.

eldad

2004-02-27 23:34

reporter   ~0000477

Okay, problem solved in a dirty way - you can close this bug, it's a libsndfile bug and not an ardour bug (though, maybe it could be made to handle libsndfile segfault like xmms, not crashing anyway?).

The problem is that libsndfile assumes a fixed size of 4096 of the sndfile header, which breaks with my file (soundforge saved lots of cues...)
Increasing the header size to 65k fixed it (actually, the header of this file takes 4250 bytes, so it's an overkill)

I'll send this report to the libsndfile maintainers.

paul

2004-02-29 19:31

administrator   ~0000480

error in libsndfile. to be resolved in libsndfile itself.

Issue History

Date Modified Username Field Change
2004-02-27 16:09 eldad New Issue
2004-02-27 18:19 taybin Note Added: 0000467
2004-02-27 18:19 taybin Status new => feedback
2004-02-27 18:19 taybin Description Updated
2004-02-27 20:51 eldad Note Added: 0000472
2004-02-27 21:09 taybin Note Added: 0000475
2004-02-27 22:30 eldad Note Added: 0000476
2004-02-27 23:34 eldad Note Added: 0000477
2004-02-29 19:31 paul Status feedback => resolved
2004-02-29 19:31 paul Resolution open => fixed
2004-02-29 19:31 paul Assigned To => paul
2004-02-29 19:31 paul Note Added: 0000480
2008-11-20 23:36 seablade Status resolved => closed