Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Bad flac file crashes foobar during replaygain (Read 2643 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Bad flac file crashes foobar during replaygain

I have a flac file that always crashes foobar when it tries to calculate a replaygain value for it. On other bad files, it'll usually say unsupported format or 1 file(s) could not be processed.

Would it be useful to upload this file some place?

Here's the crashlog:
Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 00CB5AC5h
Access violation, operation: write, address: 02E6B000h
Call path:
ReplayGain thread
This is the first crash logged by this instance.
Code bytes (00CB5AC5h):
00CB5A85h:  5F 2B FB 39 7D F4 73 6E 8B 7D F8 6A 08 59 2A 4D
00CB5A95h:  F4 0F B6 D0 D3 EA 8B 4D F4 D3 E7 D2 E0 03 D9 8B
00CB5AA5h:  4D 14 0B D7 8B 7D F0 D3 E7 0B D7 F6 C2 01 8B 7D
00CB5AB5h:  FC 89 55 F8 74 0F D1 EA 83 C9 FF 2B CA 8B 55 0C
00CB5AC5h:  89 0C BA EB 08 8B 4D 0C D1 EA 89 14 B9 FF 45 FC
00CB5AD5h:  8B 4D FC 3B 4D 10 0F 84 98 00 00 00 83 65 F0 00
00CB5AE5h:  83 65 E8 00 E9 36 FF FF FF 6A 08 58 2B C3 01 45
00CB5AF5h:  F0 E9 61 FF FF FF 8B 55 F8 0F B6 C0 8A CB D3 E8
Stack (0394FC70h):
0394FC50h:  F04F8CDC 804E9064 F04F8CE4 00D7D00D
0394FC60h:  82696F98 8116F070 0BD5A000 C00035F4
0394FC70h:  02E70018 FFFFFFFC 00000004 02E8DFF8
0394FC80h:  00000001 00005A41 00000001 00000005
0394FC90h:  00000029 000015F8 0394FCD4 00CB1770
0394FCA0h:  53E70C10 02E65820 FFFFFFFC 00000005
0394FCB0h:  00CB02AB 02E70018 02E6016C 00000008
0394FCC0h:  00000400 02E70018 00000005 00000000
0394FCD0h:  00000000 0394FD0C 00CB20F4 00000008
0394FCE0h:  0000000A 02E600BC 02E65820 00000124
0394FCF0h:  02E70018 00000010 02E60628 0000004C
0394FD00h:  FFFFFF94 0000000A 00000008 0394FD3C
0394FD10h:  00CB23B7 00000001 00000010 00000008
0394FD20h:  00000001 00000002 02E70018 00000001
0394FD30h:  00000000 00008CDB 0000004E 0394FD60
0394FD40h:  00CB2479 00000001 00000001 00000001
0394FD50h:  02E70018 00000000 02E60048 00000000
0394FD60h:  0394FD78 00CB26E4 0394FD80 00000001
0394FD70h:  00D757D0 02E7DFD8 02F6BF94 00CAF4CF
0394FD80h:  00000000 00D757C8 00C0725A 02E7DFD8
Registers:
EAX: 00005A80, EBX: 00000007, ECX: FFFFFFEB, EDX: 02E65820
ESI: 02E70C10, EDI: 000015F8, EBP: 0394FC98, ESP: 0394FC70
Crash location: "foo_input_std", loaded at 00C00000h - 00D53000h

Loaded modules:
foobar2000                      loaded at 00400000h - 004EE000h
ntdll                            loaded at 7C900000h - 7C9B0000h
kernel32                        loaded at 7C800000h - 7C8F4000h
COMCTL32                        loaded at 773D0000h - 774D2000h
msvcrt                          loaded at 77C10000h - 77C68000h
ADVAPI32                        loaded at 77DD0000h - 77E6B000h
RPCRT4                          loaded at 77E70000h - 77F01000h
GDI32                            loaded at 77F10000h - 77F57000h
USER32                          loaded at 77D40000h - 77DD0000h
SHLWAPI                          loaded at 77F60000h - 77FD6000h
SHELL32                          loaded at 7C9C0000h - 7D1D5000h
ole32                            loaded at 774E0000h - 7761D000h
shared                          loaded at 10000000h - 1002D000h
comdlg32                        loaded at 763B0000h - 763F9000h
uxtheme                          loaded at 5AD70000h - 5ADA8000h
foo_albumlist                    loaded at 003C0000h - 003F1000h
foo_autoplaylist                loaded at 00A40000h - 00A6E000h
foo_cdda                        loaded at 00A90000h - 00AC1000h
foo_converter                    loaded at 00AF0000h - 00B39000h
foo_dbsearch                    loaded at 00B60000h - 00B88000h
MSVCR71                          loaded at 7C340000h - 7C396000h
foo_dsp_std                      loaded at 00BA0000h - 00BE0000h
foo_input_std                    loaded at 00C00000h - 00D53000h
foo_lnk                          loaded at 00D80000h - 00D88000h
foo_masstag                      loaded at 00D90000h - 00DDC000h
foo_playlistgen                  loaded at 00E00000h - 00E2B000h
foo_playlist_manager            loaded at 00E50000h - 00E6C000h
foo_random                      loaded at 00E70000h - 00E88000h
foo_rgscan                      loaded at 00E90000h - 00EC6000h
foo_shn                          loaded at 00EF0000h - 00F03000h
foo_tradersfriend                loaded at 00F10000h - 00F2B000h
foo_uie_albumlist                loaded at 00F30000h - 00F45000h
foo_ui_columns                  loaded at 00F50000h - 00FB1000h
foo_ui_std                      loaded at 00FC0000h - 01005000h
foo_utils                        loaded at 01030000h - 01045000h
foo_vis_vu_meter                loaded at 01050000h - 0105B000h
DSOUND                          loaded at 73F10000h - 73F6C000h
WINMM                            loaded at 76B40000h - 76B6D000h
VERSION                          loaded at 77C00000h - 77C08000h
WINTRUST                        loaded at 76C30000h - 76C5E000h
CRYPT32                          loaded at 77A80000h - 77B14000h
MSASN1                          loaded at 77B20000h - 77B32000h
IMAGEHLP                        loaded at 76C90000h - 76CB8000h
wdmaud                          loaded at 72D20000h - 72D29000h
msacm32                          loaded at 72D10000h - 72D18000h
MSACM32                          loaded at 77BE0000h - 77BF5000h
midimap                          loaded at 77BD0000h - 77BD7000h
KsUser                          loaded at 73EE0000h - 73EE4000h
xpsp2res                        loaded at 20000000h - 202C5000h
DBGHELP                          loaded at 59A60000h - 59B01000h

Stack dump analysis:
Address: 00CB1770h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00CB02ABh, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00CB20F4h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00CB23B7h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00CB2479h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00CB26E4h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00CAF4CFh, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00C0725Ah, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00C07C2Fh, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00E9E071h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00CDBD68h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00C041E6h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00C05866h, location: "foo_input_std", loaded at 00C00000h - 00D53000h
Address: 00EB147Ch, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00E96CA4h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00EB14A0h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00EB19C8h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00EB1A48h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00EB1A18h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00EB1A18h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 01000018h, location: "foo_ui_std", loaded at 00FC0000h - 01005000h
Address: 00EAFAE1h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00E970C0h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00EAFAF0h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00E97156h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 00EAFB09h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h
Address: 7C80B50Bh, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "GetModuleFileNameA" (+000001B4h)
Address: 7C8399F3h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "FindAtomW" (+00000094h)
Address: 7C80B518h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "GetModuleFileNameA" (+000001C1h)
Address: 00E97120h, location: "foo_rgscan", loaded at 00E90000h - 00EC6000h

Version info:
foobar2000 v0.9 beta 10
UNICODE

Additional info:
VU meter 0.2.1  (foo_vis_vu_meter)
Shorten decoder 0.4.2a  (foo_shn)
Standard DSP array 1.0  (foo_dsp_std)
Live show tagger 0.6.1  (foo_tradersfriend)
Album list panel 0.2.0 beta 5  (foo_uie_albumlist)
Database search 1.3.1 beta 9  (foo_dbsearch)
Playlist Manager 1.0  (foo_playlist_manager)
Masstagger 1.5  (foo_masstag)
Shell link resolver 1.1  (foo_lnk)
Columns UI 0.1.3 pre-alpha 14  (foo_ui_columns)
Album List 3.0.0  (foo_albumlist)
Standard input array 1.0  (foo_input_std)
ReplayGain Scanner 2.0  (foo_rgscan)
Monkey's Audio decoder 2.0  (foo_input_std)
FLAC decoder 1.1.0  (foo_input_std)
CD Audio decoder 1.1  (foo_cdda)
Randomized playlist entry 1.2  (foo_random)
Converter 1.0  (foo_converter)
CLI encoder 0.4  (foo_converter)
MPEG-4 AAC decoder 2.1  (foo_input_std)
Utilities 0.5 beta 4  (foo_utils)
HTTP Reader 1.2  (foo_input_std)
Default User Interface 0.9acc  (foo_ui_std)

Bad flac file crashes foobar during replaygain

Reply #1
Does it crash commandline flac.exe as well? It looks like a libflac bug from what I've backtracked.
Microsoft Windows: We can't script here, this is bat country.

Bad flac file crashes foobar during replaygain

Reply #2
It doesn't crash but I get:

flac 1.1.2, Copyright © 2000,2001,2002,2003,2004,2005  Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

bad_09 - Denial.flac: testing, 77% completebad_09 - Denial.flac: *** Got error c
ode 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
bad_09 - Denial.flac: *** Got error code 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOS
T_SYNC


bad_09 - Denial.flac: ERROR while decoding data
                      state = FLAC__STREAM_DECODER_READ_FRAME

-------------------------------------------------------------------------------

Press any key to continue . . .

I was able to use winamp's diskwriter to output to wave and then re-encode.

Quote
Does it crash commandline flac.exe as well? It looks like a libflac bug from what I've backtracked.
[a href="index.php?act=findpost&pid=342183"][{POST_SNAPBACK}][/a]

 

Bad flac file crashes foobar during replaygain

Reply #3
Please re-test with beta11, apparently beta10 was using outdated libflac (1.1.1). If that doesn't help, please send offending file to address I PM'd you.
Microsoft Windows: We can't script here, this is bat country.