https://bugs.winehq.org/show_bug.cgi?id=40411
Bug ID: 40411 Summary: Regedit.exe /e only exports HKLM Product: Wine Version: 1.9.7 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: registry Assignee: wine-bugs@winehq.org Reporter: mywine@schiermeier-it.de Distribution: ---
Created attachment 54148 --> https://bugs.winehq.org/attachment.cgi?id=54148 Full log from "regedit /e all.reg" (WINEDEBUG=+all)
I used "regedit /e all.reg" to export the complete registry to a file "all.reg". In "all.reg" I only got "HKey_Local_Machine". The rest is missing. Also it ends with return 1.
https://bugs.winehq.org/show_bug.cgi?id=40411
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|registry |-unknown
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- That's the way it works on Windows, /e exports HKLM and HKU sections only, and Wine does the same.
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #2 from Joerg Schiermeier mywine@schiermeier-it.de --- (In reply to Nikolay Sivov from comment #1)
That's the way it works on Windows, /e exports HKLM and HKU sections only, and Wine does the same.
Sorry, but wine exports only HKLM. No HKU.
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #3 from Joerg Schiermeier mywine@schiermeier-it.de --- Possible regression?
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- I just tried, and it does export HKU here. Not sure why it's not working for you.
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #5 from Joerg Schiermeier mywine@schiermeier-it.de --- Aaaah, I know what is wrong: I used the wine packages from debians "pkg-wine-party" people. (http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-wine-party)
In the last time this drove my crazy. So it happend again. I think I will have to blame them for this behaviour.
Sorry for the noise here!!
This bug (report) is INVALID / CLOSE
-Stop processing here.-
https://bugs.winehq.org/show_bug.cgi?id=40411
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #6 from Austin English austinenglish@gmail.com --- Invalid.
https://bugs.winehq.org/show_bug.cgi?id=40411
Joerg Schiermeier mywine@schiermeier-it.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Debian
https://bugs.winehq.org/show_bug.cgi?id=40411
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com --- Closing invalid bugs.
https://bugs.winehq.org/show_bug.cgi?id=40411
Jens Reyer jre.winesim@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jre.winesim@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #8 from Joerg Schiermeier mywine@schiermeier-it.de --- This bug will have to be reopend!
The export with
regedit /e all.reg
didn't finish and gives you an uncomplete exported file. It says It is done but also throws an error result equal one not zero.
See more details here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832129
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- For me it exports ~40000 lines ending with:
[HKEY_USERS\S-1-5-21-0-0-0-1000\Volatile Environment] "APPDATA"="C:\users\wine\Application Data" "CLIENTNAME"="Console" "HOMEDRIVE"="C:" "HOMEPATH"="\users\wine" "HOMESHARE"="" "LOCALAPPDATA"="C:\users\wine\Local Settings\Application Data" "LOGONSERVER"="\\Note" "SESSIONNAME"="Console" "USERDOMAIN"="Note" "USERNAME"="wine" "USERPROFILE"="C:\users\wine"
Have you tried in a clean prefix?
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #10 from Joerg Schiermeier mywine@schiermeier-it.de --- As I wrote in Debians Bugtracker: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832129 I got this:
##### copy from my zsh terminal view - start ##### joerg@Pythagoras ~ % unset LANG joerg@Pythagoras ~ % rm -fR ~/.wine joerg@Pythagoras ~ % wine-development wineboot -fu wine: created the configuration directory '/home/joerg/.wine' err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046} err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa} err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002 err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002 err:ole:get_local_server_stream Failed: 80004002 err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046} err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa} err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002 err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002 err:ole:get_local_server_stream Failed: 80004002 Could not load wine-gecko. HTML rendering will be disabled. Could not load wine-gecko. HTML rendering will be disabled. wine: configuration in '/home/joerg/.wine' has been updated. Could not load wine-gecko. HTML rendering will be disabled. Could not load wine-gecko. HTML rendering will be disabled. wine: configuration in '/home/joerg/.wine' has been updated. joerg@Pythagoras ~ % wine-development regedit /e all-reg.txt Success.
1 joerg@Pythagoras ~ % ##### copy from my zsh terminal view - end #####
The number 1 in the last line also reports that there was an error and that it return the errorcode 1.
The exported file starts with
########## 1 REGEDIT4 2 3 [HKEY_LOCAL_MACHINE] 4 5 [HKEY_LOCAL_MACHINE\HARDWARE] 6 7 [HKEY_LOCAL_MACHINE\HARDWARE\Description] 8 9 [HKEY_LOCAL_MACHINE\HARDWARE\Description\System] 10 "Identifier"="AT compatible" 11 12 [HKEY_LOCAL_MACHINE\HARDWARE\Description\System\CentralProcessor] 13 14 [HKEY_LOCAL_MACHINE\HARDWARE\Description\System\CentralProcessor\0] 15 "FeatureSet"=dword:00033fff 16 "Identifier"="x86 Family 6 Model 30 Stepping 5" 17 "ProcessorNameString"="Intel(R) Pentium(R) 4 CPU 2.40GHz" 18 "VendorIdentifier"="GenuineIntel" 19 "~MHz"=dword:00000640 20 ##########
and ends with
########## 18040 [HKEY_LOCAL_MACHINE\Software\Microsoft\RPC\SecurityService] 18041 "1"="secur32.dll" 18042 "10"="secur32.dll" 18043 "14"="schannel.dll" 18044 "16"="secur32.dll" 18045 "18"="secur32.dll" 18046 "68"="netlogon.dll" 18047 "9"="secur32.dll" 18048 18049 [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools] 18050 18051 [HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\MSInfo] 18052 18053 [HKEY_LOCAL_MACHINE\Software\Microsoft\Software] 18054 18055 [HKEY_LOCAL_MACHINE\Software\Microsoft\Software\Microsoft] 18056 18057 [HKEY_LOCAL_MACHINE\Software\Microsoft\Software\Microsoft\Shared Tools] ########## (line numbers are added by 'cat -n')
So the exported file is incomplete: a lot of HKLM from the registry is missing. Also the part which comes from HKCU isn't available. -----
This was the same in wine v1.9.15. Now I attached also my resulting file.
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #11 from Joerg Schiermeier mywine@schiermeier-it.de --- Created attachment 55174 --> https://bugs.winehq.org/attachment.cgi?id=55174 Complete export of regedit /e.
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #12 from Bruno Jesus 00cpxxx@gmail.com --- Start winecfg first and leave it open and then try again and get a +relay,+reg log. The winecfg is to reduce the relay log size from wine startup stuff.
https://bugs.winehq.org/show_bug.cgi?id=40411
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #13 from Austin English austinenglish@gmail.com --- (In reply to Joerg Schiermeier from comment #8)
This bug will have to be reopend!
The export with
regedit /e all.reg
didn't finish and gives you an uncomplete exported file. It says It is done but also throws an error result equal one not zero.
See more details here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832129
That bug report implies this is a regression, have you been able to find a working version / bisect it?
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #14 from Joerg Schiermeier mywine@schiermeier-it.de --- (In reply to Austin English from comment #13)
That bug report implies this is a regression, have you been able to find a working version / bisect it?
First I will have to recover my old machine. So a report about a regression testing with bisction will follow soon. (Before next version of wine).
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #15 from Joerg Schiermeier mywine@schiermeier-it.de --- Bad news.
I used wine v1.0 as good but got serious problems to compile. So I tried a source package from from sourceforge with version 1.8.1: this "Regedit" did the error which is described here.
No correct export. "Regedit" also stopped exporting with the key "[HKEY_LOCAL_MACHINE\Software\Microsoft\Software\Microsoft\Shared Tools]" and than told me something about "success". But zsh also gave me an error return "1".
My old drive wasn't helpfull: I used regedit to export a special key "The Bat!" (an app I maintain).
This is working: wine regedit /E ~/Downloads/tb.reg "HKEY_CURRENT_USER\Software\Wine\FileOpenAssociations.chm"
Result: --- REGEDIT4
[HKEY_CURRENT_USER\Software\Wine\FileOpenAssociations.chm] "AppName"="hh" "DesktopFile"="/home/joerg/.local/share/applications/wine-extension-chm.desktop" "MimeType"="application/vnd.ms-htmlhelp" "OpenWithIcon"="A35F_hh.0" "ProgID"="chm.file" ---
Now I have to fix some problems with older versions as told in: https://wiki.winehq.org/Regression_Testing#Testing_a_broken_compile and https://wiki.winehq.org/Reverse_Regression_Testing
and some other odd things....
^..^<
Seams to me it never worked before or it worked a long time ago ... (Version v0.x).
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #16 from Joerg Schiermeier mywine@schiermeier-it.de --- (In reply to Bruno Jesus from comment #12)
Start winecfg first and leave it open and then try again and get a +relay,+reg log. The winecfg is to reduce the relay log size from wine startup stuff.
As you recommended I did this: joerg@Pythagoras ~ % unset LANG joerg@Pythagoras ~ % rm -fR ~/.wine joerg@Pythagoras ~ % wine-development wineboot -fu joerg@Pythagoras ~ % wine-development winecfg & joerg@Pythagoras ~ % WINEDEBUG=+relay,+reg wine-development regedit /e ~/Downloads/all.reg 2> ~/Downloads/regedit.log
After this I compressed "all.reg" and "regedit.log". See the uploads here.
https://bugs.winehq.org/show_bug.cgi?id=40411
Joerg Schiermeier mywine@schiermeier-it.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #55174|0 |1 is obsolete| |
--- Comment #17 from Joerg Schiermeier mywine@schiermeier-it.de --- Created attachment 55281 --> https://bugs.winehq.org/attachment.cgi?id=55281 Resulting exported REG-file
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #18 from Joerg Schiermeier mywine@schiermeier-it.de --- Created attachment 55282 --> https://bugs.winehq.org/attachment.cgi?id=55282 Logfile for WINEDEBUG=+relay,+reg
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #19 from Joerg Schiermeier mywine@schiermeier-it.de --- I'm still wrestling with the regression test. Until now I didn't get a "bisection good". I guess only some of v0.x was a good one. Or it never works before, who knows. Will try this versions soon.
https://bugs.winehq.org/show_bug.cgi?id=40411
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|CLOSED |UNCONFIRMED
--- Comment #20 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Joerg Schiermeier from comment #18)
Created attachment 55282 [details] Logfile for WINEDEBUG=+relay,+reg
Starting at line 282163:
002d:Call msvcrt.fputs(00178aa8 "\r\n[HKEY_LOCAL_MACHINE\Software\Microsoft\Software\Microsoft\Shared Tools]\r\n",7ee223a0) ret=7eeb6e64
002d:Ret msvcrt.fputs() retval=00000000 ret=7eeb6e64 002d:Call ntdll.RtlFreeHeap(00110000,00000000,00178aa8) ret=7eeb6e78 002d:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7eeb6e78 002d:Call advapi32.RegEnumValueW(0000005c,00000000,00179860,0032f6c0,00000000,0032f6bc,0017a068,0032f6c4) ret=7eeb70a6
trace:reg:RegEnumValueW (0x5c,0,0x179860,0x32f6c0,(nil),0x32f6bc,0x17a068,0x32f6c4) trace:reg:NtEnumerateValueKey (0x5c,0,1,0x32f43c,256) 002d:Ret advapi32.RegEnumValueW() retval=00000103 ret=7eeb70a6 002d:Call advapi32.RegEnumKeyExW(0000005c,00000000,001790e4,0032f6c4,00000000,00000000,00000000,00000000) ret=7eeb7114
trace:reg:RegEnumKeyExW (0x5c,0,0x1790e4,0x32f6c4(954),(nil),(nil),(nil),(nil)) 002d:Ret advapi32.RegEnumKeyExW() retval=00000000 ret=7eeb7114 002d:Call advapi32.RegOpenKeyW(0000005c,001790e4 L"MSInfo",0032f6c8) ret=7eeb7552 trace:reg:open_key (0x5c,L"MSInfo",2000000,0x32f6c8) trace:reg:open_key <- (nil) 002d:Ret advapi32.RegOpenKeyW() retval=00000002 ret=7eeb7552 002d:Call KERNEL32.FormatMessageW(00001100,00000000,00000000,00000000,0032f628,00000000,00000000) ret=7eeb65ad
002d:Ret KERNEL32.FormatMessageW() retval=0000000a ret=7eeb65ad 002d:Call KERNEL32.GetStdHandle(fffffff5) ret=7eeb59c1 002d:Ret KERNEL32.GetStdHandle() retval=0000001b ret=7eeb59c1 002d:Call KERNEL32.WriteConsoleW(0000001b,00119d20,0000000a,0032f5e8,00000000) ret=7eeb59ce
002d:Ret KERNEL32.WriteConsoleW() retval=00000001 ret=7eeb59ce 002d:Call KERNEL32.LocalFree(00119d20) ret=7eeb65e9 002d:Ret KERNEL32.LocalFree() retval=00000000 ret=7eeb65e9 002d:Call msvcrt.exit(00000001) ret=7eeb65f0
For unknown reasons when attempting to open the key HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\MSInfo
Wine gives up due to an open_key error (trace:reg:open_key <- (nil)) followed by a call to exit(1), that does not happen here:
0009:Call advapi32.RegOpenKeyW(00000054,001676d6 L"MSInfo",0032f8c8) ret=7ecd61e3 trace:reg:open_key (0x54,L"MSInfo",2000000,0x32f8c8) trace:reg:open_key <- 0x58
This error comes from https://source.winehq.org/source/dlls/ntdll/reg.c#0123 Which in turn comes from https://source.winehq.org/source/server/registry.c#0745
Since regedit is printing "Success" in the console it probably means GetLastError returned zero, I don't know. There are a few different places in https://source.winehq.org/source/programs/regedit/regproc.c that call exit(1).
I don't know the real cause of the problem but there is a real bug here since it prints Success instead of the real error.
https://bugs.winehq.org/show_bug.cgi?id=40411
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #21 from winetest@luukku.com --- Was the windows version always the same?
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #22 from Joerg Schiermeier mywine@schiermeier-it.de --- (In reply to winetest from comment #21)
Was the windows version always the same?
Yes.
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #23 from Bruno Jesus 00cpxxx@gmail.com --- If you browse to folder "HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\" from inside regedit GUI can you click on MSInfo folder? Can you export just the Shared Tools folder? I would expect it to fail to browse too.
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #24 from Joerg Schiermeier mywine@schiermeier-it.de --- (In reply to Bruno Jesus from comment #23)
If you browse to folder "HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\" from inside regedit GUI can you click on MSInfo folder? Can you export just the Shared Tools folder? I would expect it to fail to browse too.
You are right.
After just installing wine(-development) version 1.9.16 I dived a little bit into it and I found that "wine.inf" creats an link to "Shared Tools\ MSInfo". Then I commented out in wine.inf this line:
--- ;; line #3316 (wine.inf.in from git. This creates wine.inf) ;;HKLM,Software\Wow6432Node\Microsoft\Software\Microsoft\Shared Tools\MSInfo,"SymbolicLinkValue",0x60000,"\Registry\Machine\Software\Microsoft\Software\Microsoft\Shared Tools\MSInfo" ---
And than it works as expected.
The error is: it is linked to: "\Registry\Machine\Software\Microsoft\Software\Microsoft\Shared Tools\MSInfo" but had to be linked to "\Registry\Machine\Software\Microsoft\Shared Tools\MSInfo" (Too much 'Microsofts' and 'Software' :)
So I can prepare a patch and send it next days.
https://bugs.winehq.org/show_bug.cgi?id=40411
Joerg Schiermeier mywine@schiermeier-it.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |loader
https://bugs.winehq.org/show_bug.cgi?id=40411
--- Comment #25 from winetest@luukku.com --- I didnt test this bug, but the patch was merged.
https://bugs.winehq.org/show_bug.cgi?id=40411
Joerg Schiermeier mywine@schiermeier-it.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #26 from Joerg Schiermeier mywine@schiermeier-it.de --- Patch was send yesterday: https://www.winehq.org/pipermail/wine-patches/2016-August/153438.html
https://bugs.winehq.org/show_bug.cgi?id=40411
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |989bb04495ba6069552727995b3 | |33abc15f0e62f
https://bugs.winehq.org/show_bug.cgi?id=40411
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #27 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.17.
https://bugs.winehq.org/show_bug.cgi?id=40411
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=40411
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #28 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.5.