From: Werner S. <sm...@ia...> - 2008-02-01 16:11:34
|
Hi Torquil, same problem for me here - I'll have a look into this. Thanks, Werner On 01.02.2008, at 15:28, Torquil Macdonald S=F8rensen wrote: > Hello, just disregard this if it is the same as the other thread =20 > with a > segfault and if it does not provide any more information. > > I get a segfault I get when running the C-example no.1 with the "-=20 > save" > option: > > x01c -dev xwin -np -save 1.psc > > If I comment out plend() in the example, it works fine. I'm using =20 > todays SVN > version, built with debugging symbols. The examples are also built =20 > with > debugging, but gdb gives me no output more than: > > Program received signal SIGSEGV, Segmentation fault. > 0xb7cdd33c in free () from /lib/i686/cmov/libc.so.6 > > Valgrind gives lots of output, but it is the last one that seems most > interesting: > > =3D=3D32061=3D=3D Invalid free() / delete / delete[] > =3D=3D32061=3D=3D at 0x402465C: free (vg_replace_malloc.c:323) > =3D=3D32061=3D=3D by 0x40417EF: c_plend1 (plcore.c:1823) > =3D=3D32061=3D=3D by 0x40411FB: c_plend (plcore.c:1759) > =3D=3D32061=3D=3D by 0x804904D: main (x01c.c:210) > =3D=3D32061=3D=3D Address 0x430d4f8 is 0 bytes inside a block of size = =20 > 131,072 free'd > =3D=3D32061=3D=3D at 0x402465C: free (vg_replace_malloc.c:323) > =3D=3D32061=3D=3D by 0x40417EF: c_plend1 (plcore.c:1823) > =3D=3D32061=3D=3D by 0x8048F3B: main (x01c.c:184) > > There seems to be some problem with freeing memory. It looks like =20 > the error > message in sec.4.3.4 in the valgrind manual, here: > > http://valgrind.org/docs/manual/mc-manual.html#mc-manual.errormsgs > >> =46rom what I can understand (which may be wrong) it is related to =20= >> freeing the > memory for plsc->plbuf_buffer, but after looking through the code I =20= > think it > will be too complicated for me to track down the error. > > Best regards, > Torquil S=F8rensen > > = ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: sm...@ia... web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 |