Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

0.6.6: sshd dumps core with an assertion failure

 
Post new topic   Reply to topic    Syllable Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Mask of Destiny



Joined: 16 Sep 2007
Posts: 47

PostPosted: Fri May 15, 2009 5:56 pm    Post subject: 0.6.6: sshd dumps core with an assertion failure Reply with quote

sshd from OpenSSH 5.2p1 build successfully (well with the fix that was required to get it to build on 0.6.5 anyway), but when run it dumps core with an assertion failure. Forcing openssh to use IPV4 only seems to avoid this crash which is an acceptable workaround since Syllable doesn't support IPV6; however on 0.6.5 not disabling IPV6 didn't result in a crash.

[code:1]sshd: ../sysdeps/posix/getaddrinfo.c:2031: getaddrinfo: Assertion `((((__const uint32_t *) (sin6->sin6_addr.in6_u.u6_addr32))[0] == 0) && (((__const uint32_t *) (sin6->sin6_addr.in6_u.u6_addr32))[1] == 0) && (((__const uint32_t *) (sin6->sin6_addr.in6_u.u6_addr32))[2] == (__extension__ ({ register unsigned int __v, __x = (0xffff); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); __v; }))))' failed.
Aborted (core dumped)[/code:1]
Here's the relevant portion of the kernel log:
[code:1]
0:sshd::sshd : 0 -> a00584a1
0:sshd::sshd : libc.so.2 + 000264a1 -> kill + 00000011
0:sshd::sshd : 1 -> a00592ec
0:sshd::sshd : libc.so.2 + 000272ec -> abort + 0000009c
1:sshd::sshd : 2 -> a0052215
1:sshd::sshd : libc.so.2 + 00020215 -> __assert_fail + 000000b5
1:sshd::sshd : 3 -> a00d1ccd
1:sshd::sshd : libc.so.2 + 0009fccd -> getaddrinfo + 0000089d
0:sshd::sshd : 4 -> 800397d4
0:sshd::sshd : sshd + 000397d4 -> initialize_server_options + 00000354
0:sshd::sshd : 5 -> 80039884
0:sshd::sshd : sshd + 00039884 -> initialize_server_options + 00000404
0:sshd::sshd : 6 -> 80039fdc
0:sshd::sshd : sshd + 00039fdc -> fill_default_server_options + 0000072c
0:sshd::sshd : 7 -> 80034b7d
0:sshd::sshd : sshd + 00034b7d -> main + 00000a3d
0:sshd::sshd : 8 -> a0046c89
0:sshd::sshd : libc.so.2 + 00014c89 -> __libc_start_main + 000000b9
0:sshd::sshd : 9 -> 80032ea5
0:sshd::sshd : sshd + 00032ea5 -> _start + 00000025
0:sshd::sshd : verify_area() got kernel address 00000000
0:sshd::sshd : Killed by signal 6[/code:1]
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2204
Location: Friesland

PostPosted: Thu Jan 14, 2010 2:45 pm    Post subject: Reply with quote

sshd works on the current dev build, but by circumventing the crash.
Back to top
View user's profile Send private message Visit poster's website
doneill



Joined: 16 Oct 2009
Posts: 40

PostPosted: Mon Oct 25, 2010 1:29 am    Post subject: Reply with quote

hmm, looks like a libc problem possibly with ipv4 compatible ipv6 mappings, which would make sense:

::ffff:193.155.34.98 = obsolete
::54.98.6.41 = ipv4 compatible ipv6

in the case of the latter, the program treats and manipulates the socket as though it really is an ipv6 socket, even using ipv6 storage types, then the lower levels simply run it over v4

i wonder if this is the job of the c library or the stack code?

which -should- it be?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Bugs All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group