Page 1 of 1

Crash under mono, can't reproduce

Posted: Wed 25 Apr 2012 23:25
by mamcx
I',m getting this crash when creating a sqlite db under mono/osx lion (both last versions as today).

I get this stack trace:

Code: Select all

Native stacktrace:

	0   mono                                0x0009fdbf mono_handle_native_sigsegv + 287
	1   mono                                0x00004f6e mono_sigsegv_signal_handler + 334
	2   libsystem_c.dylib                   0x9bdb959b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   libsqlite3.dylib                    0x9a27f256 sqlite3ValueFromExpr + 134
	5   libsqlite3.dylib                    0x9a2c4ef2 sqlite3Update + 9778
	6   libsqlite3.dylib                    0x9a2cc852 codeRowTrigger + 1842
	7   libsqlite3.dylib                    0x9a2c44c2 sqlite3Update + 7170
	8   libsqlite3.dylib                    0x9a2cc852 codeRowTrigger + 1842
	9   libsqlite3.dylib                    0x9a2cd0bd sqlite3CodeRowTriggerDirect + 397
	10  libsqlite3.dylib                    0x9a2a6292 sqlite3Insert + 9410
	11  libsqlite3.dylib                    0x9a246752 yy_reduce + 14802
	12  libsqlite3.dylib                    0x9a2429a6 sqlite3Parser + 230
	13  libsqlite3.dylib                    0x9a241530 sqlite3RunParser + 416
	14  libsqlite3.dylib                    0x9a240d06 sqlite3Prepare + 870
	15  libsqlite3.dylib                    0x9a2408c3 sqlite3LockAndPrepare + 307
	16  ???                                 0x04aaa1df 0x0 + 78291423
	17  ???                                 0x04aa9ccc 0x0 + 78290124
	18  ???                                 0x04aa9a94 0x0 + 78289556
	19  ???                                 0x04aa95fc 0x0 + 78288380
	20  ???                                 0x04ad4164 0x0 + 78463332
	21  ???                                 0x04ad3fd4 0x0 + 78462932
	22  ???                                 0x04ad3328 0x0 + 78459688
	23  ???                                 0x047bd773 0x0 + 75224947
	24  ???                                 0x04793d7f 0x0 + 75054463
	25  ???                                 0x04793b74 0x0 + 75053940
	26  ???                                 0x04793b2a 0x0 + 75053866
	27  ???                                 0x0491c6b4 0x0 + 76662452
	28  ???                                 0x04ad8039 0x0 + 78479417
	29  ???                                 0x04a1bd78 0x0 + 77708664
	30  ???                                 0x04a1bbf4 0x0 + 77708276
	31  ???                                 0x04a1aedc 0x0 + 77704924
	32  ???                                 0x04a1b1ee 0x0 + 77705710
	33  mono                                0x0000ecf4 mono_jit_runtime_invoke + 164
	34  mono                                0x00184354 mono_runtime_invoke + 68
	35  mono                                0x00187ef9 mono_runtime_invoke_array + 1065
	36  mono                                0x00130e8f ves_icall_InternalInvoke + 223
	37  ???                                 0x03c5bbfd 0x0 + 63290365
	38  ???                                 0x03c5b80c 0x0 + 63289356
	39  ???                                 0x02e67bd2 0x0 + 48659410
	40  ???                                 0x041510b0 0x0 + 68489392
	41  ???                                 0x0414efe8 0x0 + 68481000
	42  ???                                 0x0414ec00 0x0 + 68480000
	43  ???                                 0x04146d64 0x0 + 68447588
	44  ???                                 0x03c74629 0x0 + 63391273
	45  ???                                 0x03c7455c 0x0 + 63391068
	46  ???                                 0x03c6e97f 0x0 + 63367551
	47  ???                                 0x03c6e61b 0x0 + 63366683
	48  ???                                 0x03c6e4d4 0x0 + 63366356
	49  ???                                 0x02f4deae 0x0 + 49602222
	50  ???                                 0x02e409c8 0x0 + 48499144
	51  mono                                0x0000ecf4 mono_jit_runtime_invoke + 164
	52  mono                                0x00184354 mono_runtime_invoke + 68
	53  mono                                0x0018462f mono_runtime_delegate_invoke + 63
	54  mono                                0x001bd96b start_wrapper + 475
	55  mono                                0x001efa8a thread_start_routine + 154
	56  mono                                0x002171d4 GC_start_routine + 100
	57  libsystem_c.dylib                   0x9bd61ed9 _pthread_start + 335
	58  libsystem_c.dylib                   0x9bd656de thread_start + 34

