http://bugs.winehq.org/show_bug.cgi?id=10249
Summary: Battlefield2/SafeDisc 4.x and Punkbuster services cause
lockup: child processes debugging misconception
Product: Wine
Version: CVS/GIT
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: wine-kernel
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Created an attachment (id=8876)
--> (http://bugs.winehq.org/attachment.cgi?id=8876)
WINEDEBUG=-all,+server,+tid,+loaddll,+seh wine ./BF2.exe +fullscreen 0 +szx 800
+szy 600 &>/tmp/debug_pipe
Hello,
while testing some PunkBuster stuff on popular games, I came across Battlefield
2 which employs SafeDisc 4.x
It seems there is a problem with debuggers in chained child processes.
Consider following scenario:
--- snip process list ---
pid threads parent executable (all id:s are in hex)
0000001b 1 00000008 'PnkBstrA.exe'
0000000c 2 00000008 'explorer.exe'
0000000a 2 00000008 '~e5.0001'
00000008 4 00000000 'BF2.exe'
--- snip process list ---
--- snip thread list ---
process tid prio (all id:s are in hex)
0000001b
0000001c 0
0000000c
00000010 0
0000000d 0
0000000a
00000012 0
0000000b 0
00000008
0000001a 1
00000014 15
00000013 0
00000009 0
--- snip thread list ---
"BF2.exe" = parent (game)
"~e5.0001" = 1st child = SafeDisc 4.x process = "debugger"
"PnkBstrA.exe" = 2nd child = PunkBuster Update Service
The 1st child acts as debugger for the parent "BF2.exe" and receives all debug
events (process, thread creation, dll load/unload...)
There are lots of breakpoint events triggered from parent.
This is part of SafeDisc 4.x and used for on-the-fly decryption of code
sections (child decrypts code of father).
When PunkBuster is initialized (loading of pbcl = client, pbag = agent), the
following services should get started: PnkBstrA.exe, PnkBstrB.exe and finally
the kmode driver PnkBstrK.exe
The service process "PnkBstrA.exe" is started from main process "BF2.exe"
(which is a debuggee itself).
No debug flags (DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS) are specified in
process creation flags.
The debugger (child of parent, receives the process creation event) does not
make debugger_attach() to the newly created child process.
The child process seems to inherit the state of being a "debuggee": wine server
-> new_process -> set_process_debugger( process, parent->debugger );
The parent got its process->debugger from debugger_attach().
This leads to a problem in child process startup code:
"dlls/kernel32/process.c:start_process()" checks the PEB->BeingDebugged field
and if set, a system breakpoint is encountered before the entry code is called.
This breakpoint results in debug event - seen by debugger.
Unfortunately this event is _not_ expected by debugger because it didn't expect
another debuggee (child) to be created.
Ok, long story short solution: If you debug a process by attaching to an
already created process, you _must_ treat default debugging flags as if the
process has been created with DEBUG_ONLY_THIS_PROCESS, meaning that all childs
created by debuggee will NOT automagically become debuggees.
Short and (hopefully) acceptable patch snippet:
--- snip ---
diff --git a/server/debugger.c b/server/debugger.c
index a64a17a..c59f3a0 100644
--- a/server/debugger.c
+++ b/server/debugger.c
@@ -444,6 +444,7 @@ static int debugger_attach( struct process *process, struct
thread *debugger )
resume_process( process );
return 0;
}
+ process->create_flags |= DEBUG_ONLY_THIS_PROCESS;
return 1;
error:
--- snip ---
And yes, the patch (snippet) works as intended (tm) ;-)
Attached for sake of completeness is relevant server trace.
Search for "001c:trace:seh:raise_exception code=80000003 flags=0
addr=0x7b870ed8 " to the point where the entry system breakpoint is triggered.
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13249
Summary: Putty: Yes/No/Cancel dialog moving with keyboard arrows
Product: Wine
Version: unspecified
Platform: Other
OS/Version: other
Status: UNCONFIRMED
Severity: trivial
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: munozferna(a)gmail.com
I was trying to create an automated test for putty, and I noticed that there is
a problem between the Cancel and No button on a Yes/No/Cancel dialog. There
seem to be '2' controls between them when you move through the buttons with the
keyboard arrows. This dialog appears when establishing a connection to a
server, putty asks for a confirmation to accept rsa2 keys. I also noticed that
the OK / Cancel dialog seems to have 'two' more tabs position, so instead of
going to OK when you press arrow key on Cancel, it goes 'nowhere' two times. If
you use the tab key it seems to work fine. I am currently using wine-1.0-rc1.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=16058
Summary: thumbnail view in total commander does not work
correctly
Product: Wine
Version: 0.9.46.
Platform: Other
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: d-84(a)bk.ru
Created an attachment (id=17284)
--> (http://bugs.winehq.org/attachment.cgi?id=17284)
thumbnail view
thumbnail view in total commander does not work correctly
os is ubuntu 7.10,
wine is 0.9.46-0ubuntu1
total commander is 7.02a and 7.01.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=16198
Summary: wine uses obsolete version of gecko. (Affects Google
Sketchup, Picasa, and zillions of other apps.)
Product: Wine
Version: 1.1.9
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: mshtml
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: dank(a)kegel.com
Wine has not updated its version of gecko in
a long time, despite the many security updates
for gecko that are available. Also, I think
Wine is using a version of gecko that has been
end-of-lifed:
http://www.pcworld.com/businesscenter/article/153015/mozilla_plans_for_fire…
We need to move to a newer version of gecko and
set up procedures for periodically updating
it as security fixes for it are released.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=12263
Summary: Sketchup Cannot initialize OpenGL - ChoosePixelFormat
fails
Product: Wine
Version: 0.9.58.
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: opengl
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: gioloi72(a)gmail.com
Created an attachment (id=11713)
--> (http://bugs.winehq.org/attachment.cgi?id=11713)
the console log of wine 0.9.58 launching sketchup
In Ubuntu 7.10 Gutsy I have updated wine from 0.9.46 (comes with gutsy) to
0.9.58.
In 0.9.46 I was able to run Google Sketchup 6 stable enough to work (only the
toolbars and menus don't refresh correctly).
After the update to 0.9.58 Sketchup no longer runs and I don't get any error
message.
Then in the registry key
HKEY_CURRENT_USER\Software\Google\SketchUp6\GLConfig\Display\HW_OK
changing value from 1 to 0 (It was set to 1 because Sketchup worked with
0.9.46)
cause Sketchup to show a popup window with error "Can't initialize OpenGL:
ChoosePixelFormat fails"
After uninstalling 0.9.58 and reinstalling 0.9.46 Sketchup works again...
Excuse my english
Attached console log
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=16511
Summary: Google Sketchup rejects some ruby scripts containing
CRLF
Product: Wine
Version: 1.1.10
Platform: Other
URL: http://sketchup.google.com
OS/Version: other
Status: NEW
Keywords: download
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: dank(a)kegel.com
Oddly, under Wine, the example ruby scripts from
http://sketchup.google.com/download/rubyscripts.html
are rejected by Sketchup unless you remove the CRs,
i.e. run them through dos2unix.
The one-liner "puts 'hello'" program is ok, though. The smallest
script I've created that exibits the problem is a hello, world
app that starts with a ten line comment. This script does not cause
the error when run in Sketchup on MS Windows.
I'll attach the script.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=12136
Summary: Sketchup6: crashes on x86-64 right after startup
Product: Wine
Version: CVS/GIT
Platform: PC-x86-64
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: apersaud(a)lbl.gov
Created an attachment (id=11532)
--> (http://bugs.winehq.org/attachment.cgi?id=11532)
console output from crash
Installed openSUSE wine snapshot 0.9.57.20080320 on x86-64.
Moved .wine to .wineold.
Run "winecfg" to create new clean .wine directory.
Downloaded installer for Sketchup (version 6).
Run installer (worked without problems).
Run Sketchup, wants to install Gecko for html rendering, installs fine.
Some openGL problem(?) comes up, which seems to be fixed once I change the
registry:
HKEY_CURRENT_USER/SOFTWARE/GOOGLE/SKETCHUP6/GLCONFIG/DISPLAY/HW_OK to 0x1 (from
0x0)
If I then restart Sketchup the main window pops up, together with two small
windows (help and some setup window). In the main window the menu bar is
displayed correctly, but the drawing window shows garbage (just white with some
odd lines drawn on it, no coordinate system, etc. which is normally displayed).
The setup window has a "continue" button, once I press it the application shuts
down and a google bug reporting window comes up.
Bug reproduces every time I run Sketchup.
I attached the console output of "wine c:/.../sketchup.exe"
HTH
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=15749
Summary: Google Sketchup 6 initial units dialog, can't choose
units
Product: Wine
Version: 1.1.7
Platform: Other
URL: http://sketchup.com
OS/Version: other
Status: NEW
Keywords: download
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: dank(a)kegel.com
When you first start Sketchup, it asks you what units to use.
Sadly, the pulldown list of units is blank, and you can't
click "OK" until you choose units.
Fortunately, you can dismiss that dialog by clicking the go-away X box in the
upper right.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=14044
Summary: Google SketchUp fails to run
Product: Wine
Version: 1.0.0
Platform: All
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: brett.jr.alton(a)gmail.com
After installing Google SketchUp 6.4.112
(http://filehippo.com/download_google_sketchup/) Google SketchUp failed to run.
I've attached the CLI log.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.
http://bugs.winehq.org/show_bug.cgi?id=11219
Summary: SketchUp crashes and cripples whole linux system
Product: Wine
Version: 0.9.53.
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P1
Component: kernel32
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: hotmejladress(a)hotmail.com
When trying to save in sketchup, the program crashes. After it crashes, wine
contionues to write very big .dmp files in the wine c:\windows\temp directory.
Theese files are in the order of 1-2 GB! It still autosaves so one can still
try to use sketchup, with occational crashes. But these big files add up,
suddenly u run out of harddrive, wine continues to write in the background
until the computer comes to a standstill. After resetting the computer with the
powerbutton, I had trouble even getting linux to start again, cause the disk
was so full. On the AppDB there is some guy who prevented theese crashes by
commenting out something in the kernel.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.