[Mono-devel-list] gdb on OSX broken in HEAD

grompf grompf at sublimeintervention.com
Sat Aug 14 17:50:14 EDT 2004


I noticed while trying to track down some bugs today; that gdbing mono 
is throwing an asserting (only when run in gdb) on OSX (possibly x86 as 
well):

(gdb) r
Starting program: /usr/bin/mono test.exe

** ERROR **: file handles.c: line 378 (_wapi_handle_new): assertion 
failed: (handle_idx >= _wapi_fd_offset_table_size)
aborting...

Program received signal SIGABRT, Aborted.
0x900429ac in kill ()
(gdb) b handles.c:378
Breakpoint 2 at 0x4a4ba8: file handles.c, line 378.
(gdb) r
Starting program: /usr/bin/mono test.exe
Temporarily disabling shared library breakpoints: 1 2
Re-enabling shared library breakpoints: 1 2

Breakpoint 2, _wapi_handle_new (type=WAPI_HANDLE_THREAD) at 
handles.c:378
378             g_assert (handle_idx >= _wapi_fd_offset_table_size);
(gdb) p handle_idx
$1 = 4102
(gdb) p _wapi_fd_offset_table_size
$2 = 10240

I tracked it down and this commit in the io-layer is what is causing 
this issue; I'm not sure why because not running in gdb and mono runs 
fine;

Dick, any thoughts?

Is this a bug?

-2004-08-11  Dick Porter  <dick at ximian.com>
-
-       * sockets.c:
-       * io.c: Returned handle values are the file descriptor the 
handle
-       encapsulates
-
-       * handles.c:
-       * handles-private.h:
-       * daemon.c: Reserve the range of handles that can have the same
-       values as file descriptors.  These won't be used, but the values
-       will be used as file, console, pipe or socket handles.  The fd 
to
-       handle mapping is done internally and is invisible to users.
-       Fixes bug 61828.

-kangaroo




More information about the Mono-devel-list mailing list