[MonoDevelop] URGENT!! MONO console app bug

Patrick Kaldawy pkaldawy at hotmail.com
Wed Nov 4 02:04:45 EST 2009


Hello,

I have developed a console application using C# (.NET 2.0) the application connects to a mySQL database and i'm using the mySQL connector Version 6.1.2.0. I compiled the class using the following command:

gmcs Program.cs -r:mysql.data.dll -r:System.Data.dll -r:System.XML.dll -r:ResumeBuilder.PdfGenerator.dll -r:itextsharp.dll -r:System.dll

After i ran the application on the linux server i got an error (copied below). I would appreciate it if anyone can help me figure out what's going on. Any ideas would be helpful. Thank you very much in advance.

NOTE: i have registered the MySQL connector DLL in the GAC.



__________________________________________CODE I USED______________________________________________________
    MySqlConnection sConn = new
          MySqlConnection("Server=localhost;Database=databaseName;uid=userName;Password=password;Pooling=false;port=3306");

    sConn.Open();

__________________________________________ERROR I'M GETTING_________________________________________________
[root at veechi01 rb]# mono VeechiResumeBuilder.exe 1

Retrieving Data from Veechi DB (UserID = 1)...
Stacktrace:

  at VeechiResumeBuilder.Program.Get_User_Data () <0xffffffff>
  at VeechiResumeBuilder.Program.Get_User_Data () <0x001dc>
  at VeechiResumeBuilder.Program.Main (string[]) <0x0007e>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono [0x816476e]
        mono [0x812da28]
        [0x912440]
        /lib/libc.so.6(memcpy+0x1c) [0x58b7bc]
        mono(mono_class_vtable+0x3e3) [0x80afd63]
        mono(mono_runtime_class_init+0x116) [0x80b1116]
        mono [0x8150673]
        mono [0x80786aa]
        [0x313032]
        [0x4e05f7]
        [0x4e0075]
        mono(mono_runtime_exec_main+0x62) [0x80b2972]
        mono(mono_runtime_run_main+0x1b9) [0x80b2c59]
        mono(mono_main+0xeab) [0x805876b]
        mono [0x80573b2]
        /lib/libc.so.6(__libc_start_main+0xdc) [0x530dec]
        mono [0x8057301]

Debug info from gdb:

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 1124496 (LWP 5088)]
[New Thread 13015952 (LWP 5090)]
[New Thread 5102480 (LWP 5089)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0x00912410 in __kernel_vsyscall ()
  3 Thread 5102480 (LWP 5089)  0x00912410 in __kernel_vsyscall ()
  2 Thread 13015952 (LWP 5090)  0x00912410 in __kernel_vsyscall ()
  1 Thread 1124496 (LWP 5088)  0x00912410 in __kernel_vsyscall ()

Thread 3 (Thread 5102480 (LWP 5089)):
#0  0x00912410 in __kernel_vsyscall ()
#1  0x0069b626 in nanosleep () from /lib/libpthread.so.0
#2  0x0810ce34 in mono_once ()
#3  0x0069446b in start_thread () from /lib/libpthread.so.0
#4  0x005ebdbe in clone () from /lib/libc.so.6

Thread 2 (Thread 13015952 (LWP 5090)):
#0  0x00912410 in __kernel_vsyscall ()
#1  0x00698266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0810d4bf in mono_once ()
#3  0x0810fe3f in mono_once ()
#4  0x0810febc in mono_once ()
#5  0x0810c534 in mono_once ()
#6  0x080d192a in mono_gc_is_finalizer_thread ()
#7  0x08091ec0 in mono_thread_get_abort_signal ()
#8  0x08103202 in mono_pthread_key_for_tls ()
#9  0x0811fc87 in GC_start_blocking ()
#10 0x0069446b in start_thread () from /lib/libpthread.so.0
#11 0x005ebdbe in clone () from /lib/libc.so.6

Thread 1 (Thread 1124496 (LWP 5088)):
#0  0x00912410 in __kernel_vsyscall ()
#1  0x005e4bc1 in select () from /lib/libc.so.6
#2  0x007808ee in g_spawn_sync () from /lib/libglib-2.0.so.0
#3  0x00780c9c in g_spawn_command_line_sync () from /lib/libglib-2.0.so.0
#4  0x08164821 in mono_print_thread_dump ()
#5  0x0812da28 in mono_jit_thread_attach ()
#6  <signal handler called>
#7  0x0058b7bc in memcpy () from /lib/libc.so.6
#8  0x080afd63 in mono_class_vtable ()
#9  0x080b1116 in mono_runtime_class_init ()
#10 0x08150673 in mono_pmip ()
#11 0x080786aa in mono_main ()
#12 0x00313032 in ?? ()
#13 0xbfdf7474 in ?? ()
#14 0x004e213c in ?? ()
#15 0x09486094 in ?? ()
#16 0x00000000 in ?? ()
#0  0x00912410 in __kernel_vsyscall ()


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted

 		 	   		  
_________________________________________________________________
Find the right PC with Windows 7 and Windows Live. 
http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20091103/0aa79682/attachment-0001.html 


More information about the Monodevelop-list mailing list