From: Mathew Johnston Date: 2003-01-20T03:52:23+09:00 Subject: Re: Segfault > Can you try to make a simpler script which exhibit the problem (it's a > little complex actually) Well, I may be able to, but it's difficult to reproduce the problem. The problem appears to be thread related. I get a different exception each time, and sometimes a segfault. The exceptions seem to make no sense. For example, I have a line that calls "Time.now". The line generated the following exception in one instance: ../prioriline.rb:185:in `initialize': undefined method `now' for "UNEXPECTED Some packet":String (NameError) from ./prioriline.rb:246:in `new' from ./prioriline.rb:246:in `initialize' from ./prioriline.rb:245:in `initialize' from ./prioriline.rb:245:in `new' from ./prioriline.rb:245:in `initialize' from ./prioriline.rb:244:in `times' from ./prioriline.rb:244:in `initialize' from ./prioriline.rb:327:in `new' from ./prioriline.rb:327 Please note that the script has changed a little (I've added some comments) since I posted it, so the line numbers are a little different. However, the problem persists. Obviously, I can't, and have not, set "Time" to equal that string. The string is generated in another part of my program, however. I'd really like to help to identify the problem in the interpreter, but I'm not sure how. I have 0 experience debugging C apps. Is there anything else that I can do? Unfortunately, I will have to rewrite my app in another language if this can't be fixed (I obviously can't have it crashing all over the place). Is there a quick and easy way to see if the problem is in the pcap module through debugging? It's difficult to make a pcap stub that 'works' to try to eliminate the pcap module from the equation. Thanks, Mat.