Bitcoin Forum
May 27, 2024, 09:41:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bad crash behavior when try to launch 0.3.24 against trucrypt container on Win7  (Read 1044 times)
vermorel (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile WWW
July 23, 2011, 07:35:55 PM
Last edit: July 23, 2011, 07:47:54 PM by vermorel
 #1

On Win7 64b with Bitcoin 0.3.24-beta, when I try to launch the Bitcoin client against H:\ - a mounted Truecrypt container - the application crashes. It would be better to provide a more insightful message. I am pasting below the content of debug.log. (not sure if it's the right way to report bugs, don't hesitate to correct me)

[addentum] When I move wallet.dat from the root to a subdirectory, aka, H:\w, then it starts working. Odd.

Best,
/jv


************************
EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10filesystem 22basic_filesystem_errorINS3_10basic_pathISsNS3_11path_traitsEEEEEEEEE      
boost::filesystem::create_directory: Permission Denied: "H:\"      
C:\Program Files (x86)\Bitcoin\bitcoin.exe in AppInit()      



************************
EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10filesystem 22basic_filesystem_errorINS3_10basic_pathISsNS3_11path_traitsEEEEEEEEE      
boost::filesystem::create_directory: Permission: "H:\"      
C:\Program Files (x86)\Bitcoin\bitcoin.exe in CMyApp::OnUnhandledException()      
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
July 23, 2011, 08:17:21 PM
 #2

This doesn't look like a Bitcoin issue. It looks like a Truecrypt issue. Though Bitcoin probably could report the problem better.

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
July 26, 2011, 05:35:36 AM
Last edit: July 26, 2011, 06:18:03 AM by JoelKatz
 #3

I'm pretty sure this is a bug in bitcoin. The calls to filesystem::create_directory should be wrapped in try/catch blocks. If there's an error, it should check if the directory exists. If it does, that should be considered non-fatal. (Consider the case where the data directory is the root of a drive. What sense does it make to try to create the directory in that case?!)

Ideally, TrueCrypt should not report a permission denied error if the directory already exists. But I can see reasons that might be unavoidable and, as far as I can tell, it doesn't violate any requirements.

I opened an issue on github.
https://github.com/bitcoin/bitcoin/issues/432

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!