[Bug 7567] New: Crash in NtSetSecurityObject

Wine Bugs wine-bugs at winehq.org
Tue Feb 27 01:15:06 CST 2007


http://bugs.winehq.org/show_bug.cgi?id=7567

           Summary: Crash in NtSetSecurityObject
           Product: Wine
           Version: CVS
          Platform: Other
               URL: http://www.amlamed.com/docsoft.html
        OS/Version: other
            Status: NEW
          Keywords: download
          Severity: normal
          Priority: P2
         Component: wine-kernel
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: dank at kegel.com


A developer requested Linux support for Powerbuilder back in May 2006:
http://groups.google.com/group/sybase.public.powerbuilder.general/msg/170dfdbac697041d
I contacted him and asked if he was still interested.
He said yes, and pointed me to his demo application,
http://www.amlamed.com/demo9.zip (linked to from
http://www.amlamed.com/docsoft.html).

By trial and error, I arrived at a procedure for installing 
the app and its prerequisites; it's at 
  http://kegel.com/wine/meddemo.sh
I use native ODBC rather than UnixODBC because that
would be more convenient if it worked, and I want to feel the pain.
(And because I couldn't figure out how to set the data source for UnixODBC.)

Running this script with wine-0.9.31 produces the error

wine: Unhandled page fault on read access to 0x00000002 at address 0x7bc50b7c
Backtrace:
=>1 0x7bc50b7c NtSetSecurityObject+0x281() in ntdll (0x0033dacc)
  2 0x7ee0df79 SetKernelObjectSecurity+0x2c() in advapi32 (0x0033daec)
  3 0x04c4750b in dbodbc8 (+0x4750b) (0x00000000)

The crash seems to be because of unchecked return values
introduced by http://www.winehq.org/pipermail/wine-patches/2007-February/035567.html

Checking the results of the functions in question seems to help; see
http://kegel.com/wine/sec.patch for a quick try at a fix.

Applying that patch lets the Sybase database connect dialog
come up (yay).


(Note: even after that patch, I still see a crash:

fixme:sync:GetQueuedCompletionStatus
((nil),0x7e210958,0x7e210964,0x7e210950,93), stub!
wine: Unhandled page fault on read access to 0x00001000 at address 0x656bc89a
Backtrace:
=>1 0x656bc89a in dbserv8 (+0x15c89a) (0x00000000)
0x656bc89a: call        *0x0(%eax)

but that's a different bug.)

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list