[Mono-dev] mmap problem

buhochileno at gmail.com buhochileno at gmail.com
Mon Oct 29 19:28:51 EDT 2007


Hi Jon:
I'm Mauricio, I don't know what is the problem with my 
mhenriquezs at terra.cl subscription to the mono-devel mail list, so I 
unsubscribe that mail account and create another...

So let me tell you about the test that you suggest about the mmap problem:
First the answer to your questions:

1. What are the permissions of `/pr.txt'?
All permission to owner, group and others

2. What platform is this on?  x86?  PPC?  Which operating system?
x86, Linux Fedora Core 5

3. What version of Mono?
1.2.5.1

4. Are you compiling Mono yourself?
Nop, I install mono with yum from the official repository.


About the gdb test, this is my result:

//I don't pass the /pr.txt file as parameter, internally I open allways 
this file
(gdb) b Mono_Posix_Syscall_mmap
Function "Mono_Posix_Syscall_mmap" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (Mono_Posix_Syscall_mmap) pending.
(gdb) r pr1mmap.exe
Starting program: /usr/bin/mono pr1mmap.exe
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0x4ff000
[Thread debugging using libthread_db enabled]
[New Thread 2311872 (LWP 26956)]
[New Thread 5647264 (LWP 26973)]
[New Thread 5200800 (LWP 26974)]
Breakpoint 2 at 0xd37cc3: file sys-mman.c, line 27.
Pending breakpoint "Mono_Posix_Syscall_mmap" resolved
fstat ok
length = 6
[Switching to Thread 2311872 (LWP 26956)]

Breakpoint 2, Mono_Posix_Syscall_mmap (start=0x6, length=6, prot=6, flags=6,
    fd=6, offset=0) at sys-mman.c:27
27              mph_return_val_if_size_t_overflow (length, MAP_FAILED);
(gdb) n
24      {
(gdb) n
27              mph_return_val_if_size_t_overflow (length, MAP_FAILED);
(gdb) n
28              mph_return_val_if_off_t_overflow (offset, MAP_FAILED);
(gdb) n
36      }
(gdb) n
0x002d51d8 in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function


The little diference that I can see from your result is the prot=6, 
flags=6, in your case is 1 and 2 values.
I don't know what can I do exaclty with this info, but any suggestion is 
apreciate.

In advance, thank you very much.

P.D: sorry for the troubles with the mail and I going to write you 
another mail about the sigc++ wrapper :-)

Mauricio




More information about the Mono-devel-list mailing list