Debug info from gdb:

Attaching to process 8810.
Reading symbols for shared libraries . done
Reading symbols for shared libraries warning: Trying to remove a section from the ordered section list that did not exist at 0x2ea000.
..................................... done
0x90ba983e in __psynch_cvwait ()
  10                                 0x90ba9fda in __wait4 ()
  9                                 0x90ba9ab6 in recvfrom$NOCANCEL$UNIX2003 ()
  8                                 0x90ba9bb2 in __semwait_signal ()
  7                                 0x90ba8e12 in accept$UNIX2003 ()
  6                                 0x90ba983e in __psynch_cvwait ()
  5 "com.apple.libdispatch-manager" 0x90baa90a in kevent ()
  4                                 0x90ba9a9a in recvfrom$UNIX2003 ()
  3                                 0x90ba7c5e in semaphore_wait_trap ()
  2                                 0x90ba7c22 in mach_msg_trap ()
* 1 "com.apple.main-thread"         0x90ba983e in __psynch_cvwait ()

Thread 10 (process 8810):
#0  0x90ba9fda in __wait4 ()
#1  0x9bd164ec in waitpid$UNIX2003 ()
#2  0x0009fe9b in mono_handle_native_sigsegv (signal=11, ctx=0xb0407060)
    at mini-exceptions.c:2192
#3  0x00004f6e in mono_sigsegv_signal_handler (_dummy=11, info=0xb0407020, 
   context=0xb0407060) at mini.c:5917
#4  
#5  0x9a23810b in sqlite3DbMallocZero ()
#6  0x9a27f256 in sqlite3ValueFromExpr ()
#7  0x9a2c4ef2 in sqlite3Update ()
#8  0x9a2cc852 in codeRowTrigger ()
#9  0x9a2c44c2 in sqlite3Update ()
#10 0x9a2cc852 in codeRowTrigger ()
#11 0x9a2cd0bd in sqlite3CodeRowTriggerDirect ()
#12 0x9a2a6292 in sqlite3Insert ()
#13 0x9a246752 in yy_reduce ()
#14 0x9a2429a6 in sqlite3Parser ()
#15 0x9a241530 in sqlite3RunParser ()
#16 0x9a240d06 in sqlite3Prepare ()
#17 0x9a2408c3 in sqlite3LockAndPrepare ()
#18 0x04aaa1df in ?? ()
#19 0x04aa9ccc in ?? ()
#20 0x04aa9a94 in ?? ()
#21 0x04aa95fc in ?? ()
#22 0x04ad4164 in ?? ()
#23 0x04ad3fd4 in ?? ()
#24 0x04ad3328 in ?? ()
#25 0x047bd773 in ?? ()
#26 0x04793d7f in ?? ()
#27 0x04793b74 in ?? ()
#28 0x04793b2a in ?? ()
#29 0x0491c6b4 in ?? ()
#30 0x04ad8039 in ?? ()
#31 0x04a1bd78 in ?? ()
#32 0x04a1bbf4 in ?? ()
#33 0x04a1aedc in ?? ()
#34 0x04a1b1ee in ?? ()
#35 0x0000ecf4 in mono_jit_runtime_invoke (method=0xb814ec, obj=0x0, 
    params=0xb04087b0, exc=0x0) at mini.c:5791
#36 0x00184354 in mono_runtime_invoke (method=0xb814ec, obj=0x0, 
    params=0xb04087b0, exc=0x0) at object.c:2755
#37 0x00187ef9 in mono_runtime_invoke_array (method=0xb814ec, obj=0x0, 
    params=0x525ce00, exc=0x0) at object.c:4142
#38 0x00130e8f in ves_icall_InternalInvoke (method=0x3b38f78, this=0x0, 
    params=0x525ce00, exc=0xb0408954) at icall.c:2866
