<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
don't know, we were using stunnel 4.52 and openssl 1.0.0.<div>the goal is to use stunnel 5.0.</div><div><br></div><div>right now i'm at the point, even if i move to stunnel 4.53, it starts crashing even without any arguments.</div><div>it should just print the help message, has nothing to do with openssl.</div><div><br></div><div>thanks for your reply !<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">CC: stunnel-users@stunnel.org<br>From: delaage.pierre@free.fr<br>Subject: Re: [stunnel-users] core dump when running stunnel on Arm based board<br>Date: Sun, 16 Dec 2012 12:08:09 +0100<br>To: ningji@hotmail.com<br><br><div>Hi, just a question : do you have an openssl lib matching your target platform ?with proper include files and libs accessible at compile time and run time ?</div><div>Pierre<br><br>Le 16 d�c. 2012 � 04:24, ning ji <<a href="mailto:ningji@hotmail.com">ningji@hotmail.com</a>> a �crit :<br><br></div><div></div><blockquote><div>
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir="ltr">
actually problem starts from 4.53.<div><br></div><div>1. build and run 4.52 is fine</div><div>2. 4.53 crashes</div><div>3. setup gdb, as long as i connect to target, it says cannot access memory 0.</div><div> after i set breakpoint at main() in stunnel.c, it get seg fault signal when i hit "continue" in gdb.</div><div><br></div><div>panic ...<br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">From: <a href="mailto:ningji@hotmail.com">ningji@hotmail.com</a><br>To: <a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br>Date: Sat, 15 Dec 2012 15:43:09 +0000<br>Subject: [stunnel-users] core dump when running stunnel on Arm based board<br><br>
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir="ltr">
Hi everyone, i'm new to this.<div><br></div><div>got a task to update stunnel from 4.52 to 5.00b1.</div><div><br></div><div>1. ./configure --host arm-none-linux-gnueabi --target arm-none-linux-gnueabi --prefix= </div><div> i compared the makefile with the one in our 4.52 code base, same.</div><div><br></div><div>2. build with</div><div> make -C stunnel CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm</div><div><br></div><div>3. scp to ARM board, run without arugments, core dump.</div><div> (the line number might be different as i was putting printfs. but as long as it enters parse_commandline, it crashes)</div><div><br></div><div> <span style="background-color:rgb(207, 217, 255);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10pt">[New LWP 867]</span></div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">Cannot access memory at address 0x70797263</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">(gdb) bt</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">#0 parse_commandline (name=0xbefdce29 "/opt/ultra/config/stunnel.conf", </span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">parameter=0xbefdce48 "-version") at options.c:1940</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">#1 0x0003ba04 in main_configure (</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">arg1=0xbefdce29 "/opt/ultra/config/stunnel.conf", </span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">arg2=0xbefdce48 "-version") at stunnel.c:199</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">#2 0x0003bd44 in main_unix (argv=<optimized out>, argc=<optimized out>)</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">at stunnel.c:135</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">#3 main (argc=3, argv=0xbefdcd24) at stunnel.c:110</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">my question is, it crashed when just entering parse_commandline( ),</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">the 2 arguments look fine to me.</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">How could this happen ?</span><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><br style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(207, 217, 255)">Many thanks !</span> </div>
<br>_______________________________________________
stunnel-users mailing list
<a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a></div></div> </div>
</div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>stunnel-users mailing list</span><br><span><a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a></span><br><span><a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a></span><br></div></blockquote></div></div> </div></body>
</html>