All pastes #187032 Raw Copy code Copy link Edit

Unnamed

public unlisted text v1 · immutable
#187032 ·published 2006-09-30 18:55 UTC
rendered paste body

(gdb) print *funct_root
$5 = {links = {next = 129612, prev = 129592}, arg = 0x65726874, 
  funct = 0x316461, funct_ptr = 0}
(gdb) print *(hal_funct_entry_t*)( hal_shmem_base + 129612)
$6 = {links = {next = 129592, prev = 129740}, arg = 0xb7c600b0, 
  funct = 0xb7c80bd2 <calc_siggen>, funct_ptr = 130000}
(gdb) print *(hal_funct_entry_t*)( hal_shmem_base + 129592)
$7 = {links = {next = 129740, prev = 129612}, arg = 0x0, 
  funct = 0xb7cb3e6e <sample>, funct_ptr = 130840}
(gdb) print *(hal_funct_entry_t*)( hal_shmem_base + 129740)
$8 = {links = {next = 129612, prev = 129592}, arg = 0x65726874, 
  funct = 0x316461, funct_ptr = 0}
(gdb) cont
Continuing.

## Above here, it was running fine.  Then I ran
##     rtapi_app load pid
## and got the segfault:
Program received signal SIGSEGV, Segmentation fault.
0x00316461 in ?? ()
(gdb) up
#1  0xb7f4377b in thread_task (arg=0xb7c5cab0) at hal/hal_lib.c:2449
2449			funct_entry->funct(funct_entry->arg, thread->period);
(gdb) print *funct_root
$9 = {links = {next = 129612, prev = 129592}, arg = 0x65726874, 
  funct = 0x316461, funct_ptr = 0}
(gdb) print *(hal_funct_entry_t*)( hal_shmem_base + 129612)
$10 = {links = {next = 129592, prev = 129740}, arg = 0xb7c600b0, 
  funct = 0xb7c80bd2 <calc_siggen>, funct_ptr = 130000}
(gdb) print *(hal_funct_entry_t*)( hal_shmem_base + 129592)
$11 = {links = {next = 129740, prev = 129612}, arg = 0x0, 
  funct = 0xb7cb3e6e <sample>, funct_ptr = 130840}
(gdb) print *(hal_funct_entry_t*)( hal_shmem_base + 129740)
$12 = {links = {next = 129612, prev = 129592}, arg = 0x65726874, 
  funct = 0x316461, funct_ptr = 0}