[M3devel] still errors with cm3-min-POSIX-LINUXLIBC6-d5.5.1-2008-01-24-03-35-01
Tony Hosking
hosking at cs.purdue.edu
Thu Jan 24 23:47:24 CET 2008
On Jan 24, 2008, at 5:42 PM, Neels Janosch Hofmeyr wrote:
> Using the
> cm3-min-POSIX-LINUXLIBC6-d5.5.1-2008-01-24-03-35-01.tgz
> in conjunction with the 5.4.0 source tarballs, I get, :
>
> $ cm3 -version
> Critical Mass Modula-3 version d5.5.1-2008-01-24-03-35-01
> last updated: 2007-12-30
> compiled: 2008-01-24 03:54:37
> configuration: /usr/local/cm3/bin/cm3.cfg
>
> neels at oubantu:~/cm3-build/scripts
> $ vim ~/cm3-build/m3-libs/m3gc-simple/src/runtime/LINUXLIBC6/sysdeps.c
> {to remove the asm/ipc.h, as described on the known problems page}
>
> neels at oubantu:~/cm3-build/scripts
> $ ./do-cm3-core.sh buildship
> CM3C =
> /home/neels/cm3-build/scripts/pkgmap.sh -c "cm3 -build -DROOT='/
> home/neels/cm3-build' && cm3 -ship -DROOT='/home/neels/cm3-build'
> " m3gc-simple m3core libm3 patternmatching m3middle m3linker
> m3front m3quake m3cc cm3 m3scanner m3tools m3cgcat m3cggen m3bundle
> bitvector digraph parseparams realgeometry set slisp
> sortedtableextras table-list tempfiles
> === package /home/neels/cm3-build/m3-libs/m3gc-simple ===
> +++ cm3 -build -DROOT='/home/neels/cm3-build' && cm3 -ship -
> DROOT='/home/neels/cm3-build' +++
> --- building in LINUXLIBC6 ---
>
> new source -> compiling RTVM.c
> new source -> compiling sysdeps.c
> -> archiving libm3gcdefs.a
> --- shipping from LINUXLIBC6 ---
>
> . => /usr/local/cm3/pkg/m3gc-simple/LINUXLIBC6
> .M3EXPORTS libm3gcdefs.so.5 libm3gcdefs.a libm3gcdefs.m3x
> .M3WEB ../src/runtime => /usr/local/cm3/pkg/m3gc-simple/
> src/runtime
> RTVM.c ../src/runtime/LINUXLIBC6 => /usr/local/cm3/pkg/
> m3gc-simple/src/runtime/LINUXLIBC6
> sysdeps.c . => /usr/local/cm3/lib
> libm3gcdefs.a ==> /home/neels/cm3-build/m3-libs/m3gc-simple done
>
> === package /home/neels/cm3-build/m3-libs/m3core ===
> +++ cm3 -build -DROOT='/home/neels/cm3-build' && cm3 -ship -
> DROOT='/home/neels/cm3-build' +++
> --- building in LINUXLIBC6 ---
>
> ignoring ../src/m3overrides
>
> new source -> compiling RTHooks.i3
> new source -> compiling RT0.i3
> new source -> compiling RuntimeError.i3
> new source -> compiling Word.i3
> new source -> compiling RTException.i3
> new source -> compiling RTHooks.m3
> new source -> compiling RT0.m3
> new source -> compiling Compiler.i3
> new source -> compiling RuntimeError.m3
> new source -> compiling Compiler.m3
> new source -> compiling RTAllocator.i3
> new source -> compiling RTType.i3
> new source -> compiling Uucontext.i3
> new source -> compiling Utypes.i3
> new source -> compiling BasicCtypes.i3
> new source -> compiling Ctypes.i3
> new source -> compiling Usignal.i3
> new source -> compiling Csetjmp.i3
> new source -> compiling RTMachine.i3
> new source -> compiling Upthread.i3
> new source -> compiling Utime.i3
> new source -> compiling RTHeapDep.i3
> new source -> compiling RTHeapRep.i3
> new source -> compiling Thread.i3
> new source -> compiling FloatMode.i3
> new source -> compiling ThreadF.i3
> new source -> compiling RTOS.i3
> new source -> compiling RTMisc.i3
> new source -> compiling RTHeap.i3
> new source -> compiling Cstdlib.i3
> new source -> compiling Cstddef.i3
> new source -> compiling RTAllocCnts.i3
> new source -> compiling RTAllocator.m3
> new source -> compiling RTAllocStats.i3
> new source -> compiling Convert.i3
> new source -> compiling TextClass.i3
> new source -> compiling Text.i3
> new source -> compiling RTProcedureSRC.i3
> new source -> compiling Fingerprint.i3
> new source -> compiling RTProcedure.i3
> new source -> compiling RTStack.i3
> new source -> compiling RTAllocStats.m3
> "../src/runtime/common/RTAllocStats.m3", line 46: undefined runtime
> symbol !!
This is a new library function: you need newer sources.
> (RTHooks.AllocateTracedRef)
>
>
> ***
> *** runtime error:
> *** Segmentation violation - possible attempt to dereference NIL
> *** pc = 0x816f27f = StartCall + 0x19 in ../src/values/Procedure.m3
> ***
>
> Aborted (core dumped)
> *** execution of failed ***
>
>
> trying to backtrace yields this:
>
> neels at oubantu:~/cm3-build/m3-libs/m3core
> $ gdb /usr/local/cm3/bin/cm3
> GNU gdb 6.6-debian
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License,
> and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
> This GDB was configured as "i486-linux-gnu"...
> (no debugging symbols found)
> Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.
> 1".
> (gdb) run -build -DROOT='/home/neels/cm3-build'
> Starting program: /usr/local/cm3/bin/cm3 -build -DROOT='/home/
> neels/cm3-build'
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> [Thread debugging using libthread_db enabled]
> [New Thread -1210534224 (LWP 6710)]
> (no debugging symbols found)
> [New Thread -1210807408 (LWP 6713)]
>
> Program received signal SIG64, Real-time event 64.
> [Switching to Thread -1210807408 (LWP 6713)]
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) bt
> #0 0xffffe410 in __kernel_vsyscall ()
> #1 0xb7ee0676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/
> i686/cmov/libpthread.so.0
> #2 0x082ac2d0 in ?? ()
> #3 0x08b5c1a0 in ?? ()
> #4 0x08b5c3a8 in ?? ()
> #5 0xb7d48198 in ?? ()
> #6 0x082abeb2 in ?? ()
> #7 0xb7d4a0b0 in ?? ()
> #8 0x082ab578 in ?? ()
> #9 0xb7ede541 in pthread_mutex_lock () from /lib/tls/i686/cmov/
> libpthread.so.0
> #10 0x082ac932 in ?? ()
> #11 0xb7d4a174 in ?? ()
> #12 0xb7d4a0b0 in ?? ()
> #13 0xb7d4a0c0 in ?? ()
> #14 0x00000000 in ?? ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
> --- building in LINUXLIBC6 ---
>
> ignoring ../src/m3overrides
>
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
> new source -> compiling RTAllocStats.m3
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
>
> Program received signal SIG64, Real-time event 64.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) c
> Continuing.
> "../src/runtime/common/RTAllocStats.m3", line 46: undefined runtime
> symbol !! (RTHooks.AllocateTracedRef)
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1210534224 (LWP 6710)]
> 0x0816f27f in ?? ()
> (gdb) c
> Continuing.
>
>
> ***
> *** runtime error:
> *** Segmentation violation - possible attempt to dereference NIL
> *** pc = 0x816f27f = StartCall + 0x19 in ../src/values/Procedure.m3
> ***
>
>
> Program received signal SIGABRT, Aborted.
> 0xffffe410 in __kernel_vsyscall ()
> (gdb) bt
> #0 0xffffe410 in __kernel_vsyscall ()
> #1 0xb7db6875 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2 0xb7db8201 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3 0x082a8daf in ?? ()
> #4 0x080159a4 in ?? ()
> #5 0x082d31a4 in ?? ()
> #6 0xbfe7f578 in ?? ()
> #7 0x0829e3c4 in ?? ()
> #8 0x0000004d in ?? ()
> #9 0x082d31a4 in ?? ()
> #10 0xbfe7f588 in ?? ()
> #11 0x08298aa1 in ?? ()
> #12 0x01b514e0 in ?? ()
> #13 0x082d31a4 in ?? ()
> #14 0xbfe7f598 in ?? ()
> #15 0x0829bd25 in ?? ()
> #16 0x00000000 in ?? ()
> (gdb) c
> Continuing.
>
> Program terminated with signal SIGABRT, Aborted.
> The program no longer exists.
> (gdb)
>
>
> This happens both with "-gstabs+" and "-g" in cm3.cfg (Mikas hint
> reversed).
>
> Next, I'll try to checkout the sources from CVS... if that makes
> any sense.
>
> --
> Neels Janosch Hofmeyr
> Software Developer
>
> neels at elego.de
> Public Key: http://binarchy.net/neels/neels.hofmeyr.public.key.asc
>
> elego Software Solutions GmbH http://www.elegosoft.com
> Gustav-Meyer-Allee 25, Gebäude 12 HRB 77719
> 13355 Berlin, Germany Amtsgericht Charlottenburg
> Tel.: +49 30 23 45 86 96 Sitz der Gesellschaft: Berlin
> Fax: +49 30 23 45 86 95 Geschäftsführer: Olaf Wagner
>
>
More information about the M3devel
mailing list