<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'>
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="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: ningji@hotmail.com<br>To: stunnel-users@stunnel.org<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
stunnel-users@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</div></div> </div></body>
</html>