bugLiquid War 6 - Bugs: bug #41184, Segmentation fault in...

 
 

bug #41184: Segmentation fault in lw6net_if_guess_local() with tunnel interfaces

Submitted by:  Bernard Cafarelli <voyageur>
Submitted on:  Fri 10 Jan 2014 10:36:05 AM UTC  
 
Category: EngineSeverity: 3 - Normal
Status: Ready For TestPrivacy: Public
Assigned to: Christian Mauduit <ufoot>Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 10 Jan 2014 12:15:39 PM UTC, comment #1:

Thanks for this complete report. I've committed the fix in current GIT develop branch : 71ec55c94bd094430fe809c9391678720cf91b92

Have a nice day,

Christian.

Christian Mauduit <ufoot>
Project AdministratorIn charge of this item.
Fri 10 Jan 2014 10:36:05 AM UTC, original submission:

In addition to standard eth0 interface, on my system I also have an openvpn tunnel interface tun0

This makes lw6net_if_guess_local() segfault (at startup):
Program received signal SIGSEGV, Segmentation fault.
0x0000000000512238 in lw6net_if_guess_local () at net-if.c:124
124 family = ifa->ifa_addr->sa_family;
(gdb) p ifa
$1 = (struct ifaddrs *) 0x9521f8
(gdb) p ifa->ifa_addr
$2 = (struct sockaddr *) 0x0
(gdb) p *ifa
$3 = {ifa_next = 0x9522b0, ifa_name = 0x95229c "tun0", ifa_flags = 69841,
ifa_addr = 0x0, ifa_netmask = 0x0, ifa_ifu = {ifu_broadaddr = 0x0,
ifu_dstaddr = 0x0}, ifa_data = 0x952814}

I modified the test to first check ifa_addr before the family itself, and the game now works fine

(tested On Gentoo amd64 with version 0.2.3551)

Bernard Cafarelli <voyageur>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ufoot (Posted a comment)
  • -unavailable- added by voyageur (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 10 Jan 2014 12:21:16 PM UTCufootCategoryNone=>Engine
      StatusNone=>Ready For Test
      Assigned toNone=>ufoot
    Fri 10 Jan 2014 10:36:05 AM UTCvoyageurAttached File-=>Added liquidwar6-tun_interfaces.patch, #30242

    Back to the top


    Powered by Savane 3.1-cleanup