Re: [Mono-dev] Problem when running winforms app on arm processor
Geoff, I think this is what you asked for. Let me know if something looks funny - I'm new to gdb. Breakpoint 1, mono_arch_patch_callsite ( method_start=0x4153c048 "\r\300\240", , code_ptr=0x4153c0cc "", addr=0x419759f8 "\r\300\240\341`Y-\351H\320M\342\r\260\240", ) at tramp-arm.c:48 48 g_assert_not_reached (); (gdb) x/6i code-16 0x4153c088: addr0, r0, #3670016 ; 0x38 0x4153c08c: ldr r0, [r0] 0x4153c090: cmp r0, #0 0x4153c094: bne0x4153c0d8 0x4153c098: mov r0, #17 0x4153c09c: ldr r12, [pc, #0]; 0x4153c0a4 (gdb) Thanks, Matt From: Geoff Norton [mailto:gnorton.nov...@gmail.com] On Behalf Of Geoff Norton Sent: Friday, January 14, 2011 10:03 AM To: Matt Johnson Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Problem when running winforms app on arm processor Matt, We cannot replicate this problem, so you'll need to help narrow down the field. Can you get the gdb output of x/6i code-16 when gdb is at tramp-arm.c line 48? Thanks -g On 2011-01-14, at 11:28 AM, Matt Johnson wrote: PLEA FOR URGENT HELP Almost 7 weeks and not a single response on this except to confirm that another is also having the problem. Is there no one that can shed light on what is going on here? I cannot run any winforms apps on an arm processor without hitting the assertion in tramp-arm.c. I am willing to help in any way I can, but I'm not an assembly language programmer, nor am I familiar with reasons behind the patching that is going on in the arm trampoline, so I really need some assistance. Thank You. Matt From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Matt Johnson Sent: Monday, January 03, 2011 10:24 AM To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Problem when running winforms app on arm processor No, I have no resolution yet. I have simplified my winforms test application such that it is a single form with a single text "hello world" label and no code logic whatsoever. It crashes in the exact same manner. One point I am unclear on is that I read in some old posts that the thumb instruction set is not supported. I am not compiling with thumb enabled, but I am using a toolchain that targets armv4t instead of straight armv4. I actually found it very difficult to even find an "non-t" toolchain out there - I'd have to compile one from scratch if this is the problem. I don't see how it could be though. Especially since it is only winforms apps that are failing. Can someone with some expertise with the arm trampoline please chime in here? It is fairly urgent. Thanks, Matt From: Jae Kim [mailto:jkim0...@gmail.com] Sent: Friday, December 17, 2010 10:52 AM To: mj1856 Subject: Re: [Mono-dev] Problem when running winforms app on arm processor Hi Matt, Did you ever resolve this? I'm experiencing the same problem. Thanks, Jae On Mon, Nov 29, 2010 at 7:44 PM, mj1856 wrote: I have cross compiled mono 2.8 with libgdiplus for the s3c2410 processor I am running. It is an arm920t (armv4t architecture). I use scratchbox with a recent codesourcery toolchain. I have two test applications that I wrote in visual studio targeting .net 2.0. The first is a console app with a basic "Hello world". It works perfectly. The second is a winforms app with a single form that has a simple label that gets updated with a timer control to show the current date and time. (basically a digital clock). Running it, I get the following error: * Assertion: should not be reached at tramp-arm.c:48 Checking /mono/mini/tramp-arm.c, the function in question is mono_arch_patch_callsite, which has two blocks of code, where one of them is supposed to run. I'm not sure exactly what it's checking here, but neither block gets executed, so it hits the assertion. Can anyone shed some light on what might be the problem? One note that may or may not be of interest, but because the codesourcery toolchain is multilib, I have to specify -march=armv4t on the CFLAGS passed to configure mono. This appears to be working, as my console app works fine. I do have a running X server, which I've tested with other native apps, so I know at least that part is functional. Thanks, Matt -- View this message in context: http://mono.1490590.n4.nabble.com/Problem-when-running-winforms-app-on-arm-p rocessor-tp3064820p3064820.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-li
Re: [Mono-dev] Problem when running winforms app on arm processor
Matt, We cannot replicate this problem, so you'll need to help narrow down the field. Can you get the gdb output of x/6i code-16 when gdb is at tramp-arm.c line 48? Thanks -g On 2011-01-14, at 11:28 AM, Matt Johnson wrote: > PLEA FOR URGENT HELP > > Almost 7 weeks and not a single response on this except to confirm that > another is also having the problem. > > Is there no one that can shed light on what is going on here? I cannot run > any winforms apps on an arm processor without hitting the assertion in > tramp-arm.c. > > I am willing to help in any way I can, but I’m not an assembly language > programmer, nor am I familiar with reasons behind the patching that is going > on in the arm trampoline, so I really need some assistance. > > Thank You. > Matt > > From: mono-devel-list-boun...@lists.ximian.com > [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Matt Johnson > Sent: Monday, January 03, 2011 10:24 AM > To: mono-devel-list@lists.ximian.com > Subject: Re: [Mono-dev] Problem when running winforms app on arm processor > > No, I have no resolution yet. I have simplified my winforms test application > such that it is a single form with a single text “hello world” label and no > code logic whatsoever. It crashes in the exact same manner. > > One point I am unclear on is that I read in some old posts that the thumb > instruction set is not supported. I am not compiling with thumb enabled, but > I am using a toolchain that targets armv4t instead of straight armv4. I > actually found it very difficult to even find an “non-t” toolchain out there > – I’d have to compile one from scratch if this is the problem. I don’t see > how it could be though. Especially since it is only winforms apps that are > failing. > > Can someone with some expertise with the arm trampoline please chime in here? > It is fairly urgent. > > Thanks, > Matt > > From: Jae Kim [mailto:jkim0...@gmail.com] > Sent: Friday, December 17, 2010 10:52 AM > To: mj1856 > Subject: Re: [Mono-dev] Problem when running winforms app on arm processor > > Hi Matt, > > Did you ever resolve this? I'm experiencing the same problem. > > Thanks, > Jae > > On Mon, Nov 29, 2010 at 7:44 PM, mj1856 wrote: > > I have cross compiled mono 2.8 with libgdiplus for the s3c2410 processor I am > running. It is an arm920t (armv4t architecture). I use scratchbox with a > recent codesourcery toolchain. > > I have two test applications that I wrote in visual studio targeting .net > 2.0. The first is a console app with a basic "Hello world". It works > perfectly. The second is a winforms app with a single form that has a > simple label that gets updated with a timer control to show the current date > and time. (basically a digital clock). Running it, I get the following > error: > > * Assertion: should not be reached at tramp-arm.c:48 > > Checking /mono/mini/tramp-arm.c, the function in question is > mono_arch_patch_callsite, which has two blocks of code, where one of them is > supposed to run. I'm not sure exactly what it's checking here, but neither > block gets executed, so it hits the assertion. Can anyone shed some light > on what might be the problem? > > One note that may or may not be of interest, but because the codesourcery > toolchain is multilib, I have to specify -march=armv4t on the CFLAGS passed > to configure mono. This appears to be working, as my console app works > fine. > > I do have a running X server, which I've tested with other native apps, so I > know at least that part is functional. > > Thanks, > Matt > -- > View this message in context: > http://mono.1490590.n4.nabble.com/Problem-when-running-winforms-app-on-arm-processor-tp3064820p3064820.html > Sent from the Mono - Dev mailing list archive at Nabble.com. > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Problem when running winforms app on arm processor
PLEA FOR URGENT HELP Almost 7 weeks and not a single response on this except to confirm that another is also having the problem. Is there no one that can shed light on what is going on here? I cannot run any winforms apps on an arm processor without hitting the assertion in tramp-arm.c. I am willing to help in any way I can, but I'm not an assembly language programmer, nor am I familiar with reasons behind the patching that is going on in the arm trampoline, so I really need some assistance. Thank You. Matt From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Matt Johnson Sent: Monday, January 03, 2011 10:24 AM To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Problem when running winforms app on arm processor No, I have no resolution yet. I have simplified my winforms test application such that it is a single form with a single text "hello world" label and no code logic whatsoever. It crashes in the exact same manner. One point I am unclear on is that I read in some old posts that the thumb instruction set is not supported. I am not compiling with thumb enabled, but I am using a toolchain that targets armv4t instead of straight armv4. I actually found it very difficult to even find an "non-t" toolchain out there - I'd have to compile one from scratch if this is the problem. I don't see how it could be though. Especially since it is only winforms apps that are failing. Can someone with some expertise with the arm trampoline please chime in here? It is fairly urgent. Thanks, Matt From: Jae Kim [mailto:jkim0...@gmail.com] Sent: Friday, December 17, 2010 10:52 AM To: mj1856 Subject: Re: [Mono-dev] Problem when running winforms app on arm processor Hi Matt, Did you ever resolve this? I'm experiencing the same problem. Thanks, Jae On Mon, Nov 29, 2010 at 7:44 PM, mj1856 wrote: I have cross compiled mono 2.8 with libgdiplus for the s3c2410 processor I am running. It is an arm920t (armv4t architecture). I use scratchbox with a recent codesourcery toolchain. I have two test applications that I wrote in visual studio targeting .net 2.0. The first is a console app with a basic "Hello world". It works perfectly. The second is a winforms app with a single form that has a simple label that gets updated with a timer control to show the current date and time. (basically a digital clock). Running it, I get the following error: * Assertion: should not be reached at tramp-arm.c:48 Checking /mono/mini/tramp-arm.c, the function in question is mono_arch_patch_callsite, which has two blocks of code, where one of them is supposed to run. I'm not sure exactly what it's checking here, but neither block gets executed, so it hits the assertion. Can anyone shed some light on what might be the problem? One note that may or may not be of interest, but because the codesourcery toolchain is multilib, I have to specify -march=armv4t on the CFLAGS passed to configure mono. This appears to be working, as my console app works fine. I do have a running X server, which I've tested with other native apps, so I know at least that part is functional. Thanks, Matt -- View this message in context: http://mono.1490590.n4.nabble.com/Problem-when-running-winforms-app-on-arm-p rocessor-tp3064820p3064820.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Problem when running winforms app on arm processor
No, I have no resolution yet. I have simplified my winforms test application such that it is a single form with a single text "hello world" label and no code logic whatsoever. It crashes in the exact same manner. One point I am unclear on is that I read in some old posts that the thumb instruction set is not supported. I am not compiling with thumb enabled, but I am using a toolchain that targets armv4t instead of straight armv4. I actually found it very difficult to even find an "non-t" toolchain out there - I'd have to compile one from scratch if this is the problem. I don't see how it could be though. Especially since it is only winforms apps that are failing. Can someone with some expertise with the arm trampoline please chime in here? It is fairly urgent. Thanks, Matt From: Jae Kim [mailto:jkim0...@gmail.com] Sent: Friday, December 17, 2010 10:52 AM To: mj1856 Subject: Re: [Mono-dev] Problem when running winforms app on arm processor Hi Matt, Did you ever resolve this? I'm experiencing the same problem. Thanks, Jae On Mon, Nov 29, 2010 at 7:44 PM, mj1856 wrote: I have cross compiled mono 2.8 with libgdiplus for the s3c2410 processor I am running. It is an arm920t (armv4t architecture). I use scratchbox with a recent codesourcery toolchain. I have two test applications that I wrote in visual studio targeting .net 2.0. The first is a console app with a basic "Hello world". It works perfectly. The second is a winforms app with a single form that has a simple label that gets updated with a timer control to show the current date and time. (basically a digital clock). Running it, I get the following error: * Assertion: should not be reached at tramp-arm.c:48 Checking /mono/mini/tramp-arm.c, the function in question is mono_arch_patch_callsite, which has two blocks of code, where one of them is supposed to run. I'm not sure exactly what it's checking here, but neither block gets executed, so it hits the assertion. Can anyone shed some light on what might be the problem? One note that may or may not be of interest, but because the codesourcery toolchain is multilib, I have to specify -march=armv4t on the CFLAGS passed to configure mono. This appears to be working, as my console app works fine. I do have a running X server, which I've tested with other native apps, so I know at least that part is functional. Thanks, Matt -- View this message in context: http://mono.1490590.n4.nabble.com/Problem-when-running-winforms-app-on-arm-p rocessor-tp3064820p3064820.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Problem when running winforms app on arm processor
I'm getting this same assertion with an arm processor. The following code triggers this exception. PositionReport.Position position = Serializer.Deserialize(streamParse); Jae mj1856 wrote: > > I have cross compiled mono 2.8 with libgdiplus for the s3c2410 processor I > am running. It is an arm920t (armv4t architecture). I use scratchbox with > a recent codesourcery toolchain. > > I have two test applications that I wrote in visual studio targeting .net > 2.0. The first is a console app with a basic "Hello world". It works > perfectly. The second is a winforms app with a single form that has a > simple label that gets updated with a timer control to show the current > date and time. (basically a digital clock). Running it, I get the > following error: > > * Assertion: should not be reached at tramp-arm.c:48 > > Checking /mono/mini/tramp-arm.c, the function in question is > mono_arch_patch_callsite, which has two blocks of code, where one of them > is supposed to run. I'm not sure exactly what it's checking here, but > neither block gets executed, so it hits the assertion. Can anyone shed > some light on what might be the problem? > > One note that may or may not be of interest, but because the codesourcery > toolchain is multilib, I have to specify -march=armv4t on the CFLAGS > passed to configure mono. This appears to be working, as my console app > works fine. > > I do have a running X server, which I've tested with other native apps, so > I know at least that part is functional. > > Thanks, > Matt > -- View this message in context: http://mono.1490590.n4.nabble.com/Problem-when-running-winforms-app-on-arm-processor-tp3064820p3085957.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Problem when running winforms app on arm processor
I have cross compiled mono 2.8 with libgdiplus for the s3c2410 processor I am running. It is an arm920t (armv4t architecture). I use scratchbox with a recent codesourcery toolchain. I have two test applications that I wrote in visual studio targeting .net 2.0. The first is a console app with a basic "Hello world". It works perfectly. The second is a winforms app with a single form that has a simple label that gets updated with a timer control to show the current date and time. (basically a digital clock). Running it, I get the following error: * Assertion: should not be reached at tramp-arm.c:48 Checking /mono/mini/tramp-arm.c, the function in question is mono_arch_patch_callsite, which has two blocks of code, where one of them is supposed to run. I'm not sure exactly what it's checking here, but neither block gets executed, so it hits the assertion. Can anyone shed some light on what might be the problem? One note that may or may not be of interest, but because the codesourcery toolchain is multilib, I have to specify -march=armv4t on the CFLAGS passed to configure mono. This appears to be working, as my console app works fine. I do have a running X server, which I've tested with other native apps, so I know at least that part is functional. Thanks, Matt -- View this message in context: http://mono.1490590.n4.nabble.com/Problem-when-running-winforms-app-on-arm-processor-tp3064820p3064820.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list