I encounter "segmentation fault" while running a 4GL program. I have no idea what is wrong after adding some codes to existing program and rerun.
This sort of problem is very had to debug. The one time I saw it, a programmer had executed a go to from an INPUT statment control block (which isn't a good idea). I'd start looking at INPUT and INPUT ARRAY statments.
You don't say, but I'll bet you're using the 4GL compiled and not the rapid development system, RDS. Place debugging statments in the code trying to narrow down where the code fails.
It has been a long time, but the two possibilities I can think of are;
1. An array that is too small (typically, they start with 0 rather than 1 and so it is often best to initialise the array to one more than the maximum.)
2. There is a funny updating the current record in a cursor. Although 4GL SHOULD keep track of the ID, it doesn't always do so and you may need to use a function with a name like GET_CURSOR_ID in the update statement.
I'm sorry that my answer is so woolly... I haven't had this problem for a long time and cannot remember exactly what caused it when I did, so those are just vague figments of my memory... Hopefully they will at least point you in the right direction.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.