#39 0x03c5bbfd in ?? ()
#40 0x03c5b80c in ?? ()
#41 0x02e67bd2 in ?? ()
#42 0x041510b0 in ?? ()
#43 0x0414efe8 in ?? ()
#44 0x0414ec00 in ?? ()
#45 0x04146d64 in ?? ()
#46 0x03c74629 in ?? ()
#47 0x03c7455c in ?? ()
#48 0x03c6e97f in ?? ()
#49 0x03c6e61b in ?? ()
#50 0x03c6e4d4 in ?? ()
#51 0x02f4deae in ?? ()
#52 0x02e409c8 in ?? ()
#53 0x0000ecf4 in mono_jit_runtime_invoke (method=0x21fc3c4, obj=0x4d27f18, 
    params=0xb0408ee8, exc=0x0) at mini.c:5791
#54 0x00184354 in mono_runtime_invoke (method=0x21fc3c4, obj=0x4d27f18, 
    params=0xb0408ee8, exc=0x0) at object.c:2755
#55 0x0018462f in mono_runtime_delegate_invoke (delegate=0x4d27f18, 
    params=0xb0408ee8, exc=0x0) at object.c:3420
#56 0x001bd96b in start_wrapper (data=0x1393c80) at threads.c:790
#57 0x001efa8a in thread_start_routine (args=0x19a8af4) at wthreads.c:287
#58 0x002171d4 in GC_start_routine (arg=0x2e35e40) at pthread_support.c:1468
#59 0x9bd61ed9 in _pthread_start ()
#60 0x9bd656de in thread_start ()

Thread 9 (process 8810):
#0  0x90ba9ab6 in recvfrom$NOCANCEL$UNIX2003 ()
#1  0x9bd25a86 in recv$NOCANCEL$UNIX2003 ()
#2  0x940517fa in read_all ()
#3  0x94053d35 in DNSServiceProcessResult ()
#4  0x03c6c7a7 in ?? ()
#5  0x03c6c71c in ?? ()
#6  0x03c6c4b0 in ?? ()
#7  0x03c6be9c in ?? ()
#8  0x00797d36 in ?? ()
#9  0x0000ecf4 in mono_jit_runtime_invoke (method=0x1a51df4, obj=0x3c16f88, 
    params=0xb0732e9c, exc=0xb0732e90) at mini.c:5791
#10 0x00184354 in mono_runtime_invoke (method=0x1a51df4, obj=0x3c16f88, 
    params=0xb0732e9c, exc=0xb0732e90) at object.c:2755
#11 0x001b7fe5 in mono_async_invoke [inlined] () at :649
#12 0x001b7fe5 in async_invoke_thread (data=0x7afd70) at threadpool.c:1433
#13 0x001bd8ec in start_wrapper (data=0x16dcc40) at threads.c:784
#14 0x001efa8a in thread_start_routine (args=0x19a2c80) at wthreads.c:287
#15 0x002171d4 in GC_start_routine (arg=0x2e35d20) at pthread_support.c:1468
#16 0x9bd61ed9 in _pthread_start ()
#17 0x9bd656de in thread_start ()

Thread 8 (process 8810):
#0  0x90ba9bb2 in __semwait_signal ()
#1  0x9bd167b9 in nanosleep$UNIX2003 ()
#2  0x001ee3eb in SleepEx (
    ms=, alertable=1)
    at wthreads.c:1027
#3  0x001b51ea in monitor_thread (unused=0x0) at threadpool.c:777
#4  0x001bd8ec in start_wrapper (data=0x16da840) at threads.c:784
#5  0x001efa8a in thread_start_routine (args=0x19a2c04) at wthreads.c:287
#6  0x002171d4 in GC_start_routine (arg=0x2e35d20) at pthread_support.c:1468
#7  0x9bd61ed9 in _pthread_start ()
#8  0x9bd656de in thread_start ()

Thread 7 (process 8810):
#0  0x90ba8e12 in accept$UNIX2003 ()
#1  0x001e8faf in _wapi_accept (fd=6, addr=0x0, addrlen=0x0) at sockets.c:225
#2  0x001b399b in ves_icall_System_Net_Sockets_Socket_Accept_internal (sock=6,
    error=0xb060ece4, blocking=1) at socket-io.c:883
#3  0x03c6752b in ?? ()
#4  0x03c67204 in ?? ()
#5  0x03c65d90 in ?? ()
#6  0x02f4deae in ?? ()
#7  0x02e409c8 in ?? ()
#8  0x0000ecf4 in mono_jit_runtime_invoke (method=0x21fc3c4, obj=0x2e7c7e0, 
    params=0xb060eee8, exc=0x0) at mini.c:5791
