Re: [MLton] Bug report (Ur/Web, ARM)
Jason Pepas <[email protected]> Wed, 21 Oct 2015 09:36:07 -0500
| Newsgroups | gmane.comp.lang.ml.mlton.devel |
|---|---|
| Message-ID | <CALuDM+Ar6rmVkjt9-YHmeWXO+KvGAur8wyiq=_LZYeY4D_015g@mail.gmail.com> |
I see that mlton is a bash script.
Invoking this script via 'bash -x mlton' shows that this is the last
command which was run:
/usr/lib/mlton/mlton-compile @MLton ram-slop 0.5 -- /usr/lib/mlton
-ar-script /usr/lib/mlton/static-library -cc gcc -cc-opt-quote
-I/usr/lib/mlton/include -cc-opt '-O1 -fno-common' -cc-opt
'-fno-strict-aliasing -fomit-frame-pointer -w' -link-opt '-lm -lgmp'
-mlb-path-map /usr/lib/mlton/mlb-path-map -target-as-opt amd64 -m64
-target-as-opt x86 -m32 -target-cc-opt alpha '-mieee -mbwx -mtune=ev6
-mfp-rounding-mode=d' -target-cc-opt amd64 -m64 -target-cc-opt darwin
'-I/usr/local/include
-I/opt/local/include
-I/sw/include' -target-cc-opt freebsd -I/usr/local/include
-target-cc-opt netbsd -I/usr/pkg/include -target-cc-opt openbsd
-I/usr/local/include -target-cc-opt aix -maix64 -target-cc-opt ia64 '
-mtune=itanium2' -target-cc-opt sparc '-m32 -mcpu=v8 -Wa,-xarch=v8plusa'
-target-cc-opt x86 '-m32
-fno-strength-reduce
-fschedule-insns
-fschedule-insns2
-malign-functions=5
-malign-jumps=2
-malign-loops=2' -target-link-opt amd64 -m64
-target-link-opt alpha '-mieee -mbwx -mtune=ev6 -mfp-rounding-mode=d'
-target-link-opt darwin ' -L/usr/local/lib' -target-link-opt freebsd
-L/usr/local/lib/ -target-link-opt aix -maix64 -target-link-opt ia64 ''
-target-link-opt linux -Wl,-znoexecstack -target-link-opt mingw '-lws2_32
-lkernel32 -lpsapi -lnetapi32 -lwinmm' -target-link-opt mingw
-Wl,--enable-stdcall-fixup -target-link-opt netbsd '-Wl,-R/usr/pkg/lib
-L/usr/pkg/lib/' -target-link-opt openbsd -L/usr/local/lib/
-target-link-opt solaris '-lnsl -lsocket -lrt' -target-link-opt x86 -m32
-profile-exclude '\$\(SML_LIB\)'
-jason
On Wed, Oct 21, 2015 at 9:32 AM, Jason Pepas <[email protected]> wrote:
> Matthew,
>
> Thank you for your thorough reply and explanation.
>
> As you suspected, running mlton with no arguments results in the same
> error.
>
> Here is the last few lines of output of strace:
>
> open("/lib/arm-linux-gnueabi/libc.so.6", O_RDONLY) = 3
> read(3,
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0XX\1\0004\0\0\0"..., 512) =
> 512
> lseek(3, 1231644, SEEK_SET) = 1231644
> read(3,
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1400) = 1400
> lseek(3, 1231204, SEEK_SET) = 1231204
> read(3,
> "A'\0\0\0aeabi\0\1\35\0\0\0\0054T\0\6\2\10\1\t\1\22\4\24\1\25\1"..., 40) =
> 40
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1233044, ...}) = 0
> mmap2(NULL, 1275160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
> = 0xb6d26000
> mprotect(0xb6e50000, 32768, PROT_NONE) = 0
> mmap2(0xb6e58000, 12288, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12a) = 0xb6e58000
> mmap2(0xb6e5b000, 9496, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6e5b000
> close(3) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0xb6d25000
> set_tls(0xb6d254c0, 0xb6d25b97, 0xb6d25b98, 0xb6d254c0, 0xb6fb8000) = 0
> mprotect(0xb6e58000, 8192, PROT_READ) = 0
> mprotect(0xb6f91000, 4096, PROT_READ) = 0
> mprotect(0xb6fb7000, 4096, PROT_READ) = 0
> munmap(0xb6fb0000, 22122) = 0
> sysinfo({uptime=606121, loads=[20768, 9216, 5568] totalram=29065216,
> freeram=3432448, sharedram=0, bufferram=1458176} totalswap=1073737728,
> freeswap=1069465600, procs=51}) = 0
> mmap2(NULL, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0xb6fb0000
> mprotect(0xb6fb0000, 4096, PROT_NONE) = 0
> mprotect(0xb6fb1000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
> mprotect(0xb6fb5000, 4096, PROT_NONE) = 0
> sigaltstack({ss_sp=0xb6fb3000, ss_flags=0, ss_size=8192}, NULL) = 0
> mmap2(0xf8000000, 1802240, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6b6d000
> write(2, "unhandled exception: ", 21unhandled exception: ) = 21
> write(2, "SysErr", 6SysErr) = 6
> write(2, "\n", 1
> ) = 1
> write(2, "MLton bug: ", 11MLton bug: ) = 11
> write(2, "unhandled exception in Basis Lib"..., 36unhandled exception in
> Basis Library) = 36
> write(2, "\nPlease send a bug report to MLt"..., 46
> Please send a bug report to [email protected].
> ) = 46
> exit_group(2) = ?
>
>
>
> I would guess this means that the last call to mmap2() failed?
>
>
> Thanks,
> Jason​
>
------------------------------------------------------------------------------
_______________________________________________
MLton-devel mailing list
[email protected]; [email protected]
https://lists.sourceforge.net/lists/listinfo/mlton-devel