new software on the server, ..., almost done

Carter Bullard carter at qosient.com
Thu Sep 6 22:29:18 EDT 2007


Hey Peter,
In your gdb, do an:
    (gdb) up
    (gdb) up

That should put you in the ArgusCopyRecordStruct() routine.
The question is "what is the value of rec->dsrs[i]"

    (gdb) print rec->dsrs[i]
    (gdb) print retn->dsrs[i]
    (gdb) print *user
    (gdb) print i

Carter


On Sep 6, 2007, at 10:12 PM, Peter Van Epp wrote:

> On Thu, Sep 06, 2007 at 07:36:00PM -0400, Carter Bullard wrote:
>> Grab the new client code that is on the server, but in this case you
>> should
>> be able to just run ra under gdb and we'll get some interesting
>> information?
>>
>> Carter
>>
>
> 	On clients.rc.52 (with .devel not ,devel this time :-)) the original
> file still dumps:
>
> ra3 -r /archive/argus3/com_argus.archive/2007/09/06/com_argus. 
> 2007.09.06.08.00.01.0.gz >t
> ra3(5848,0xa000ed88) malloc: *** vm_allocate(size=8421376) failed  
> (error code=3)
> ra3(5848,0xa000ed88) malloc: *** error: can't allocate region
> ra3(5848,0xa000ed88) malloc: *** set a breakpoint in szone_error to  
> debug
> Bus error (core dumped)
> test4:/var/log/argus vanepp$ ls /cores
> core.5848
> test4:/var/log/argus vanepp$ gdb ra3 /cores/core.5848
> GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19  
> 05:17:43 GMT 2006)
> Copyright 2004 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 "powerpc-apple-darwin"...Reading symbols  
> for shared libraries .. done
>
> Core was generated by `/usr/local/bin/ra3'.
> #0  0xffff8a74 in ___memcpy () at /System/Library/Frameworks/ 
> System.framework/PrivateHeaders/ppc/cpu_capabilities.h:189
> 189     /System/Library/Frameworks/System.framework/PrivateHeaders/ 
> ppc/cpu_capabilities.h: No such file or directory.
>         in /System/Library/Frameworks/System.framework/ 
> PrivateHeaders/ppc/cpu_capabilities.h
> (gdb) where
> #0  0xffff8a74 in ___memcpy () at /System/Library/Frameworks/ 
> System.framework/PrivateHeaders/ppc/cpu_capabilities.h:189
> #1  0x0005c804 in ArgusCopyRecordStruct (rec=0x405234) at ./ 
> argus_client.c:3359
> #2  0x0000979c in RaScheduleRecord (parser=0x288000,  
> argus=0x405234) at ./argus_util.c:840
> #3  0x00009c2c in ArgusHandleDatum (parser=0x288000,  
> input=0x405000, ptr=0x62922c, filter=0x299f40) at ./argus_util.c:919
> #4  0x00056e34 in ArgusReadStreamSocket (parser=0x288000,  
> input=0x405000) at ./argus_client.c:1638
> #5  0x0005713c in ArgusReadFileStream (parser=0x288000,  
> input=0x405000) at ./argus_client.c:1700
> #6  0x00003b44 in main (argc=3, argv=0xbffffbd4) at ./argus_main.c:238
> (gdb) print *rec
> No symbol "rec" in current context.
>
> 	If someone knows where to find szone_error on MacOS 10 that may be
> useful :-)
>
> (gdb) l szone_error
> No line number known for szone_error.
> (gdb)
>
> 	Meanwhile I'll try clients.rc.52 on the main machines and see if I  
> can
> get a similar dump on a less sensitive network where I may be able  
> to release
> the capture file.
>
> Peter Van Epp / Operations and Technical Support
> Simon Fraser University, Burnaby, B.C. Canada
>



More information about the argus mailing list