<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for the reply. So for now without upgrade to later version of code, I can just change the passert to pexpect, right?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Wei</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Paul Wouters <paul@nohats.ca><br>
<b>Sent:</b> Monday, August 30, 2021 11:59 AM<br>
<b>To:</b> Wei Huang <wei.hu.huang@oracle.com><br>
<b>Cc:</b> Swan@lists.libreswan.org <Swan@lists.libreswan.org><br>
<b>Subject:</b> [External] : Re: [Swan] Coredump happened when trying to shutdown</font>
<div> </div>
</div>
<div dir="auto">That can happen with mobike. Later versions changed the passert to pexpect to prevent the crash.<br>
<br>
<div dir="ltr">Sent using a virtual keyboard on a phone</div>
<div dir="ltr"><br>
<blockquote type="cite">On Aug 30, 2021, at 17:55, Wei Huang <wei.hu.huang@oracle.com> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">I run into a coredump is pluto:</span>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)">(gdb) bt
<div style="margin:0px">#0  0x00007ff6c556e387 in ssignal () from /lib64/libc.so.6</div>
<div style="margin:0px">#1  0x00007ff6c556fa78 in abort () from /lib64/libc.so.6</div>
<div style="margin:0px">#2  0x000055f6edcfdc00 in lswlog_passert_suffix (buf=buf@entry=0x7ffcaf3be800, where=...) at /tn-build/src/third_party/libreswan/libreswan-3.32/lib/libswan/lswlog_passert.c:32</div>
<div style="margin:0px">#3  0x000055f6edcee280 in lsw_passert_fail (where=..., fmt=fmt@entry=0x55f6edd4e079 "%s") at /tn-build/src/third_party/libreswan/libreswan-3.32/lib/libswan/lsw_passert_fail.c:31</div>
<div style="margin:0px">#4  0x000055f6edc7bca6 in delete_states_by_connection (c=c@entry=0x55f6ef5d3a48, relations=relations@entry=true) at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/state.c:1450</div>
<div style="margin:0px">#5  0x000055f6edc662a5 in release_connection (c=c@entry=0x55f6ef5d3a48, relations=relations@entry=true) at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/connections.c:152</div>
<div style="margin:0px">#6  0x000055f6edc6615f in delete_connection (c=0x55f6ef5d3a48, relations=relations@entry=true) at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/connections.c:219</div>
<div style="margin:0px">#7  0x000055f6edc6649a in delete_every_connection () at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/connections.c:354</div>
<div style="margin:0px">#8  0x000055f6edc7ce4f in exit_pluto (status=status@entry=PLUTO_EXIT_OK) at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/plutomain.c:1879</div>
<div style="margin:0px">#9  0x000055f6edccabe1 in whack_handle_cb (fd=<optimized out>, event=<optimized out>, arg=<optimized out>) at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/rcv_whack.c:644</div>
<div style="margin:0px">#10 0x00007ff6c5b198f4 in event_base_loop () from /lib64/libevent-2.0.so.5</div>
<div style="margin:0px">#11 0x000055f6edc82487 in call_server (conffile=0x55f6ef536068 "/home/talariuser/libreswan/etc/ipsec.conf") at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/server.c:1509</div>
<span style="margin:0px">#12 0x000055f6edc41773 in main (argc=<optimized out>, argv=<optimized out>) at /tn-build/src/third_party/libreswan/libreswan-3.32/programs/pluto/plutomain.c:1827</span><br>
</div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><br>
</span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px">frame 4, sr</span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px">  eroute_owner = 64,<br>
<span style="margin:0px">  routing = RT_UNROUTED,</span><br>
</span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px"><br>
</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px">The code in state.c:</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px"><br>
</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px">for (sr = &c->spd; sr != NULL; sr = sr->spd_next) {
<div style="margin:0px">passert(sr->eroute_owner == SOS_NOBODY);</div>
<div style="margin:0px">passert(sr->routing != RT_ROUTED_TUNNEL);</div>
}<br>
</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px"><br>
</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px">./pluto --version<br>
Libreswan 3.32 esp-hw-offload FORK PTHREAD_SETSCHEDPRIO NSS (IPsec profile) (native-PRF) DNSSEC SYSTEMD_WATCHDOG LIBCAP_NG XAUTH_PAM NETWORKMANAGER CURL(non-NSS)<br>
</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px"><br>
</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px">Anybody have idea is there a patch for this?</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px"><br>
</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px">Thanks,</span></span></div>
<div style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px"><br>
</span></span></div>
<span style="margin:0px; font-size:12pt; background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px">Wei</span></span></span><br>
</div>
<span>_______________________________________________</span><br>
<span>Swan mailing list</span><br>
<span>Swan@lists.libreswan.org</span><br>
<span><a href="https://urldefense.com/v3/__https://lists.libreswan.org/mailman/listinfo/swan__;!!ACWV5N9M2RV99hQ!fNIx398gkbpt_RfuHAOpDSMH50swjDkFJZemZVL3PYEOh-0FQ1MJ0QnBZGN7YlG4WA$">https://lists.libreswan.org/mailman/listinfo/swan</a></span><br>
</div>
</blockquote>
</div>
</body>
</html>