#9  0x00184354 in mono_runtime_invoke (method=0x21fc3c4, obj=0x2e7c7e0, 
    params=0xb060eee8, exc=0x0) at object.c:2755
#10 0x0018462f in mono_runtime_delegate_invoke (delegate=0x2e7c7e0, 
    params=0xb060eee8, exc=0x0) at object.c:3420
#11 0x001bd96b in start_wrapper (data=0x16d8320) at threads.c:790
#12 0x001efa8a in thread_start_routine (args=0x19a2a90) at wthreads.c:287
#13 0x002171d4 in GC_start_routine (arg=0x2e35d20) at pthread_support.c:1468
#14 0x9bd61ed9 in _pthread_start ()
#15 0x9bd656de in thread_start ()

Thread 6 (process 8810):
#0  0x90ba983e in __psynch_cvwait ()
#1  0x9bd65e21 in _pthread_cond_wait ()
#2  0x9bd163e0 in pthread_cond_timedwait$UNIX2003 ()
#3  0x001da3d1 in _wapi_handle_timedwait_signal_handle (handle=0x10b, 
    timeout=0xb050cbb8, alertable=1, poll=0) at handles.c:1653
#4  0x001ecb7f in WaitForSingleObjectEx (handle=0x10b, timeout=59995, 
    alertable=1) at wait.c:205
#5  0x001bbdfe in ves_icall_System_Threading_WaitHandle_WaitOne_internal (
    this=0x2f154e0, handle=0x10b, ms=59995, exitContext=0) at threads.c:1665
#6  0x02f51a06 in ?? ()
#7  0x02f514c4 in ?? ()
#8  0x02f511f3 in ?? ()
#9  0x02f4f1c4 in ?? ()
#10 0x02f4deae in ?? ()
#11 0x02e409c8 in ?? ()
#12 0x0000ecf4 in mono_jit_runtime_invoke (method=0x21fc3c4, obj=0x2e7cf88, 
    params=0xb050cee8, exc=0x0) at mini.c:5791
#13 0x00184354 in mono_runtime_invoke (method=0x21fc3c4, obj=0x2e7cf88, 
    params=0xb050cee8, exc=0x0) at object.c:2755
#14 0x0018462f in mono_runtime_delegate_invoke (delegate=0x2e7cf88, 
    params=0xb050cee8, exc=0x0) at object.c:3420
#15 0x001bd96b in start_wrapper (data=0x1696e20) at threads.c:790
#16 0x001efa8a in thread_start_routine (args=0x19a28a0) at wthreads.c:287
#17 0x002171d4 in GC_start_routine (arg=0x2e35ea0) at pthread_support.c:1468
#18 0x9bd61ed9 in _pthread_start ()
#19 0x9bd656de in thread_start ()

Thread 5 (process 8810):
#0  0x90baa90a in kevent ()
#1  0x92bfac58 in _dispatch_mgr_invoke ()
#2  0x92bf96a7 in _dispatch_mgr_thread ()

Thread 4 (process 8810):
#0  0x90ba9a9a in recvfrom$UNIX2003 ()
#1  0x9bd164a2 in recv$UNIX2003 ()
#2  0x000c60d4 in recv_length (fd=3, buf=0xb0284ee1, len=11, flags=0)
    at debugger-agent.c:997
#3  0x000c7b4d in debugger_thread (arg=0x0) at debugger-agent.c:7156
#4  0x001efa8a in thread_start_routine (args=0x19a272c) at wthreads.c:287
#5  0x002171d4 in GC_start_routine (arg=0x504f60) at pthread_support.c:1468
#6  0x9bd61ed9 in _pthread_start ()
#7  0x9bd656de in thread_start ()

Thread 3 (process 8810):
#0  0x90ba7c5e in semaphore_wait_trap ()
#1  0x001f7eba in mono_sem_wait (sem=0x2c7df0, alertable=1)
    at mono-semaphore.c:115
#2  0x0012a142 in finalizer_thread (unused=0x0) at gc.c:1066
#3  0x001bd8ec in start_wrapper (data=0x1341660) at threads.c:784
#4  0x001efa8a in thread_start_routine (args=0x19a2634) at wthreads.c:287
#5  0x002171d4 in GC_start_routine (arg=0x504f60) at pthread_support.c:1468
#6  0x9bd61ed9 in _pthread_start ()
#7  0x9bd656de in thread_start ()

