On 5/17/06, Alexandre Pereira Nunes <alex@...> wrote:
> Adrian Papari escreveu:
> > Not sure if my last email got through or not, but I've tried compiling
> > Test.java with sun's jdk (1.5.0_06, with the arguments -source 1.4 and
> > -target 1.4), I also set UCLIBC_BUILD_PIE to 'n' in uClibc.config.
> > Unfortunately, none of this solved my jamvm issues. A dirty
> > work-around is of course to attempt running the class until it
> > succeeds - but I'd rather not.
> > Cheers,
> > Adrian.
> This sort of intermittent error sucks. I suspect perhaps that one of
> those uclibc 'security' options are randomizing addresses and making
> buffer overruns to cross segment boundaries at sometimes and not at other=
> But it can be several other things as well, such as multi-threading and
> context switch making something be hit randomly. I suspect that other
> than the well-know uclibc problem some people are hitting, perhaps
> there's a bug on jamvm itself.
> There's a kernel option, I believe it's debug_user=3D0x1f , that can be
> passed on kernel command line in order to make the kernel dump
> information about user-space application crash, which in turn may or may
> not be be useful to diagnosing the specific problem.
> Another option would be to compile jamvm with debug symbols and load it
> on gdb, and trying to run it until it spots where the fault occurs. If
> it's multi-thread related, it maybe a little difficult to do that.
> Other than that, I don't know what can be happening.
Thanks for the input!
Well, the Test class is a simple Hello World program, so no intricate
threads to debug (except those found internally in jamvm perhaps) - I
tried adding debug_user=3D0x1f to u-boot, but it didn't yield anything.
I haven't had time yet to compile jamvm with debug support though,
I'll try to find some time for it before Monday. Hopefully sooner.
On the bright side: at least this error doesn't hamper the development
effort in any critical way; with my lively imagination, I can imagine
a myriad of things that could possibly go wrong and cause much worse