[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

8646.0. "Receiving SIGSEGV in kdbx" by UTRTSC::WINDMEIJER () Thu Jan 30 1997 09:45

    
    
    Hello,
    
    I wonder if someone ever has written some extensions to the kdbx
    debugger and if all his extensions worked.
    
    I tried to make an extension and it crashed. The problem in my case
    was a record called vm_map_entry. As soon as I use this record kdbx
    on Digital UNIX v3.x crashes with a SIGSEGV error. On v4.0x kdbx
    starts to loop.
    
    The loop/crash occured is the kdbx library routine "check_fields".
    
    Here is the program:
    
    
    
    #include <stdio.h>
    #include <kdbx.h>
    
    FieldRec vm_map_entry_fields [] = {
      { ".vme_links.next", NUMBER, NULL, NULL },
      { ".vme_links.start", NUMBER, NULL, NULL },
      { ".vme_links.end", NUMBER, NULL, NULL },
    };
    #define NUM_FIELDS(sizeof(vm_map_entry_fields)/sizeof(vm_map_entry_fields[0]))
    
    
    main(argc, argv)
    int argc;
    char **argv;
    {
      fprintf(stderr,"%d\n",NUM_FIELDS);
      if(!check_fields("struct vm_map_entry", vm_map_entry_fields, NUM_FIELDS, NULL)
    ){
        field_errors(vm_map_entry_fields, NUM_FIELDS);
        quit(1);
       }
      fprintf(stderr,"done\n");
    }
    
    
    Anyone recognize this problem.
    
    
    
    Peter Windmeijer
    

    
    
T.RTitleUserPersonal
Name
DateLines