From: Vimal R. <vim...@ya...> - 2003-04-25 23:10:01
|
Hi, I am getting an Abort signal when I run valgrind on GNU smalltalk. The problem (I think) seems to be with the signal handlers. GNU Smalltalk sets its own signal handlers. After reading the documentation (2.13.5 Signals), I feel the problem is occurring after valgrind catches the signal, but the return back to the client code's handler bombs. Here is the output of valgrind : /vimal/gst-linux-x86> valgrind --trace-signals=yes --error-limit=no ./gst ../smalltalk-2.1/tests/sets.st See attached file : gst_output I have included the program output separately at the end. The combined output (if it helps to better see the sequence of events): See attached file: combined_output Here is the client signal hanlder code (just included the important functions) : See attached file : gst_signal_handler_code Here is a look at the dynamic dependencies of gst: /vimal/gst-linux-x86> ldd ./gst libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libdl.so.2 => /lib/libdl.so.2 (0x4002d000) libreadline.so.4 => /usr/lib/libreadline.so.4 (0x40030000) libtermcap.so.2 => /lib/libtermcap.so.2 (0x40056000) libgmp.so.3 => /usr/lib/libgmp.so.3 (0x4005a000) libnsl.so.1 => /lib/libnsl.so.1 (0x40082000) libm.so.6 => /lib/i686/libm.so.6 (0x40097000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0x400ba000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Another important thing to note is this happens only when the garbage collector is invoked (I placed a command in the smalltalk file sets.st which forces garbage collection). If I run the same file (sets.st) without invoking garbage collection (GC) it runs perfectly. When the GC is invoked, there is surely some particular signal thrown around (there is some new memory allocated, cleaned up etc in the heap ) and I guess that is the one to look out for. I'm sorry, i'm not in a position to pin point the problem as I'm just a user of GNU Smalltalk. If you want to reproduce the problem, GNU Smalltalk-2.1 is there for download here : http://www.gnu.org/software/smalltalk/ Or I can send you the copy I'm using. Please let me know if you need any more diagnostic information. Thanks, Vimal ===== Vimal Reddy Graduate Student, ECE North Carolina State University Raleigh, NC Ph: (919) 836-8254 Web: http://www4.ncsu.edu/~vkreddy __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |