Re: [Mono-dev] [PATCH] SecureString implementation

2005-12-09 Thread Sebastien Pouliot
Hello, On Fri, 2005-12-09 at 18:13 -0500, Ben Maurer wrote: > I think I am confused about the design of ProtectedMemory, can you > correct the errors I make in the following reply? Mostly this because I > am curious about the API now ;-). Sure. Always happy to talk about security :) > On Fri, 20

Re: [Mono-dev] uClibc

2005-12-09 Thread Zoltan Varga
Hi, This might be a race condition in our startup code, i.e. the runtime is not expecting its signal handler to be called before it is fully started up. Zoltan On 12/9/05, Ben Timby <[EMAIL PROTECTED]> wrote: > OK, some more i

Re: [Mono-dev] uClibc

2005-12-09 Thread Rafael Teixeira
Does uClibc support "thread local storage" (tls)? tls_appdomain is stored in the tls, and shouldn't be 0x0... On 12/9/05, Ben Timby <[EMAIL PROTECTED]> wrote: > OK, some more info. Digging in with gdb, here is what is happening: > > 1. _wapi_collection_int() is called, which starts a new thread wi

Re: [Mono-dev] [PATCH] SecureString implementation

2005-12-09 Thread Ben Maurer
I think I am confused about the design of ProtectedMemory, can you correct the errors I make in the following reply? Mostly this because I am curious about the API now ;-). On Fri, 2005-12-09 at 17:39 -0500, Sebastien Pouliot wrote: > Hello Ben, > > On Fri, 2005-12-09 at 16:28 -0500, Ben Maurer w

Re: [Mono-dev] [PATCH] SecureString implementation

2005-12-09 Thread Sebastien Pouliot
Hello Ben, On Fri, 2005-12-09 at 16:28 -0500, Ben Maurer wrote: > Why does this need to be implemented in unmanaged code? The win32 apis > could be pinvoked, and we already have an AES implementation in managed > code. Oh, believe me I have a *much* higher preference to managed code (and I did t

[Mono-dev] segmentation fault error always invokes exception?

2005-12-09 Thread Okehee Goh
Hello, I was doing some experiment by modifying mono source. What bothering me is that whenvere there is segmentation fault error (it comes my modified mono part rather than  from managed application) , the generated core file examined through gdb doesn't point out the place where the error o

Re: [Mono-dev] uClibc

2005-12-09 Thread Ben Timby
OK, some more info. Digging in with gdb, here is what is happening: 1. _wapi_collection_int() is called, which starts a new thread with pthread_create() 2. pthread_create() calls clone, clone eventually generates sigsuspend. 3. the sigusr1_signal_handler() function in mini.c is called. 4. Th

Re: [Mono-dev] [PATCH] SecureString implementation

2005-12-09 Thread Ben Maurer
On Fri, 2005-12-09 at 15:14 -0500, Sebastien Pouliot wrote: > Hello, > > This patch almost complete the SecureString implementation. The > missing pieces are: > - the new Marshal.SecureStringTo... methods; and > - that, AFAIK, the runtime doesn't support CriticalFinalizerObject > > SecureString i

Re: [Mono-dev] uClibc

2005-12-09 Thread Ben Timby
Sorry to reply to my own email, but I have since produced a gdb backtrace. It follows: -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distr

[Mono-dev] Status Report

2005-12-09 Thread Sebastien Pouliot
This week - Moved to mscorlib.dll bug fixing. Fixed * bug #76876 - base64 didn't consider the option parameter; * bug #76750 - SortedList doesn't throw InvalidCastException; * bug #71291 - AppDomainSetup (actually it was path issues); * bug #75950 - Assembly.CodeBase is always esca

[Mono-dev] [PATCH] SecureString implementation

2005-12-09 Thread Sebastien Pouliot
Hello, This patch almost complete the SecureString implementation. The missing pieces are: - the new Marshal.SecureStringTo... methods; and - that, AFAIK, the runtime doesn't support CriticalFinalizerObject SecureString is implemented on top of ProtectedMemory. On Windows Data Protection API (DPA

[Mono-dev] NUnit Test Fails on Mono

2005-12-09 Thread Charlie Poole
Hi all, Here's a test that fails on my mono build of NUnit... I'm running Mono 1.1.10 - the windows install. [Test] [ExpectedException(typeof(AssertionException), "expected same" )] public void SameFails() { StringBuilder builder = new StringBuilder(); builder.Append("S1");

[Mono-dev] uClibc

2005-12-09 Thread Ben Timby
I am having a bear of a time trying to link mono against uClibc. Can anyone lend some insight into how to do this? So far, These are the steps I have taken. I created a patch (included below) to remove execinfo.h from libgc/os_dep.c by undefining GC_HAVE_BUILTIN_BACKTRACE in libgc/include/gc.h.

Re: [Mono-dev] Gendarme/bugfinder merge

2005-12-09 Thread Sebastien Pouliot
Hello Aaron, On Thu, 2005-12-08 at 11:40 -0800, Aaron Tomb wrote: > Hi, > > I've started to integrate my bug finding code into Gendarme (as > discussed briefly off-list), and I have a few questions about the best > names for the new assemblies. > > I have three different "rules" I plan to integr

[Mono-dev] good IDE tool to work with MONO source codes in Linux?

2005-12-09 Thread Okehee Goh
Hello, My question is quite off from this list. I'm sorry about that. When work with Mono's windows version using Visual studio in windows, the working environment was quite good. After switching to Linux version for some experiment , it becomes quite difficult because only tool i use is vi edit

[Mono-dev] HttpServerUtility.Transfer incompatible behaviour on Mono & MS .NET

2005-12-09 Thread [EMAIL PROTECTED]
Hi, folks. I am writing some Web Framework and I need to transfer via HttpServerUtility custom HttpHandlers. It's possible with Mono, but it's impossible with MS implementation of ASP.NET (HttpException throws). I think MS HttpServerUtility is buggy instead of Mono. If I am right, please vote

Re: [Mono-dev] Re: calling c# from c

2005-12-09 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anna Ellis wrote: > Ok my glib2-2.0 is in usr/lib/libglib2.0.so.0.2003 > > Mono is installed in /opt/mono-1.1.10 > > Apparently this is not found in the pkg-config search path. > > It is suggested that I add this path to the PKG_CONFIG_PATH environm

RE: [Mono-dev] Re: calling c# from c

2005-12-09 Thread Anna Ellis
Ok my glib2-2.0 is in usr/lib/libglib2.0.so.0.2003 Mono is installed in /opt/mono-1.1.10 Apparently this is not found in the pkg-config search path. It is suggested that I add this path to the PKG_CONFIG_PATH environment variable. Should I do this or move the installation of mono??? Anna

Re: [Mono-dev] Re: calling c# from c

2005-12-09 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anna Ellis wrote: > Hi, > > Hi Anna. > > > I have tried to write a separate piece following the "Initializing the > Mono runtime" BUT gcc sample.c 'pkg-config --cflags --libs mono' > produces 'no such file or directory' > Hmmm, I tired here a

[Mono-dev] Re: calling c# from c

2005-12-09 Thread Anna Ellis
Hi,   I'm trying to do the same (and I am very new to Linux and Mono),   I have followed the example but am having problems trying to get it to find the right directory.   I have written a small amount of code in the opt/mono-1.1.10/bin which compiles with gcc fine.   I have tried t