• virtual, illegal instr

    From Hemo@1:103/705 to All on Sun Aug 16 13:29:00 2020
    Tossing this out in the event someone recognizes something and can point me in a direction to debug/correct the issue I am having.

    Wanting to move the BBS from physical hardware to a virtual. am using VMware ESXi 6.7. I was able to convert the physical to virtual disk, can boot the disk, other applications I was running, MySQL and Apache seem to not be affected by the new virtual hardware setup. But sbbs seems to be, I keep getting illegal instruction when trying to startup the bbs services.

    Thining something may have been compiled to physical CPU capabilities that didn't work on the virtual CPU, I just finishing clearing source directories and re-compiling sbbs on the virtual setup. I did not pull new source code in,
    just re-compiled what was present, everything compiled without errors. I still
    get the illegal instruction when sbbs tries to startup.

    The 'old' physical CPU and memory:
    CPU
    Number 2
    Model Intel(R) Pentium(R) CPU G3220T @ 2.60GHz
    Frequency 2348.541 MHz
    Cache L2 3072 KB
    Bogomips 5188.43

    Memory
    RAM 7162 Mb free of 7868 Mb
    OS Linux Ubuntu 20.04.1 LTS (focal)
    Kernel 5.4.0-42-generic

    The 'new' virtual CPU and memory:
    CPU
    Number 2
    Model Intel(R) Xeon(R) CPU X5690 @ 3.47GHz
    Frequency 3458.000 MHz
    Cache L2 12288 KB
    Bogomips 6916.00

    Memory
    RAM 1407 Mb free of 1986 Mb
    OS Linux Ubuntu 20.04.1 LTS (focal)
    Kernel 5.4.0-42-generic

    When I attempt to start sbbs, this is the console output:

    root@bbs:~# sbbs

    Synchronet Console for Linux Version 3.18a Copyright 2020 Rob Swindell

    Reading /sbbs/ctrl/sbbs.ini
    Loading configuration files from /sbbs/ctrl/
    Current usr ids: ruid - 0, euid - 1000, suid - 1000
    Current grp ids: rgid - 0, egid - 1000, sgid - 1000
    The process 1840 was given capabilities =p
    Setting initial privileges
    Successfully changed user-id to sbbs
    Setting minimum privileges
    Current usr ids: ruid - 1000, euid - 1000, suid - 1000
    Current grp ids: rgid - 1000, egid - 1000, sgid - 1000
    The process 1840 was given capabilities = cap_net_bind_service,cap_sys_resource+ep
    Waiting for child threads to bind ports...
    8/16 13:21:31 stat Loading configuration files from /sbbs/ctrl
    8/16 13:21:31 term Synchronet Terminal Server Version 3.18 Revision A
    8/16 13:21:31 term Compiled Aug 16 2020 12:57:02 with GCC 9.3.0
    8/16 13:21:31 term Initializing on Sun Aug 16 13:21:31 2020 with options: 90001022
    8/16 13:21:31 term Loading configuration files from /sbbs/ctrl/
    8/16 13:21:31 stat Listening on /sbbs/ctrl/status.sock
    8/16 13:21:31 mail Synchronet Mail Server Revision 1.728
    8/16 13:21:31 mail Compiled Aug 16 2020 12:57:32 with GCC 9.3.0
    8/16 13:21:31 mail Initializing on Sun Aug 16 13:21:31 2020 with options: 851c8204
    8/16 13:21:31 mail Loading configuration files from /sbbs/ctrl/
    8/16 13:21:31 srvc Synchronet Services Revision 1.334
    8/16 13:21:31 srvc Compiled Aug 16 2020 12:57:35 with GCC 9.3.0
    8/16 13:21:31 srvc Initializing on Sun Aug 16 13:21:31 2020 with options: 80000800
    8/16 13:21:31 srvc Loading configuration files from /sbbs/ctrl/
    8/16 13:21:31 ftp Synchronet FTP Server Revision 1.498
    8/16 13:21:31 ftp Compiled Aug 16 2020 12:57:29 with GCC 9.3.0
    8/16 13:21:31 ftp Initializing on Sun Aug 16 13:21:31 2020 with options: 354 8/16 13:21:31 ftp Loading configuration files from /sbbs/ctrl/
    8/16 13:21:31 srvc Ignoring disabled service: QOTD
    8/16 13:21:31 srvc Ignoring disabled service: QOTD-UDP
    8/16 13:21:31 srvc NNTP listening on socket 0.0.0.0 port 119
    8/16 13:21:31 srvc NNTP listening on socket :: port 119
    8/16 13:21:31 web Synchronet Web Server Revision 1.715
    8/16 13:21:31 web Compiled Aug 16 2020 12:58:14 with GCC 9.3.0
    8/16 13:21:31 web Initializing on Sun Aug 16 13:21:31 2020 with options: 800008c0
    8/16 13:21:31 web Loading configuration files from /sbbs/ctrl/
    8/16 13:21:31 mail SMTP Transfer Agent listening on socket 0.0.0.0 port 25
    8/16 13:21:31 mail SMTP Transfer Agent listening on socket :: port 25
    8/16 13:21:31 ftp FTP Server listening on socket 0.0.0.0 port 21
    8/16 13:21:31 term Verifying/creating data directories
    8/16 13:21:31 ftp FTP Server listening on socket :: port 21
    8/16 13:21:31 ftp 0008 !ERROR 98 (Address already in use) binding FTP Server socket
    8/16 13:21:31 ftp 0008 Will retry in 15 seconds (1 of 2)
    8/16 13:21:31 mail 0009 !ERROR 98 (Address already in use) binding SMTP Transfer Agent socket
    8/16 13:21:31 mail 0009 Will retry in 15 seconds (1 of 2)
    8/16 13:21:31 srvc 0010 !ERROR 98 (Address already in use) binding NNTP socket 8/16 13:21:31 srvc 0010 Will retry in 15 seconds (1 of 2)
    Illegal instruction


    Anyone run into something similar and have ideas what to do next?
    ... Gone crazy, be back later, please leave message.
    --- MultiMail/Win v0.52
    þ Synchronet þ - Running madly into the wind and screaming - bbs.ujoint.org
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From alterego@1:103/705 to Hemo on Mon Aug 17 14:31:05 2020
    Re: virtual, illegal instr
    By: Hemo to All on Sun Aug 16 2020 01:29 pm

    Tossing this out in the event someone recognizes something and can point me in a direction to debug/correct the issue I am having.

    not be affected by the new virtual hardware setup. But sbbs seems to be, I keep getting illegal instruction when trying to startup the bbs services.

    didn't work on the virtual CPU, I just finishing clearing source directories and re-compiling sbbs on the virtual setup. I did not pull

    Illegal instruction

    Are you sure you compiled clean?

    I've had that before, on x86_64 platforms thinking that compiled on 1 server should work on the other. Turned out there must have been CPU differences - so a "clean" compile resolved it for me.

    ...ëîåï

    ... Liberty means responsibility. That is why most men dread it.

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hemo@1:103/705 to alterego on Mon Aug 17 11:11:27 2020
    Re: virtual, illegal instr
    By: alterego to Hemo on Mon Aug
    17 2020 02:31 pm

    Re: virtual, illegal instr
    By: Hemo to All on Sun Aug 16 2020 01:29 pm
    to be, I keep getting illegal instruction when trying to startup the

    Are you sure you compiled clean?

    yes, no doubt the compile is clean. typical warning messages but no errors.

    Later today I'm going to kill off all the source directories on the VM and pull in fresh from CVS and try that.

    ... BROOK'S LAW: Adding manpower to a late software project makes it later.

    ---
    þ Synchronet þ - Running madly into the wind and screaming - bbs.ujoint.org
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hemo@1:103/705 to alterego on Mon Aug 17 21:02:21 2020
    Re: virtual, illegal instr
    By: Hemo to alterego on Mon Aug
    17 2020 11:11 am

    Are you sure you compiled clean?

    yes, no doubt the compile is clean. typical warning messages but no errors.

    new compiles again tonight, no errors during the compile, still seeing illegal instruction message to sbbs console.

    found these in syslog and kern.log:
    syslog <==
    Aug 17 20:49:14 bbs kernel: [ 202.597545] traps: sbbs/webServer[1272] trap invalid opcode ip:7f9b9ced6039 sp:7f9b993427e0 error:0 in libsbbs.so[7f9b9ca6e000+525000]

    kern.log <==
    Aug 17 20:49:14 bbs kernel: [ 202.597545] traps: sbbs/webServer[1272] trap invalid opcode ip:7f9b9ced6039 sp:7f9b993427e0 error:0 in libsbbs.so[7f9b9ca6e000+525000]

    Weird. so i try starting without the Web Server and I have no 'illegal instruction' for a long time, and then finally:

    Aug 17 20:59:20 bbs kernel: [ 808.068172] traps: sbbs/termServer[1316] trap invalid opcode ip:7f0e48e43039 sp:7f0e472b4f40 error:0 in libsbbs.so[7f0e489db000+525000]


    For now I guess I keep things running on the physical hardware. Not sure what gives that it will compile fine in the virtual env but throw these errors when trying to run.

    ... Use it up.Wear it out. Make it do Or do without.

    ---
    þ Synchronet þ - Running madly into the wind and screaming - bbs.ujoint.org
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)