<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Well, after checking and rechecking my libs, they
are all built correctly as far as I can tell. I'm lost now. What's wierd
is "stunnel" will error, but "stunnel --help" still runs and displays the usage
and then exits. If I have a bogus config, it reads it, then errros.
Can anyone who knows the code take a look this bottom of an strace and
maybe point me to where the code is breaking, so I can try to find which library
I have is broke?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>....</FONT></DIV>
<DIV><FONT face=Arial size=2>_sysctl({{CTL_KERN, KERN_VERSION, 0, 20d91, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
2, 0xbf964acc, 31, (nil), 0}) = 0<BR>open("/etc/stunnel/stunnel.conf", O_RDONLY)
= 3<BR>fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0<BR>mmap2(NULL,
4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40016000<BR>read(3, "",
4096)
=
0<BR>close(3)
= 0<BR>munmap(0x40016000,
4096)
= 0<BR>socket(PF_FILE, SOCK_DGRAM,
0) = 3<BR>fcntl64(3,
F_SETFD, FD_CLOEXEC) =
0<BR>connect(3, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0<BR>mmap2(NULL,
8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40016000<BR>time([1135895751])
= 1135895751<BR>mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4027e000<BR>open("/usr/local/i386-tools/etc/localtime", O_RDONLY) =
4<BR>fstat64(4, {st_mode=S_IFREG|0644, st_size=101, ...}) = 0<BR>fstat64(4,
{st_mode=S_IFREG|0644, st_size=101, ...}) = 0<BR>mmap2(NULL, 4096,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4027f000<BR>read(4,
"TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0"..., 4096) =
101<BR>close(4)
= 0<BR>munmap(0x4027f000,
4096)
= 0<BR>stat64("/usr/local/i386-tools/etc/localtime", {st_mode=S_IFREG|0644,
st_size=101, ...}) = 0<BR>stat64("/usr/local/i386-tools/etc/localtime",
{st_mode=S_IFREG|0644, st_size=101, ...}) =
0<BR>stat64("/usr/local/i386-tools/etc/localtime", {st_mode=S_IFREG|0644,
st_size=101, ...}) = 0<BR>writev(2, [{"Inconsistency detected by ld.so:"...,
33}, {"dl-minimal.c", 12}, {": ", 2}, {"134", 3}, {": ", 2}, {"realloc", 7}, {":
", 2}, {"Assertion `", 11}, {"ptr == alloc_last_block", 23}, {"\' failed!\n",
10}], 10Inconsistency detected by ld.so: dl-minimal.c: 134: realloc: Assertion
`ptr == alloc_last_block' failed!<BR>) = 105<BR>exit_group(127)
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Brian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Michal.Trojnara@mobi-com.net
href="mailto:Michal.Trojnara@mobi-com.net">Michal Trojnara</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=stunnel-users@mirt.net
href="mailto:stunnel-users@mirt.net">stunnel-users@mirt.net</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 29, 2005 2:49
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [stunnel-users] stunnel
library inconsistencies</DIV>
<DIV><BR></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=093153808-29122005>Brian,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=093153808-29122005><FONT face=Arial
color=#0000ff size=2>Here is what I've found googling on your
problem:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><A
href="http://www.mail-archive.com/openssl-dev@openssl.org/msg11649.html"><FONT
face=Arial
size=2>http://www.mail-archive.com/openssl-dev@openssl.org/msg11649.html</FONT></A><BR><SPAN
class=093153808-29122005><FONT face=Arial color=#0000ff size=2>I
guess the problem is in your gcc or glibc.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093153808-29122005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=093153808-29122005><FONT face=Arial
color=#0000ff size=2>BTW: stunnel 4.08 does not use realloc (but openssl
does). 8-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093153808-29122005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=093153808-29122005><FONT face=Arial
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093153808-29122005><FONT face=Arial
color=#0000ff size=2> Mike</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=pl dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> <A
href="mailto:stunnel-users-bounces@mirt.net">stunnel-users-bounces@mirt.net</A>
[mailto:stunnel-users-bounces@mirt.net] <B>On Behalf Of </B>Brian
T<BR><B>Sent:</B> Thursday, December 29, 2005 1:40 AM<BR><B>To:</B>
stunnel-users@mirt.net<BR><B>Subject:</B> [stunnel-users] stunnel library
inconsistencies<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've been using stunnel 4.08 on an embedded Linux
platform for a while now, and am attempting to move to the 2.6 kernel from the
2.4.20, which has changed my building platform. I am cross-compiling
with libs and tools targeted for the embedded system, which is an i486 type
AMD Elan chip.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have tried 4.08, 4.14 and 4.15b, all with the
same result. Everything looks to compile properly, but when running stunnel I
get the following:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Inconsistency detected by ld.so: dl-minimal.c:
134: realloc: Assertion `ptr == alloc_last_block' failed!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>strace doesn't supply any helpful
information. I have tried building with and without tcpwrappers,
and have tried libssl 0.9.7g and 0.9.7i. Libssl v0.9.8a doesn't seem to
play very nice.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyone able to look at my config.log? It's
140k uncompressed, but will zip it up if needed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Brian</FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>stunnel-users
mailing
list<BR>stunnel-users@mirt.net<BR>http://stunnel.mirt.net/mailman/listinfo/stunnel-users<BR></BLOCKQUOTE></BODY></HTML>