Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - if_attach return SIGABORT: (4 Items)
   
if_attach return SIGABORT  
Hello All.

I've some difficulties with if_attach function :

On my HW, there are several network controlers that shall be initialised at the same time.

To do such, I dectect each ctrls and puts it's information in linked list.

To register my driver to the network stack, I need to call if_attach each time there are ctrls on my HW.

Basicaly, on my develepment system, I have 2 controlers.

Strange stuff : When I call 1 time with my first controler it register the device without any problem.

When I do an ifconfig I ca see my device registered.
When the second controler is registered, I'm catching a SIGABORT signal.
Attached, screenshot of debugger when it occurs.

Do you know why this append ?

Thank you very much.
Attachment: Image reveiving_SIGABORT.JPG 2.83 MB
Re: if_attach return SIGABORT  
I get those messages on slogger :

Feb 01 06:08:30    1    14     0 if_attach: ex_init: 16
Feb 01 06:08:30    5    21     0 run fault pid 622635 tid 2 signal 6 code 0 ip 0xb033b879 tmp/io-pkt-v4-
hcgvarlet124360136316929
Re: if_attach return SIGABORT  
On Fri, May 29, 2009 at 08:51:05AM -0400, Guillaume Varlet wrote:
> I get those messages on slogger :
> 
> Feb 01 06:08:30    1    14     0 if_attach: ex_init: 16
> Feb 01 06:08:30    5    21     0 run fault pid 622635 tid 2 signal 6 code 0 ip 0xb033b879 tmp/io-pkt-v4-
hcgvarlet124360136316929

pthread_mutex_init() returned EBUSY:

EBUSY 
	The given mutex was previously initialized and hasn't been
        destroyed. 


You need to use a separate struct ifnet for each interface.

-seanb
Re: if_attach return SIGABORT  
On Fri, May 29, 2009 at 06:24:30AM -0400, Guillaume Varlet wrote:
> Hello All.
> 
> I've some difficulties with if_attach function :
> 
> On my HW, there are several network controlers that shall be initialised at the same time.
> 
> To do such, I dectect each ctrls and puts it's information in linked list.
> 
> To register my driver to the network stack, I need to call if_attach each time there are ctrls on my HW.
> 
> Basicaly, on my develepment system, I have 2 controlers.
> 
> Strange stuff : When I call 1 time with my first controler it register the device without any problem.
> 
> When I do an ifconfig I ca see my device registered.
> When the second controler is registered, I'm catching a SIGABORT signal.
> Attached, screenshot of debugger when it occurs.
> 
> Do you know why this append ?

The stack probably panic()'d.  Check the sloginfo for
more information.  BTW the source for the stack is
in the networking repo in this project.

Regards,

-seanb