[ros-bugs] [Bug 4571] bash -i crashes ReactOS

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Wed Jun 17 08:22:27 CEST 2009


http://www.reactos.org/bugzilla/show_bug.cgi?id=4571





--- Comment #14 from jeanmichel.123 <jeanmichel.123 at free.Fr>  2009-06-17 08:22:25 CET ---
(In reply to comment #12)
> What about &FileObject->RelatedFileObject ? It is checked first.


I addeded some debug information in the code.

Here after, the brut log, then source modification and then more after my
interpretation.

(ntoskrnl/io/iomgr/file.c:948) ObjectBody: 81871A18
(ntoskrnl/io/iomgr/file.c:2700) NtOpenFile: 7, 4021, 100020
(ntoskrnl/io/iomgr/file.c:1656) FileName:
(ntoskrnl/io/iomgr/file.c:200) ParseObject: 8110F018. RemainingName: <NULL>
WARNING:  SeAppendPrivileges at ntoskrnl/se/priv.c:296 is UNIMPLEMENTED!
(drivers/filesystems/fastfat/create.c:526) fat create: test PathNameU.Buffer
pointer 00000000  PathNameU.Length 0
(drivers/filesystems/fastfat/create.c:528) fat create: test
FileObject->RelatedFileObject pointer 8183FE88
Entered debugger on last-chance exception (Exception Code: 0xc0000005) (Page
Fault)
Memory at 0x03FE0000 could not be read: Page not present.



create.c:
526         DPRINT ("fat create: test PathNameU.Buffer pointer %p 
PathNameU.Length %d\n",
527                  PathNameU.Buffer, PathNameU.Length);
528         DPRINT ("fat create: test FileObject->RelatedFileObject pointer %p 
\n",
529                  FileObject->RelatedFileObject);
file.c:
2700     IOTRACE(IO_FILE_DEBUG, "NtOpenFile: %lx, %lx, %lx\n", ShareAccess,
OpenOptions, DesiredAccess);


This mean that exception in ReactOS code occurs in a NtOpenFile call, not due
to dereferencing FileObject->RelatedFileObject, but finename.

This NtOpenFile was called with a <NULL> filename, 
ShareAccess=7, 
        #define FILE_SHARE_READ                   0x00000001
        #define FILE_SHARE_WRITE                  0x00000002
        #define FILE_SHARE_DELETE                 0x00000004
OpenOptions=0x4021,
  #define FILE_OPEN_FOR_BACKUP_INTENT     0x00004000
  #define FILE_SYNCHRONOUS_IO_NONALERT    0x00000020
  #define FILE_DIRECTORY_FILE             0x00000001
DesiredAccess=0x100020
  #define SYNCHRONIZE                      (0x00100000L)
  0x20: Specific rights. Contains the access mask specific
         to the object type associated with the mask.
);


I am wondering f this call can be related to the one in 
http://www.google.fr/codesearch/p?hl=fr&sa=N&cd=1&ct=rc#XZEU371UQGA/cygwin/exceptions.cc&q=%22using%20default%20root%20and%20cygdrive%20prefix%22


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Ros-bugs mailing list