Thread 2 (process 8810):
#0  0x90ba7c22 in mach_msg_trap ()
#1  0x90ba71f6 in mach_msg ()
#2  0x000ee0da in mach_exception_thread (arg=0x0) at mini-darwin.c:129
#3  0x002171d4 in GC_start_routine (arg=0x504f60) at pthread_support.c:1468
#4  0x9bd61ed9 in _pthread_start ()
#5  0x9bd656de in thread_start ()

Thread 1 (process 8810):
#0  0x90ba983e in __psynch_cvwait ()
#1  0x9bd65e21 in _pthread_cond_wait ()
    timeout=0x0, alertable=1, poll=0) at handles.c:1655
#4  0x001da592 in _wapi_handle_wait_signal (poll=0) at handles.c:1584
#5  0x001ed281 in WaitForMultipleObjectsEx (numobjects=2, handles=0xbffff53c, 
    waitall=0, timeout=4294967295, alertable=1) at wait.c:722
#6  0x001bf587 in wait_for_tids_or_state_change [inlined] () at :2802
#7  0x001bf587 in mono_thread_manage () at threads.c:3017
#8  0x00074652 in mono_main (argc=4, argv=0xbffffa8c) at driver.c:1856
#9  0x00001fd6 in start ()

=================================================================
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.
=================================================================

[1]    8810 abort      "/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/mono" --debug  

read: -p: no coprocess
P.D I reported http://www.devart.com/forums/viewtopic.php?t=23601 so I'm using the same script I send to you

Re: Crash under mono, can't reproduce

Posted: Fri 27 Apr 2012 15:12
by Shalex
We cannot reproduce the issue. For reproducing the issue we used the code, you had provided on stackoverflow in the question "Mono sqlite crash on OSX, but can't reproduce".

We have analyzed the stack trace provided by you. In our opinion, the error occurs in the engine of sqlite3.dll and dotConnect for SQLite does not participate in this error. But anyway, please send us a test project for reproducing the issue, we will investigate it.

Re: Crash under mono, can't reproduce

Posted: Wed 02 May 2012 20:15
by mamcx
I forget to add this to the stacktrace (was before the one I posted)

