From: Xiang Y. <xy...@pr...> - 2003-04-30 17:15:39
|
Hello, redhat linux ads/glibc 2.2.4/gcc2.96/pthread I'm using Oracle call interface apis in my app which is hard for me to = trace. I have two questions: 1. there is a malloc(24) (// any constant) crashs the app outside = valgrind, in valgrind however, it's just fine=20 :( . any more clues on this? =20 2. I have two errors in following oci call: =3D=3D13548=3D=3D Thread 4: =3D=3D13548=3D=3D Invalid write of size 4 =3D=3D13548=3D=3D at 0x81FFE55: kpughndl0 (in..) =3D=3D13548=3D=3D by 0x82071A3: kpughndl (in ..) =3D=3D13548=3D=3D by 0x81DBFBA: kpubndp0 (in ..) =3D=3D13548=3D=3D by 0x8077F74: OCIBindByPos (in .. /* = &pocibind[0,1..n-1] as a param of this call*/ ) =3D=3D13548=3D=3D Address 0x41B6BA44 is 8 bytes after a block of size = 4 alloc'd =3D=3D13548=3D=3D at 0x400485EC: __builtin_vec_new = (vg_clientfuncs.c:156) =3D=3D13548=3D=3D by 0x8062AE8: myapp::prepareparams(void) = (myapp.cpp:1270 /* OCIBind **pocibind =3D new OCIBind*[n]; */) ... Can I have more insight on "Address 0x41B6BA44 is 8 bytes after a block = of size 4 alloc'd" ? TIA |