On 2010-05-24 22:04 +0100, Hazen Babcock wrote: > Leo wrote: >> On 2010-05-24 21:03 +0100, Hazen Babcock wrote: >>> Are you getting any sort of error message? A backtrace? Are multiple >>> threads trying to run your code at the same time? > >> >> I don't why I didn't get a backtrace even when running lisp in gdb. >> >> What I observed is this: >> >> 1. If I start lisp in terminal, and run the test code in it, it works, >> no crash, a few drivers like qtwidget xcairo etc. all work fine. >> >> 2. If I use slime to connect to it, and run the test code in slime, it >> starts a new thread, if I hit SPC on the plot window the whole thing >> goes down - seg fault. > > So in slime your code runs fine, updating the plot, etc, but once it is > done and you press the space bar everything crashes? However, if you do > the same thing from lisp in the terminal the lisp process continues to > run after the space bar is pressed?
Yes, that's correct. > > Could you try to simplify it to the minimal number of instructions for > bad results? For example, does this also crash? > > (plsdev *plot-device*) > (plinit) > (plend) > > This is a long shot, but does using (plend1) instead work? I am running 'Clozure Common Lisp Version 1.5-r13736M (LinuxX8664)!' This crashes lisp: (progn (plsdev "qtwidget") (plinit) (plclear) (plend1)) Requires two runs and prints this on the terminal (with plend only one run and segfault): ? WARNING: QApplication was not created in the main() thread. *** glibc detected *** /users/b/leo/devel/ccl/lx86cl64: double free or corruption (!prev): 0x000000000072dd00 *** ======= Backtrace: ========= /lib64/libc.so.6[0x7fa2e2971af8] /lib64/libc.so.6(cfree+0x76)[0x7fa2e29736e6] /usr/lib64/libX11.so.6(XFree+0x9)[0x7fa2dc897199] /usr/lib64/libXi.so.6(XCloseDevice+0x8d)[0x7fa2ddc7fabd] /usr/lib64/libQtGui.so.4[0x7fa2df210966] /usr/lib64/libQtGui.so.4(_ZN12QApplicationD0Ev+0x5ab)[0x7fa2df1bfa4b] /users/b/leo/devel/plplot/lib/plplot5.9.5/driversd/qt.so(_Z10closeQtAppv+0x78)[0x7fa2dfeb9558] /users/b/leo/devel/plplot/lib/plplot5.9.5/driversd/qt.so(_Z17plD_tidy_qtwidgetP8PLStream+0x7e)[0x7fa2dfeb96fb] /users/b/leo/devel/plplot/lib/libplplotd.so.9.7.0(plP_tidy+0x99)[0x7fa2e16cf69b] /users/b/leo/devel/plplot/lib/libplplotd.so.9.7.0(c_plend1+0x1f)[0x7fa2e16d5111] /users/b/leo/devel/ccl/lx86cl64(_SPffcall+0x7a)[0x411a3a] ======= Memory map: ======== 00012000-00014000 rwxp 00000000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 00015000-00016000 rwxp 00015000 00:00 0 00400000-0042b000 r-xp 00000000 00:26 145393 /users/b/leo/devel/ccl/lx86cl64 0062a000-0062b000 r-xp 0002a000 00:26 145393 /users/b/leo/devel/ccl/lx86cl64 0062b000-0062c000 rwxp 0002b000 00:26 145393 /users/b/leo/devel/ccl/lx86cl64 0062c000-008b8000 rwxp 0062c000 00:00 0 [heap] 40036000-404fe000 rwxp 40036000 00:00 0 40a13000-40c77000 rwxp 40a13000 00:00 0 40efc000-413c4000 rwxp 40efc000 00:00 0 41dc0000-42288000 rwxp 41dc0000 00:00 0 300000000000-300000209000 r-xp 00002000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 300000209000-30000020a000 rwxp 0020b000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 30000020a000-300000997000 r-xp 0020c000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 300000997000-300000998000 rwxp 00999000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 300000998000-300000c09000 r-xp 0099a000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 300000c09000-300040000000 ---p 300000c09000 00:00 0 300040000000-3000404c9000 rwxp 0113e000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 3000404c9000-302000000000 ---p 3000404c9000 00:00 0 302000000000-302000533000 rwxp 00c0b000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 302000533000-302002540000 rwxp 302000533000 00:00 0 302002540000-307c00000000 ---p 302002540000 00:00 0 307c00000000-307c0004b000 rwxp 307c00000000 00:00 0 307c0004b000-307e00000000 ---p 307c0004b000 00:00 0 307e00000000-307e0000a000 rwxp 01607000 00:26 145392 /users/b/leo/devel/ccl/lx86cl64.image 307e0000a000-307e3f800000 ---p 307e0000a000 00:00 0 307e3f800000-307e3f84b000 rwxp 307e3f800000 00:00 0 307e3f84b000-308000020000 ---p 307e3f84b000 00:00 0 7fa2d4000000-7fa2d4021000 rwxp 7fa2d4000000 00:00 0 7fa2d4021000-7fa2d8000000 ---p 7fa2d4021000 00:00 0 7fa2db870000-7fa2db8a5000 r-xs 00000000 08:03 118157 /var/run/nscd/dbKH1Nzs (deleted) 7fa2db8a5000-7fa2db90a000 r-xs 00000000 08:03 8509 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86-64.cache-2 7fa2db90a000-7fa2db97d000 r-xs 00000000 08:03 8435 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-x86-64.cache-2 7fa2db97d000-7fa2db9e2000 r-xs 00000000 08:03 8506 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86-64.cache-2 7fa2db9e2000-7fa2db9e5000 r-xp 00000000 08:05 154031 /usr/lib64/gconv/UTF-16.so 7fa2db9e5000-7fa2dbbe4000 ---p 00003000 08:05 154031 /usr/lib64/gconv/UTF-16.so 7fa2dbbe4000-7fa2dbbe5000 r-xp 00002000 08:05 154031 /usr/lib64/gconv/UTF-16.so 7fa2dbbe5000-7fa2dbbe6000 rwxp 00003000 08:05 154031 /usr/lib64/gconv/UTF-16.sAborted Leo ------------------------------------------------------------------------------ _______________________________________________ Plplot-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-general
