apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuri V. Vishnevskiy" <yuri.vishnevs...@gmail.com>
Subject Re: Crash in apr_file_close() (Win32)
Date Sun, 20 Sep 2009 02:56:17 GMT
> On Sat, 2009-09-19 at 23:34 +0700, Yuri V. Vishnevskiy wrote:
>> I have a problem with using stdout stream opened by
>> apr_file_open_stdout()
>> function. If I open several stdout handlers in my program then it
>> crashes
>> when calls apr_file_close() function more than one time.
>
> Could you run it within a debugger and then give us a stack trace?
>

Here is a call stack:

test.exe!_crt_debugger_hook(int _Reserved=2)  Line 62	C
test.exe!_invalid_parameter(const wchar_t * pszExpression=0x00481474,  
const wchar_t * pszFunction=0x004814a0, const wchar_t *  
pszFile=0x004814b0, unsigned int nLine=48, unsigned int pReserved=0)  Line  
112 + 0x7 bytes	C++
test.exe!_close(int fh=1)  Line 48 + 0x7b bytes	C
> test.exe!file_cleanup(void * thefile=0x0035d880)  Line 303 + 0x7 bytes	C
test.exe!apr_file_close(apr_file_t * file=0x0035d880)  Line 494 + 0x9  
bytes	C
test.exe!main(int a=1, char * * b=0x00353128)  Line 27	C
test.exe!__tmainCRTStartup()  Line 266 + 0x19 bytes	C
test.exe!mainCRTStartup()  Line 182	C
kernel32.dll!7c817077() 	
[Frames below may be incorrect and/or missing, no symbols loaded for  
kernel32.dll]	


Regards,
Yura Vishnevskiy

Mime
View raw message