[Bug 35893] New: sdb2xml (.NET 2.0 app) crashes on unimplemented function apphelp.dll.SdbOpenDatabase
https://bugs.winehq.org/show_bug.cgi?id=35893 Bug ID: 35893 Summary: sdb2xml (.NET 2.0 app) crashes on unimplemented function apphelp.dll.SdbOpenDatabase Product: Wine Version: 1.7.15 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: focht(a)gmx.net Hello folks, as the summary says. Prerequisite: 'winetricks -q dotnet20' (Mono might work too, couldn't test) Created a dummy file: --- snip --- $ touch foo.sdb --- snip --- Run the app: --- snip --- $ wine ./sdb2xml.exe foo.sdb fixme:thread:SetThreadStackGuarantee (0x33fc28): stub fixme:shell:URL_ParseUrl failed to parse L"System" fixme:shell:URL_ParseUrl failed to parse L"System.Xml" wine: Call from 0x7b83abc3 to unimplemented function apphelp.dll.SdbOpenDatabase, aborting Error: External component has thrown an exception. fixme:process:FlushProcessWriteBuffers : stub --- snip --- MSDN: http://msdn.microsoft.com/en-us/library/bb432457%28v=vs.85%29.aspx --- quote --- PDB WINAPI SdbOpenDatabase( _In_ LPCTSTR pwszPath, _In_ PATH_TYPE eType ); Parameters pwszPath [in] The database path. This parameter cannot be NULL. eType [in] The path type. See PATH_TYPE for a list of values. --- quote --- There is no ANSI version here, LPCTSTR will be always mapped to LPCWSTR. Interestingly there seem to be two API functions essentially doing the same: SdbOpenDatabase -> Windows Vista+, returns 'PDB' SdbInitDatabase -> Windows XP+, returns 'HSDB' $ sha1sum sdb2xml.exe 9808bc17a7ea4f43ecdcb11f4e18204805246dbd sdb2xml.exe $ du -sh sdb2xml.exe 28K sdb2xml.exe $ wine --version wine-1.7.15-112-g2aad5d7 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |http://blogs.msdn.com/b/hea | |ths/archive/2007/11/02/sdb2 | |xml.aspx -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com --- Comment #1 from Austin English <austinenglish(a)gmail.com> --- After https://source.winehq.org/git/wine.git/commitdiff/58cbdf26c9becf277e41de28c0... I get: fixme:apphelp:SdbOpenDatabase stub: L"foo.sdb" 00000000 <?xml version="1.0" encoding="IBM437" standalone="yes"?> <SDB xmlns:xs="http://www.w3.org/2001/XMLSchema" path="foo.sdb"wine: Call from 0x7b83957c to unimplemented function apphelp.dll.SdbGetFirstChild, aborting Stacktrace: at <unknown> <0xffffffff> at (wrapper managed-to-native) Microsoft.AppCompat.Interop.NativeMethods.SdbGetFirstChild (Microsoft.AppCompat.Pdb,int) <0xffffffff> at Microsoft.AppCompat.Tag/<get_Tags>d__0.MoveNext () <0x00047> at Microsoft.AppCompat.Program.Run () <0x002e7> at Microsoft.AppCompat.Program.Main (string[]) <0x0005b> at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff> ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= abnormal program termination err:mscoree:expect_no_runtimes Process exited with a Mono runtime loaded. If dotnet20 is used instead, I get a more cryptic error/backtrace: Unhandled Exception: System.IO.IOException: Unknown error "6". at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.__Error.WinIOError() at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.AppDomainSetup.NormalizePath(String path, Boolean useAppBase) at System.AppDomainSetup.SetupDefaultApplicationBase(String imageLocation) at System.AppDomain.SetupFusionStore(AppDomainSetup info) at System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile) wine: Unhandled exception 0xe0434f4d in thread 9 at address 0x7b83957c (thread 0009), starting debugger... Unhandled exception: 0xe0434f4d in 32-bit code (0x7b83957c). interestingly, the SdbOpenDatabase stub appears to not be called. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 --- Comment #2 from Austin English <austinenglish(a)gmail.com> --- https://source.winehq.org/patches/data/108947 https://source.winehq.org/patches/data/108948 prevents the crash on mono: fixme:apphelp:SdbOpenDatabase stub: L"foo.sdb" 00000000 <?xml version="1.0" encoding="IBM437" standalone="yes"?> <SDB xmlns:xs="http://www.w3.org/2001/XMLSchema" path="foo.sdb"fixme:apphelp:SdbGetFirstChild stub: (nil) 0 />fixme:apphelp:SdbCloseDatabase stub: (nil) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |58cbdf26c9becf277e41de28c08 | |a8b712932d9e8 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Anastasius Focht <focht(a)gmx.net> --- Hello Austin, thanks for the work. Fixed by commit https://source.winehq.org/git/wine.git/commitdiff/58cbdf26c9becf277e41de28c0... Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |38017 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.36. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |apphelp -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35893 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|http://blogs.msdn.com/b/hea |https://web.archive.org/web |ths/archive/2007/11/02/sdb2 |/20140411095247/http://blog |xml.aspx |s.msdn.com/cfs-filesystemfi | |le.ashx/__key/communityserv | |er-components-postattachmen | |ts/00-05-85-20-88/sdb2xml.e | |xe --- Comment #5 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, adding stable download link via Internet Archive for documentation. https://web.archive.org/web/20100727051600/http://blogs.msdn.com/b/heaths/ar... https://web.archive.org/web/20140411095247/http://blogs.msdn.com/cfs-filesys... $ sha1sum sdb2xml.exe 9808bc17a7ea4f43ecdcb11f4e18204805246dbd sdb2xml.exe $ du -sh sdb2xml.exe 28K sdb2xml.exe Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla