Re: Segmentation Violation on FREE?
Posted in 1998
In article <6j7olm$lv3@bgtnsc03.worldnet.att.net>, Idiot <rajam@worldnet.att.net> wrote: >I have a client that does the following: >sprintf(szSql,...); >PREPARE stmtID FROM :szSql; >DECLARE cursID FOR stmtID; >FREE stmtID; >OPEN cursID; >FETCH cursID; >CLOSE cursID; >FREE cursID; > >Every now and then they receive segmentation violations and Informix dump >core file. I am working with the core file as we speak. A first look made >us believe that the FREE along with a valloc call is responsible. Remember >I am still investigating. I am wondering if anyone seen this before? I know the 9.1 manual says the above method is legal, but just for laughs... Does the problem go away if the FREE stmtID is moved to after the CLOSE, or even the OPEN?