On Mon, Jun 1, 2009 at 11:44 AM, Sven Eckelmann sven.eckelmann@gmx.de wrote:
On Friday 29 May 2009 16:00:40 Nathan Wharton wrote:
@Nathan: Could you let me know if these patches work for you ? If so I'll commit them.
Regards, Marek
I set /proc/cpu/alignment to 4 (raise bus error) and I get a bus error:
Program received signal SIGBUS, Bus error. list_add_tail (new=0x29368, head=0x28819) at list-batman.c:68 68 __list_add( new, head->prev, (struct list_head *)head ); (gdb) l 63 * Insert a new entry before the specified head. 64 * This is useful for implementing queues. 65 */ 66 void list_add_tail( struct list_head *new, struct list_head_first *head ) { 67 68 __list_add( new, head->prev, (struct list_head *)head ); 69 70 head->prev = new; 71 72 }
Have you added the patches per hand? At this moment no patch I've made available in trunk. As you have run it with gdb, can you please append a full backtrace?
Best regards, Sven
I had to copy the patches out of the e-mail.
Here is the back trace: #0 list_add_tail (new=0x29bf0, head=0x298c9) at list-batman.c:68 #1 0x0000ee7c in _hna_global_add (orig_node=0x29f80, hna_element=0x29ba8) at hna.c:371 #2 0x0000f160 in hna_global_add (orig_node=0x29f80, new_hna=<value optimized out>, new_hna_len=<value optimized out>) at hna.c:529 #3 0x000099c8 in update_routes (orig_node=0x29f80, neigh_node=0x2a080, hna_recv_buff=0xbead1591 "\n\002\001", hna_buff_len=10) at batman.c:377 #4 0x0000c730 in update_orig (orig_node=0x29f80, in=0xbead157f, neigh=167772673, if_incoming=0x27678, hna_recv_buff=0xbead1591 "\n\002\001", hna_buff_len=-16723, is_duplicate=0 '\0', curr_time=3199014207) at originator.c:227 #5 0x0000a7e0 in batman () at batman.c:956 #6 0x000148d4 in main (argc=14, argv=0xbead1e14) at posix/posix.c:629
Looks like debugMalloc didn't return an aligned value for head. I'll step through that and see what I see.