Doug MacEachern wrote:
> On Thu, 20 Sep 2001, Stas Bekman wrote:
>
>
>>Doug have you tried recently to run:
>>
>>./t/TEST -d
>>./t/TEST -run
>>
>>to debug tests? gdb just hangs in:
>>
>
> works fine for me.
>
>
>>setting ulimit to allow core files
>>ulimit -c unlimited
>> exec ./t/TEST -d
>>
>
> wonder if it is somehow related to the ulimit/exec. any difference if you
> comment out the call to $self->set_ulimit; in TestRun.pm?
I've tried. No change. And that really sucks as I need to run the
debugger and I cannot do it normally ;(
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40027000
write(3, "# WARNING: this file is generate"..., 509) = 509
close(3) = 0
munmap(0x40027000, 4096) = 0
pipe([3, 4]) = 0
fork() = 22040
close(4) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {0x40075490, [], 0x4000000}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
wait4(22040, GNU gdb 5.0mdk-11mdk Linux-Mandrake 8.0
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-mandrake-linux"...
[New Thread 1024 (LWP 22041)]
stracing on gdb gives a constant loop of:
ptrace(PTRACE_PEEKTEXT, 7730, 0x401f5ccc, [0]) = 0
ptrace(PTRACE_PEEKTEXT, 7730, 0x401f5cd0, [0]) = 0
ptrace(PTRACE_PEEKTEXT, 7730, 0x401f5cd4, [0]) = 0
where the 3rd argument is rotating the last three hex numbers in the
loop. After a while gdb gives up and just hangs
>>Another question. What's the simplest way to set a breakpoint from the
>>command line for something like mpxs_Apache__RequestRec_no_cache, what
>>'foo' should I set before so Apache::RequestRec will get bootstrapped?
>>
>
> any time i want to set a breakpoint in a function that is called after the
> server has started (sitting in accept()), i just wait for it to start then
> control-c to get (gdb) prompt, set the breakpoint and then (gdb) continue
Yeah, OK. Hope I will find some more deterministic way to do that :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]