• Python mpy error 216 on A43

    From StackFault@21:1/172 to g00r00 on Sun Mar 10 10:21:32 2019
    Hi!

    Trying to get some mpy working with message bases and keep getting the following:

    2019.10.03 09:50:54 MYSTIC 001 An error has occured: Corrupted memory (216)

    I was having it with a42, so upgraded to a43, same thing.

    Can't find much more to help you out with this.

    Running on Linux/64 with Python 2.7.13, 64 bits too.
    Any other mpy works except when trying to access message bases.


    Running an strace on the process gives this at the time of the crash:
    (I tried to replace any pipe I've seen with ! to avoid display issues)

    fstat(11, {st_mode=S_IFREG!0644, st_size=528, ...}) = 0 lseek(11, 0,
    SEEK_SET) = 0
    read(11, "\"\216\347\304\0\4\0\0\"\216\347\304\31\5\0\0\"\216\347\304~\6\0\0\"\216\347\3 04a\7\0\0"..., 4000) = 528
    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7ff200000000}
    ---
    rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0 gettimeofday({tv_sec=1552227433, tv_usec=336041}, NULL) = 0 gettimeofday({tv_sec=1552227433, tv_usec=336236}, NULL) = 0 open("/bbs/logs/errors.log", O_WRONLY!O_APPEND!O_LARGEFILE) = 12 write(12, "2019.10.03 10:17:13 MYSTIC 001 A"..., 76) = 76 close(12) = 0


    Cheers!

    |15 ß Þ |15StackFault |08<|03.|11.|15P|11h|03EN|11o|15M|11.|03.|08>
    |11 Ý ß |11The Bottomless Abyss BBS
    |03 ß Ýß |03ssh|08.|072222 |08/ |03telnet|08.|072023 |08/ |03https
    |08 ÜþÞ |08bbs|07.|08bottomlessabyss|07.|08net

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: The Bottomless Abyss BBS * bbs.bottomlessabyss.net (21:1/172)
  • From g00r00@21:1/108 to StackFault on Mon Mar 11 11:56:50 2019
    Running on Linux/64 with Python 2.7.13, 64 bits too.
    Any other mpy works except when trying to access message bases.

    Thanks for the info. I just ran "msgread.mpy" that comes with Mystic that uses message bases and its working okay for me.

    Have you tried recompiling Python as per the Wiki? Are you using Ubuntu? Maybe I can install whatever OS/version you are using to see if that matters.

    Also that version is probably a couple of years old or so, the latest is
    2.7.16 I think although I doubt that matters all that much you never know. I think I am using .15 here

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Sector 7 (21:1/108)
  • From StackFault@21:1/172 to g00r00 on Tue Mar 12 13:12:56 2019
    Running on Linux/64 with Python 2.7.13, 64 bits too.
    Any other mpy works except when trying to access message bases.

    Thanks for the info. I just ran "msgread.mpy" that comes with Mystic
    that uses message bases and its working okay for me.

    Have you tried recompiling Python as per the Wiki? Are you using
    Ubuntu? Maybe I can install whatever OS/version you are using to see if that matters.

    Also that version is probably a couple of years old or so, the latest is 2.7.16 I think although I doubt that matters all that much you never
    know. I think I am using .15 here

    Ok, finally managed to get everything in-line. That was it, needed to
    recompile Python and everything.

    Thanks for the input.

    I don't know if this is possible to have some more output when embedded
    Python fails? Maybe in a debug file or something? The error 216 is
    extremely generic and does not really point in any direction. That may be very useful if another issue happens down the road.

    Cheers!

    |15 ß Þ |15StackFault |08<|03.|11.|15P|11h|03EN|11o|15M|11.|03.|08>
    |11 Ý ß |11The Bottomless Abyss BBS
    |03 ß Ýß |03ssh|08.|072222 |08/ |03telnet|08.|072023 |08/ |03https
    |08 ÜþÞ |08bbs|07.|08bottomlessabyss|07.|08net

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: The Bottomless Abyss BBS * bbs.bottomlessabyss.net (21:1/172)
  • From g00r00@21:1/108 to StackFault on Sun Mar 17 19:22:42 2019
    Thanks for the input.

    I don't know if this is possible to have some more output when embedded Python fails? Maybe in a debug file or something? The error 216 is extremely generic and does not really point in any direction. That may
    be very useful if another issue happens down the road.

    I will add this to the list of things to do. I should be able to trap it and other common Python errors (like when Python environment variables aren't set in Windows) and have Mystic make some suggestions as to what the problem
    could be.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Sector 7 (21:1/108)
  • From StackFault@21:1/172 to g00r00 on Mon Mar 18 07:04:22 2019
    I don't know if this is possible to have some more output when embedd Python fails? Maybe in a debug file or something? The error 216 is extremely generic and does not really point in any direction. That ma be very useful if another issue happens down the road.

    I will add this to the list of things to do. I should be able to trap
    it and other common Python errors (like when Python environment
    variables aren't set in Windows) and have Mystic make some suggestions
    as to what the problem could be.

    That would be awesome and certainly help in developing mods and other content for Mystic.

    Cheers!

    |15 ß Þ |15StackFault |08<|03.|11.|15P|11h|03EN|11o|15M|11.|03.|08>
    |11 Ý ß |11The Bottomless Abyss BBS
    |03 ß Ýß |03ssh|08.|072222 |08/ |03telnet|08.|072023 |08/ |03https
    |08 ÜþÞ |08bbs|07.|08bottomlessabyss|07.|08net

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: The Bottomless Abyss BBS * bbs.bottomlessabyss.net (21:1/172)