[Click] R: About element_error_hook

roberto.riggio at create-net.org roberto.riggio at create-net.org
Fri Sep 12 13:58:28 EDT 2008


A few more info on the problem:

Breakpoint 2, element_error_hook (val=0xbfa9ccb8) at ../lib/error.cc:739
739	element_error_hook(int, VA_LIST_REF_T val)
(gdb) step
741	  const Element *e = va_arg(VA_LIST_DEREF(val), const Element *);
(gdb) step
742	  if (e)
(gdb) print e
$23 = (const class Element *) 0x824e7a8
(gdb) print e->declaration()
Cannot access memory at address 0x726372c7
(gdb) print *e
$24 = {_vptr.Element = 0x72637273, static nelements_allocated = 54, static PORTS_0_0 = "\000", static PORTS_0_1 = "\000\000\000", 
  static PORTS_1_0 = "\000\000\000", static PORTS_1_1 = "\000", static PORTS_1_1X2 = "\000\000\000\000\000", static AGNOSTIC = "\000", 
  static PUSH = "\000", static PULL = "\000", static PUSH_TO_PULL = "\000\000\000", static PULL_TO_PUSH = "\000\000\000", 
  static PROCESSING_A_AH = "\000\000\000\000", static COMPLETE_FLOW = "\000\000\000", _ports = {0x6f662f32, 0x72617772}, _inline_ports = {{_e = 0x726564, 
      _port = 24}, {_e = 0x19, _port = 1}, {_e = 0x20, _port = 30}, {_e = 0x824e8c0, _port = 90}}, _nports = {25, 1}, _router = 0x10, _eindex = 13}
 

----- "Roberto Riggio" <roberto.riggio at create-net.org> ha scritto:

> Hi,
> 
> a question for the core developer. I'm trying to track down a bug in
> my code and
> at some point I get a segmentation fault with the following details:
> 
> [Switching to Thread 0xb7c776c0 (LWP 26846)]
> 0x0819a483 in element_error_hook (val=0xbfe6c898) at
> ../lib/error.cc:743
> 743	    return e->declaration();
> 
> In which situation is element_error_hook called and by who (The method
> declaration is not
> overridden by my element).
> 
> R.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


-- 
--------------------------------------------------------
Roberto Riggio, PhD

CREATE-NET
Via alla Cascata 56/C 
38100 Trento (Italy)

E-mail: roberto.riggio at create-net.org
HomePage: http://disi.unitn.it/~riggio/

Tel: +39.0461.314.960
Fax: +39.0461.314.972
--------------------------------------------------------


More information about the click mailing list