Continuing.
gdb: child_resume.SetThreadContext: thread 636.0x578
ContinueDebugEvent (cpid=636, ctid=1400, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=1400 code=EXIT_THREAD_DEBUG_EVENT)
ContinueDebugEvent (cpid=636, ctid=1400, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x25c
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=dc code=CREATE_THREAD_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0xdc
ContinueDebugEvent (cpid=636, ctid=220, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=574 code=CREATE_THREAD_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x574
ContinueDebugEvent (cpid=636, ctid=1396, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=678 code=CREATE_THREAD_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x678
ContinueDebugEvent (cpid=636, ctid=1656, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x25c
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x25c
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x25c
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x25c
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x25c
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0x25c
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=1396 code=EXIT_THREAD_DEBUG_EVENT)
ContinueDebugEvent (cpid=636, ctid=1396, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=1656 code=EXIT_THREAD_DEBUG_EVENT)
ContinueDebugEvent (cpid=636, ctid=1656, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=f4 code=CREATE_THREAD_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 636.0xf4
ContinueDebugEvent (cpid=636, ctid=244, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=220 code=EXIT_THREAD_DEBUG_EVENT)
ContinueDebugEvent (cpid=636, ctid=220, DBG_CONTINUE);
gdb: kernel event for pid=636 tid=604 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_ACCESS_VIOLATION at 0x77c478ac

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 636.0x25c]
0x77c478ac in strlen () from C:\WINDOWS\system32\msvcrt.dll
#0  0x77c478ac in strlen () from C:\WINDOWS\system32\msvcrt.dll
#1  0x6c9c967f in int_vasprintf ()
   from C:\Program Files\gnucash\bin\libdbi-0.dll
#2  0x6c9c96af in vasprintf () from C:\Program Files\gnucash\bin\libdbi-0.dll
#3  0x6c9c32f4 in dbi_conn_queryf ()
   from C:\Program Files\gnucash\bin\libdbi-0.dll
#4  0x65e875ea in conn_test_dbi_library (conn=0x3d4eb80)
    at ../../../../repos/src/backend/dbi/gnc-backend-dbi.c:2891
#5  0x65e817cc in gnc_dbi_sqlite3_session_begin (qbe=0x3c6c8b8, 
    session=0x3c83460, 
    book_id=0x652f7b8 "sqlite3://C:\\Documents and Settings\\User\\My Documents\\gnucash\\test.gnucash", ignore_lock=0, create=1, force=0)
    at ../../../../repos/src/backend/dbi/gnc-backend-dbi.c:315
#6  0x004f2104 in qof_session_begin (session=0x3c83460, 
    book_id=0x3c147a8 "sqlite3://C:\\Documents and Settings\\User\\My Documents\\gnucash\\test.gnucash", ignore_lock=0, create=1, force=0)
    at ../../../../repos/src/libqof/qof/qofsession.c:1164
#7  0x00e5f7f7 in gnc_file_do_save_as (
    filename=0x6528850 "sqlite3://C:\\Documents and Settings\\User\\My Documents\\gnucash\\test") at ../../../repos/src/gnome-utils/gnc-file.c:1307
#8  0x00e2b04f in gnc_ui_file_access_response_cb (dialog=0x3c41000, 
    response=-5, unused=0x3c41000)
    at ../../../repos/src/gnome-utils/dialog-file-access.c:140
Quit (expect signal SIGINT when the program is resumed)
ContinueDebugEvent (cpid=636, ctid=604, DBG_CONTINUE);
Detaching from program: C:\Program Files\gnucash\bin\gnucash.exe, Pid 636
gdb: child_close, inferior_ptid=0
