Re: debugger

2006-10-13 Thread Ken Williams
gdb on /usr/bin/perl (or wherever it is) to find out what line of the embedded C code it's croaking on, dump structs, etc. -Ken > -Original Message- > From: Karthika Arunkumar [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 07, 2006 1:27 PM > To: inline@perl.org &g

Re: debugger

2006-10-11 Thread Karthika Arunkumar
hika Arunkumar [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 07, 2006 1:27 PM > To: inline@perl.org > Subject: debugger > > HI all, > I am using inline CPP in my perl program. > I get a segmentation fault and I am not able to find from > which line of code > it occ

RE: debugger

2006-10-09 Thread Ken.Williams
rthika Arunkumar [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 07, 2006 1:27 PM > To: inline@perl.org > Subject: debugger > > HI all, > I am using inline CPP in my perl program. > I get a segmentation fault and I am not able to find from > which line of code >

Re: debugger

2006-10-09 Thread Steven Schubiger
On Sat, Oct 07, 2006 at 02:27:16PM -0400, Karthika Arunkumar wrote: > I am using inline CPP in my perl program. > I get a segmentation fault and I am not able to find from which line of code > it occurs. Can anyone suggest me a debugger. Could you provide some code that illustrates th

debugger

2006-10-07 Thread Karthika Arunkumar
HI all, I am using inline CPP in my perl program. I get a segmentation fault and I am not able to find from which line of code it occurs. Can anyone suggest me a debugger. thanks , kararu.

RE: segfaults and the perl debugger

2006-04-28 Thread Ira Woodhead
Solved... Apologies for the baffling mystery of the apparently correct code I posted. There were function pointers pointing at buggy things. Specifically I forgot to remove some INLINE_STACK_* macros and boy who knows what those things do to an internal non-stack-using function. Once I removed

RE: segfaults and the perl debugger

2006-04-28 Thread Ira Woodhead
able to malloc as many bytes as I want, given they are available? Of course, this only happens when not in the perl debugger. Anyway, I'm continuing but just though

RE: segfaults and the perl debugger

2006-04-28 Thread Ira Woodhead
s. Otherwise it returns without error. Also as I said, running it in the debugger returns without error. -- SV* _dx_merge( SV* isr0SV, SV* isr1SV, int flags, int interval ) { assert( SvROK( isr0SV ) ); assert( SvROK( isr1SV )

Re: segfaults and the perl debugger

2006-04-27 Thread Sisyphus
- Original Message - From: "Ira Woodhead" . . > > AV* array = newAV(); > av_push(array, newSViv(df)); > av_push(array, newSViv(cf)); > av_push(array, dxSV); > av_push(array, pxSV); > av_push(array, newSViv(lastdoc)); > av_push(array, newSViv(corpus_size - lastdoc)); > > //

RE: segfaults and the perl debugger

2006-04-27 Thread Ira Woodhead
o this point, then seg fault occurs // before caller can continue! return array; } If I run it under the debugger, everything seems fine. The lengths and strings all add up, no overflows to be seen. The strings inside dxSV and pxSV never are overflowed because SVGROW makes them more than long

RE: segfaults and the perl debugger

2006-04-27 Thread Ken.Williams
Yeah, I've seen this before, and it's very aggrivating. Probably has nothing to do with Inline, just C and perl. I'm guessing memory is just being initialized differently when you're running under the debugger. My only suggestion is to insert print statements and

segfaults and the perl debugger

2006-04-27 Thread Ira Woodhead
Hi guys, I'm working with Inline C and I have a segmentation fault that occurs in certain easily reproduced conditions. I can't seem to get any more specific error messages (such as where the damn thing is happening) because when I put it into the debugger, it doesn't happen! E

Inline-Java caused problem with debugger

2005-02-16 Thread Wilhelm Pastoors/Denic
Hi, yesterday I wrote that I ran into a problem which stopped my perl debugger. Here is a short quote of my code which caused the problem: use Inline Java => 'STUDY', STUDY => ['JMSEnqueue'] , SHARED_JVM => 1; sub new { my $class = shift; return JMSEnq

RE: Using the Java debugger

2003-12-01 Thread Williams, Ken
htm -Original Message- From: Williams, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 11:05 AM To: 'Patrick LeBoutillier' Cc: Inline mailing list (E-mail) Subject: RE: Using the Java debugger Hmm, it looks like this may not be an Inline::Java problem - even my He

RE: Using the Java debugger

2003-12-01 Thread Williams, Ken
onday, December 01, 2003 10:50 AM To: 'Patrick LeBoutillier' Cc: Inline mailing list (E-mail) Subject: RE: Using the Java debugger Hi Patrick, That technique seems to have worked pretty well. Unfortunately I'm still working on investigating the same bug, and I think I need a new tool.

RE: Using the Java debugger

2003-12-01 Thread Williams, Ken
ing list (E-mail) Subject: RE: Using the Java debugger Ken, I've never really used the Java debugger so I'm no expert, but try this patch and see if it can get you by for now. If it works I'll make an option out of it. It basically changes Inline::Java so that it starts the deb

RE: Using the Java debugger

2003-11-27 Thread Patrick LeBoutillier
Ken, I've never really used the Java debugger so I'm no expert, but try this patch and see if it can get you by for now. If it works I'll make an option out of it. It basically changes Inline::Java so that it starts the debugger instead of a plain JVM. You will probably n

RE: Using the Java debugger

2003-11-26 Thread Williams, Ken
Here's a minor suggestion: in order to get better debugging (like being able to dump structures of local variables in the current frame), jdb suggested that I recompile with the -g switch. It didn't work until I blew away the _Inline/ directory though, because Inline::Java kept using the older ver

RE: Using the Java debugger

2003-11-26 Thread Williams, Ken
Hi Patrick, Yeah, this basically works - I'm able to run under the debugger and set a breakpoint in my code. I upped STARTUP_DELAY to a couple thousand seconds. I had to switch over from JNI mode to client-server mode, and I have no idea whether it's feasible in general to debug java

Re: Using the Java debugger

2003-11-26 Thread Jason E. Stewart
"Williams, Ken" <[EMAIL PROTECTED]> writes: > Thanks, Patrick, I'll give it a try. > > It'll be a little difficult because my main script calls various Java > methods in semi-complicated ways, so I'll essentially have to replicate my > entire perl script in Java. > > I wonder if there would be a

RE: Using the Java debugger

2003-11-26 Thread Williams, Ken
Inline mailing list (E-mail) Subject: Re: Using the Java debugger Ken, That's a great question. There's probably no way to run everything through the Java debugger, but it should be fairly straitforward to run the generated Java code outside of Inline::Java. Your Java classes shou

Re: Using the Java debugger

2003-11-26 Thread Patrick LeBoutillier
Ken, That's a great question. There's probably no way to run everything through the Java debugger, but it should be fairly straitforward to run the generated Java code outside of Inline::Java. Your Java classes should be in _Inline/lib/auto//, being a mangled form of your script na

Using the Java debugger

2003-11-25 Thread Williams, Ken
Hi, I've got some Inline::Java code that's throwing itself at the mercy of the infinite loop gods. Is there any way to use the Java debugger (jdb) or similar to step through the java portions? Or guidelines for figuring out how to do it manually with the stuff in the _Inline/ directory? -Ken

Re: [Java] debugger infinite loop and AUTOSTUDY

2003-08-26 Thread Nicholas Clark
On Tue, Aug 26, 2003 at 11:45:56AM +0530, Jason E. Stewart wrote: > My current problem (in this email anyway) is that I like using the > Perl debugger to explore how new modules work, but when I try my code > with AUTOSTUDY in the debugger I get stuck in an infinite loop. If I >

[Java] debugger infinite loop and AUTOSTUDY

2003-08-26 Thread Jason E. Stewart
Hi, I'm in need of a Java/Perl solution, and have been trying Java.pm but hit some snags, and am now looking at Inline::Java - it's very impressive. My current problem (in this email anyway) is that I like using the Perl debugger to explore how new modules work, but when I try my