Re: check this please???
- Posted by Bernie <xotron at PCOM.NET> Aug 18, 2000
- 483 views
On Fri, 18 Aug 2000 12:36:06 -0400, Paul <draegur at WSERV.COM> wrote: >Okay, I am having a tough time with this segmentation error problem. >To test something I wrote a very simple allocate and free program, I >am using safe.e in place of machine.e to test it with. This little >program >written on a linux (SuSe) platform caused a segmentation fault. Anyone >have a clue?? > >with trace >trace(1) >procedure main() > atom data > data = allocate(8) > free(data) >end procedure > >main() > >What exactly am I doing wrong here? This is a microcosm of the heart of >my world. What value is data returning ? Try declaring variable data outside the function and see if that makes any difference. Try allocate_low see if that makes any difference. If that works you may have a bad memory chip. Try running on a different PC. These are just ideas to try. Bernie