Code: Select all

  at (wrapper managed-to-native) Devart.Data.SQLite.bc.sqlite3_prepare_v2 (intptr,intptr,int,intptr&,intptr&) <IL 0x0002a, 0xffffffff>
  at Devart.Data.SQLite.a3.a (string,uint,string&) <IL 0x00047, 0x0017b>
  at Devart.Data.SQLite.bs.k () <IL 0x0001a, 0x0006b>
  at Devart.Data.SQLite.s.k () <IL 0x0002b, 0x000e3>
  at Devart.Data.SQLite.SQLiteDataReader.c () <IL 0x00065, 0x00153>
  at (wrapper remoting-invoke-with-check) Devart.Data.SQLite.SQLiteDataReader.c () <IL 0x00038, 0xffffffff>
  at Devart.Data.SQLite.SQLiteCommand.InternalExecute (System.Data.CommandBehavior,System.IDisposable,int,int) <IL 0x0009e, 0x00347>
  at Devart.Common.DbCommandBase.InternalExecute (System.Data.CommandBehavior,System.IDisposable,int,int,bool) <IL 0x00006, 0x00042>
  at Devart.Common.DbCommandBase.ExecuteDbDataReader (System.Data.CommandBehavior,bool) <IL 0x00055, 0x001e6>
  at Devart.Common.DbCommandBase.ExecuteDbDataReader (System.Data.CommandBehavior) <IL 0x00003, 0x0002b>
  at System.Data.Common.DbCommand.ExecuteReader () [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.Data/System.Data.Common/DbCommand.cs:123
  at Devart.Common.DbCommandBase.ExecuteNonQuery () <IL 0x00001, 0x00033>
  at BestSellerCloud.DbApi.fullsync (Devart.Data.SQLite.SQLiteConnection) [0x001d9] in /Users/mamcx/Proyectos/BestSeller/Cloud/src/DbApi.cs:227
  at BestSellerCloud.DbApi.newClientDatabase () [0x00039] in /Users/mamcx/Proyectos/BestSeller/Cloud/src/DbApi.cs:250
  at BestSellerCloud.Data.new_clientdb (int) [0x00000] in /Users/mamcx/Proyectos/BestSeller/Cloud/Data_Impl.cs:169
  at BestSellerCloud.Data_Invoker.Invoke_new_clientdb (RemObjects.SDK.IROService,RemObjects.SDK.IMessage,RemObjects.SDK.Server.IServerChannelInfo,RemObjects.SDK.Server.ResponseOptions&) [0x00013] in /Users/mamcx/Proyectos/BestSeller/Cloud/BestSeller_Invk.cs:38
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object_object_object_ResponseOptions& (object,intptr,intptr,intptr) <IL 0x0006c, 0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <IL 0x00030, 0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x000d5] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Reflection/MonoMethod.cs:226
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Reflection/MethodBase.cs:96
  at RemObjects.SDK.Server.Invoker.InvokeMethod (RemObjects.SDK.IMessage,RemObjects.SDK.Server.IServerChannelInfo,RemObjects.SDK.Server.IClassFactory) <IL 0x000cb, 0x006f7>
  at RemObjects.SDK.Server.Invoker.InvokeService (RemObjects.SDK.IMessage,RemObjects.SDK.Server.IServerChannelInfo) <IL 0x0007a, 0x003bf>
  at RemObjects.SDK.Server.ServerChannel.Dispatch (RemObjects.SDK.IMessage,RemObjects.SDK.Server.IServerChannelInfo) <IL 0x00002, 0x00027>
  at RemObjects.SDK.Server.IpHttpServerChannel.HandleHttpRequest (object,RemObjects.InternetPack.Http.OnHttpRequestArgs) <IL 0x00628, 0x01d63>
  at RemObjects.InternetPack.Http.HttpServer.TriggerOnHttpRequest (RemObjects.InternetPack.Connection,RemObjects.InternetPack.Http.HttpServerRequest,RemObjects.InternetPack.Http.HttpServerResponse) <IL 0x00019, 0x000a8>
  at RemObjects.InternetPack.Http.HttpServer.HandleHttpRequest (RemObjects.InternetPack.Connection,RemObjects.InternetPack.Http.HttpServerRequest,RemObjects.InternetPack.Http.HttpServerResponse) <IL 0x00004, 0x00033>
  at RemObjects.InternetPack.Http.HttpWorker.ProcessRequests () <IL 0x0008a, 0x002be>
  at RemObjects.InternetPack.Http.HttpWorker.DoWork () <IL 0x00001, 0x0002a>
  at RemObjects.InternetPack.Worker.Work () <IL 0x00001, 0x00023>
  at System.Threading.Thread.StartInternal () [0x00016] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Threading/Thread.cs:703
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>

Re: Crash under mono, can't reproduce

Posted: Wed 02 May 2012 23:03
by mamcx
The error happend with the code on stackoverflow and this data:

Code: Select all

<?xml version="1.0"?>
<RECORDS>
<RECORD>
	<idglobal>7babda8c-94a9-11e1-8b0b-ef26fc8705a1</idglobal>
	<version>2</version>
	<changedate>00/00/0000 00:00:00+00</changedate>
	<isdeleted>f</isdeleted>
	<id>78</id>
	<ref>103106</ref>
	<name>AMB.ELECTRICO BRIZZE VAINILLA  12X20M/L</name>
	<category>ABARROTES</category>
	<baseprice>11672.326</baseprice>
	<priceunit1>11571.7025</priceunit1>
	<priceunit2>0</priceunit2>
	<priceunit3>0</priceunit3>
	<maxdiscount>1</maxdiscount>
	<tax1>16</tax1>
	<tax2>0</tax2>
	<stock>1</stock>
	<numsales>0</numsales>
	<havestock>t</havestock>
	<isfavorite>f</isfavorite>
	<info>UNIDAD</info>
</RECORD>
</RECORDS>

Re: Crash under mono, can't reproduce

Posted: Wed 02 May 2012 23:26
by mamcx
Well, look like was a error in the parameters setup. From some weird reason, this:

Code: Select all

foreach (DataRow row in source.Rows) {
	//Console.WriteLine(row["name"]);
	
	foreach (DataRow field in dest.Rows) {
        ColumnName = (string)field["ColumnName"];
        if (source.Columns.Contains(ColumnName))
        {
            exe.Parameters[ColumnName].Value = row[ColumnName];
        }
	}							
	
	exe.ExecuteNonQuery();
}
Changed to:

Code: Select all

 if (exe.Parameters.Contains(ColumnName))
Trigger this error.