D4GL (4js) COFF get segmentation violation
Iv'e got a work around by making /usr/fgl2c an tmpfs at startup, so something to do with the size of the data staructures or inodes being returned on this particular VM. where tge root fs is /dev/nvme0n1p2 60G 6.5G 54G 11% / I created my o\wn test AWS rhel8 machine (default free image), and it had no issue.
sh-4.2# file /usr/fgl2c/bin/fglWrt /usr/fgl2c/bin/fglWrt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped sh-4.2# this also works fine on my inhouse rhel8 but not on the AWS rhel8
sh-4.2# file /usr/fgl2c/bin/fglWrt /usr/fgl2c/bin/fglWrt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped sh-4.2#
Since the origianl post, I have also found that 1 32bit satically linked linux ELF binary fglWrt that is the the user license manager that comes with the informix 4gl also exhibits a similar problem when run with the -u option to verify users. sh-4.4# fglWrt -u ERROR(-6071):Cannot use directory '/usr/fgl2c/lock'. Check FGLDIR and verify if access rights are 'drwxrwxrwx'. running a system trace.... sh-4.4# (strace /usr/fgl2c/bin/fglWrt -u 2>&1) >fglWrt_u.strace fglWrt_u.strace attached, see line 53...
forgot to add.. these are the lines in the trace files I believe where I'm hitting the problem.. In callextdet_22220107.strace line 481: read(7, ERROR(-6071):Cannot use directory '/usr/fgl2c/lock'. In ibcs-us_callextdet_20220107.trace line 530: read(7, 0x00475A4C, 1024) read returns 1 (edx:1)
read(7, ERROR(-6071):Cannot use directory '/usr/fgl2c/lock'.
Thanks Russell, I will see if I can get access. -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia Phone... +61 3 87878744 Email...... rod@transmit.com.au Web....... www.transmit.com.au ----- Original Message ----- From: Russell Stuart To: [ibcs-us:tickets] Sent: Wednesday, January 06, 2021 9:21 PM Subject: [ibcs-us:tickets] #5 error running SCO coff on RHEL8 At long last I've had a chance to have...
If you need access to a dev/test RHEL 8 system, I can setup a user rstuart with your pub key from last time, and open a port to it. Rod -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia Phone... +61 3 87878744 Email...... rod@transmit.com.au Web....... www.transmit.com.au ----- Original Message ----- From: Russell Stuart To: [ibcs-us:tickets] Sent: Wednesday, October 07, 2020 5:12 PM Subject: [ibcs-us:tickets]...
csum.coff (attached) Usage: csum filename It generates a check sum of filename or stdin of no param I also get the error with all other coff binaries the ibcs-us version is 4.1.5 ibcs-us csum.coff works if run on rhel 7 Linux rhel72t21 3.10.0-1127.13.1.el7.x86_64 #1 SMP Fri Jun 12 14:34:17 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux the kernel for rhel 8 is Linux rhel80t21 4.18.0-193.14.3.el8_2.x86_64 #1 SMP Mon Jul 20 15:02:29 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
error running SCO coff on RHEL8
Hi Russell, That did the trick, there it was plain and clear in the man page, sorry should have read the man page. Rod -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia Phone... +61 3 87878744 Fax.........+61 3 87875722 Email...... rod@transmit.com.au Web....... www.transmit.com.au ----- Original Message ----- From: Russell Stuart To: [ibcs-us:tickets] Sent: Tuesday, December 03, 2019 9:46 AM Subject:...
Wait() system call is not waiting
Found the issue, there was a # out entry in /etc/passwd that had the number of ":' separrateors accidentally changed, So thing to do with ibcs-us Please close
I will attempt to create a tar ball of a chroot with the error, What Ive determined from testing is that if the test user is withon 1024 bytes (1 read ) of /etc/passwd then the 4gl worrks fine. the production box is always doing only 1 read of 1024 bytes on the open /etc/passwd wh\ere as the Dev box loops on the read () 1024 bytes of /etc/passwd unitil it finds the line matching getuid()
I will attempt to create a tar ball of a chroot with the error, WhatIve determined, from testing , is that if the test use is withon 1024 bytes (i read ) of /etc/passwd then the 4gl cworrks fine. the production box is always doing on;y 1 read of 1024 bytes on the open /etc/passwd wharae the Dev box loops on the read () 1024 bytes of /etc/passwd unitil it finds the line matching getuid()
ibcs-us trace when run on production box and gets the error Program stopped at "globals.4gl", line number 1. SQL statement error number -468. Cannot obtain user id from system: unable to start database engine.
Informix D4GL having perms issue
Thanks Russel thats brilliant. I have tested and I also see the segfault 4GL RUN / C system()l has been fixed. Thee xternal code runs, and thewn the program continues fine. Tesedt test 4gl tst9.42e , and test C code tst10, as well as real 4GL program that first showed the issue. I've been doing a bit of testing over the last month, and sofar have not come across any other issues. Thanks for all the effort to fix this
Just realised you wonyt be able to run the binary, becaus tyou need a 4gl runtime installed. -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia Phone... +61 3 87878744 Fax.........+61 3 87875722 Email...... rod@transmit.com.au Web....... www.transmit.com.au ----- Original Message ----- From: Rodney Sheppard To: [ibcs-us:tickets] Sent: Wednesday, August 07, 2019 6:47 PM Subject: Re: [ibcs-us:tickets]...
Hi Russel, On my SCO 4gl dev box I alterred the code to comment ot the exec (4GL RUN command). The seg failt then moved to the next RUN command in the code. So I created a simple 4GL test program which exhibits the fault. (attached) tst9.4 is the 4gl source code tst9.42c is the c code generated by the 4GL compiler, tst9.42e is the binary. I have also setup a login for you on my rHEL 7 box if you want -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty....
maybe the thread should be split into a new won from Rod Sheppard - 2019-07-21
Can you give me a priovarte email, so I can send you the details? -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia Phone... +61 3 87878744 Fax.........+61 3 87875722 Email...... rod@transmit.com.au Web....... www.transmit.com.au ----- Original Message ----- From: Rodney Sheppard To: [ibcs-us:tickets] Sent: Tuesday, August 06, 2019 1:13 AM Subject: Re: [ibcs-us:tickets] Re: #1 ibcs-us compile error....
Thanks Russel I will see if I can convert and save the 4gl src to its intermediate ESQL/C code to see what it is doing. The code where it is failing is part of a 4GL library, the partriuculay source sends update date to remote systems, and records local session logs I will look at enabling a port forwading from the internet to ssh login on the RHEL 7 box. Rod -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976,...
Hi Russel here is an ibcs-us trace of an Informix 4gl program that is generating a segmentation fault after execing a shel command thet pipes a file to lpat the end of the trace after the call to exec sh -c .. there are sys calls relatuiong to signals can you interpret them for me... sh-4.2# sh-4.2# cat ibcs-us.trace Personality 07000003 assigned sysi86/sys3b(114) sysi86/sys3b returns 15 (edx:15) brk/break(0x4709ac) brk/break returns 0 (edx:0) open("/usr/fgl2c/msg/fglrts.cmg", 0, 666) open returns...
Hi Russel, By using a simple socket test progrom I determined that sockets are working ok with ibc-us, and the database connection issue was due to a database version iussue with the apps, which required the configuration of a relay modules which is now working. Nit sure if ipc connection are working because I think this was also failing du to a database version issue. But whith socket connections working to the DB, I don't need ipc. I do have a segmentaion violation issue with one of the apps where...
Thanks Russell Very helpful information, I swill spend some time taking a look at the code using the informartion you have given. I will try runing a trace on e existing binary in RHEL7. to see igf I can spt anythinf. and when I get some TOIme I will setipo a RHEL 8 dev box, and hopefiull I can compile the source, so I can debug. the socksys.c code. Rod -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia...
Thanks Russel, When I get time, I will setup a RHEL 8 dev box and see I can get the source to compile on it. I can then use it as a test ben, I know 'C', but nothing about LInux kernel, or linux system cal, but If you pint me the the source files of inetrest, I will take a llok. How aboput the IPC option? Rod -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia Phone... +61 3 87878744 Fax.........+61...
I made /dev/socksys and tried the tcp/ip socket connet to the DB without succees, I also have the option to connect to the Informix DB via IPC, whxch I also tried without success I know the iPC worked on the ibc3.s kernal modules on RHEL 5, is the IPC system call still supported on ibcs-us, and if so is there anythong I need to do to confiure it?
I made /.dev/socksys and tried the tcp/ip socket connet to the DB without succees, I also have the option to connect to the Informix DB via IPC, whxch I also tried without success I know the iPC worked on the ibc3.s kernal modules on RHEL 5, is the IPC system call still supported on ibcs-us, and if so is there anythong I need to do to confiure it?
For sockets do I only need to make crw-r--r-- 1 root root 30, 0 Jul 21 15:16 /dev/socksys
A big thanks Russell, I loaded the binary from us_4.1.4-1_amd64.deb onto my RHEL 7 dev box (kernel 3.10.0-957.21.3.el7.x86_64) and tested a static SCO coff. (a simple file checksum toot), which worked ok I will move on to test somethig that uses sockets and informix db access. Rod
A big thanks Russell, I loaded the binary from us_4.1.4-1_amd64.deb onto my RHEL 7 dev box (kernel 3.10.0-957.21.3.el7.x86_64) and tested a static SCO coff. (a simple file checksum toot), which worked ok I will move on to test somethig that uses sockets and informix db access. Rod -- reply above this line -- Rodney Sheppard Software Engineer - Development Manager Trans-Mit Pty. Ltd. 7 Wendy Court Hampton Park, Vic 3976, Australia Phone... +61 3 87878744 Fax.........+61 3 87875722 Email...... rod@transmit.com.au...
Hi, I have the same issue on RHEL7
Hi, lI have the same issue on RHEL7
Is there any plans to get it working on debian 8 - Jessie? -- reply above this line...
Thanks Russel -- reply above this line -- Rodney Sheppard Software Engineer - Development...
Ed can you tell me what what distro and version 64 bit kernel you are aware of ibcs...
What would be th most recent version of debion that ibcs64 works on, and is it x86_64...
ibsc64 on RHEL7.2
Javier, have you had any time to look at this?
Hi Derek, I cand send you the source for the ibcs versionas I have just tried to...
No luck on Slackware 14.1 32bit (Linux 3.10.17-smp kernel) I Cant get ibs to compile.........
If you want to send me the xenix binaries, I will test them on the ibcs3.8 I have...
But do you want it for for kernel 3.10.x ? like SLackware 14.1 Because i yoyu don't...
I will setu at test slackware 14.1 32bit, and it and see if I can get it too work....
Hi Derek, I have had SCO Infromix SE 5, running on various versions of slackware...
Does this Project take donations?
Thanks Javier, an IBCS module to run SCO COFF on RHEL 64 buit kernels is what I'm...
should I be setiting the CONFIG rnyry ABI_AMD64VECTOR before compile on a RHEL7 x86_64...
should I be setiting the CONFIG rnyry ABI_AMD64VECTORbefor compile on a RHEL7 x86_64...
changes config to only compie the bin_coff module, tahts all I need. it compuiles,...
chaged config to remove SVR4 and only comiple bin_coff which compiled, but kernel...
Rod Sheppard Rod Sheppard less than 1 minute ago Linux RHEL7.2 h-4.2# uname -a Linux...
slighlty newere version gets... ibcs-3.10-3.13.0.37.tgz sh-4.2# make make -C /lib/modules/3.10.0-327.13.1.el7.x86_64/build...
Won't compile on RHEL 7.2 [rsheppard@swint21-dev ~]$ uname -a Linux swint21-dev.cc.swin.edu.au...
ABI on RHEL7
did you re-instll the ibcs3 after patching the kernel/? -- reply above this line...
I could not get the ibcs 3.8 to compile on 64-bit linux, (Red Hat EL 5) Ended up...
Thanks Joe, you are correct, the SCO binary curses was using terminfo, which on SCO...
Thanks, I will do some investigation, on this. Correct me if I'm wrong, but as I...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...
I have ibcs-3_8 compiled and installed on RHEL 2.6.18-371.8.1.el5PAE running a COFF...