<html><head></head><body><pre>Package: pgadmin3
Version: 1.22.1-2
Severity: important
Tags: patch

--- Please enter the report below this line. ---</pre><pre>pgadmin3 segfaults at starup in pgConn::GetStatus (db/pgConn.cpp:1011) when .pgadmin3 exists (minimal one pointing to localhost attached) and have a server connexion configured.</pre><pre>According to those threads [1][2], it seems that compiling with -fno-delete-null-pointer-checks on GCC6 corrects the problem.</pre><pre>Here is the backtrace:</pre><pre>gdb --quiet pgadmin3     </pre><pre>Reading symbols from pgadmin3...Reading symbols from /usr/lib/debug/.build-id/5f/5de51f2d0bf14d6b6f50a56a755a95b68b3512.debug...done.</pre><pre>done.</pre><pre>(gdb) run</pre><pre>Starting program: /usr/bin/pgadmin3 </pre><pre>[Thread debugging using libthread_db enabled]</pre><pre>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".</pre><pre>13:46:32: Warning: Mismatch between the program and library build versions detected.</pre><pre>The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),</pre><pre>and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).</pre><pre>13:46:33: Debug: Adding duplicate image handler for 'PNG file'</pre><pre><br></pre><pre>Program received signal SIGSEGV, Segmentation fault.</pre><pre>pgConn::GetStatus (this=0x0) at db/pgConn.cpp:1011</pre><pre>1011  db/pgConn.cpp: Aucun fichier ou dossier de ce type.</pre><pre>(gdb) bt</pre><pre>#0  pgConn::GetStatus (this=0x0) at db/pgConn.cpp:1011</pre><pre>#1  0x0000555555ac26e1 in pluginUtilityFactory::CheckEnable (this=0x555557137970, obj=0x5555572748d0) at frm/plugins.cpp:383</pre><pre>#2  0x0000555555db770a in menuFactoryList::CheckMenu (this=0x5555571165f0, <a href="mailto:obj=obj@entry">obj=obj@entry</a>=0x5555572748d0, menubar=0x5555571b7c20, toolbar=0x555557116610) at utils/factory.cpp:266</pre><pre>#3  0x00005555559d55ba in frmMain::setDisplay (<a href="mailto:this=this@entry">this=this@entry</a>=0x5555570c20b0, data=0x5555572748d0, <a href="mailto:props=props@entry">props=props@entry</a>=0x0, <a href="mailto:sqlbox=sqlbox@entry">sqlbox=sqlbox@entry</a>=0x0) at frm/events.cpp:600</pre><pre>#4  0x00005555559d9202 in frmMain::execSelChange (<a href="mailto:this=this@entry">this=this@entry</a>=0x5555570c20b0, item=..., currentNode=<optimized out>) at frm/events.cpp:512</pre><pre>#5  0x00005555559d9945 in frmMain::OnExpand (this=0x5555570c20b0, event=...) at frm/events.cpp:277</pre><pre>#6  0x00007ffff5b8e59e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0</pre><pre>#7  0x00007ffff5d14a87 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0</pre><pre>#8  0x00007ffff5d14b7b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0</pre><pre>#9  0x00007ffff5d14f2b in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0</pre><pre>#10 0x00007ffff5d14d33 in wxEvtHandler::DoTryChain(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0</pre><pre>#11 0x00007ffff5d15015 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0</pre><pre>#12 0x00007ffff68b46c8 in wxWindowBase::TryAfter(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0</pre><pre>#13 0x00007ffff692205b in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0</pre><pre>#14 0x00007ffff6939703 in wxGenericTreeCtrl::Expand(wxTreeItemId const&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0</pre><pre>#15 0x0000555555a41d92 in frmMain::frmMain (this=0x5555570c20b0, title=...) at frm/frmMain.cpp:239</pre><pre>#16 0x000055555575f02c in pgAdmin3::OnInit (this=0x555556565310) at pgAdmin3.cpp:786</pre><pre>#17 0x00007ffff5c22332 in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0</pre><pre>#18 0x00005555556f9ae2 in main (argc=<optimized out>, argv=<optimized out>) at pgAdmin3.cpp:126</pre><pre>(gdb) quit</pre><pre>A debugging session is active.</pre><pre><br></pre><pre> Inferior 1 [process 19364] will be killed.</pre><pre><br></pre><pre>Quit anyway? (y or n) y</pre><pre><br></pre><pre><br></pre><pre><br></pre><pre>I tried to modify debian/rules with:</pre><pre>override_dh_auto_build:</pre><pre>    $(MAKE) CFLAGS+="-g -fno-delete-null-pointer-checks" CXXFLAGS+="-g -fno-delete-null-pointer-checks"</pre><pre><br></pre><pre>But was not able to compile from source package cause of the following error:</pre><pre>/postgresql -I/usr/include/postgresql/9.6/server -I/usr/include/postgresql -DHAVE_CONNINFO_PARSE -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DEMBED_XRC -I/usr/include/libxml2 -I/usr/include/libxml2 -DHAVE_OPENSSL_CRYPTO -DLIBSSH2_OPENSSL  -g -O2 -fdebug-prefix-map=/home/landry/Private/pgadmin3-1.22.1=. -fstack-protector-strong -Wformat -Werror=format-security -g -fno-delete-null-pointer-checks -c -o libssh2/crypt.o libssh2/crypt.c</pre><pre>libssh2/crypt.c:70:25: error: field ‘h’ has incomplete type</pre><pre>     _libssh2_cipher_ctx h;</pre><pre><br></pre><pre><br></pre><pre>[1]: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1335043">https://bugzilla.redhat.com/show_bug.cgi?id=1335043</a></pre><pre>[2]: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1344917#c1">https://bugzilla.redhat.com/show_bug.cgi?id=1344917#c1</a>

--- System information. ---
Architecture: 
Kernel:       Linux 4.8.0-1-amd64

Debian Release: stretch/sid
  500 unstable        httpredir.debian.org 
  500 testing         httpredir.debian.org 
  500 stable          security.debian.org 
  500 stable          repo.skype.com 
  500 stable          httpredir.debian.org 
  101 experimental    httpredir.debian.org 

--- Package information. ---
Depends                    (Version) | Installed
====================================-+-================
pgadmin3-data           (= 1.22.1-2) | 1.22.1-2
libc6                      (>= 2.15) | 
libgcc1                   (>= 1:3.0) | 
libpq5                     (>= 8.4~) | 
libssl1.0.2              (>= 1.0.2d) | 
libstdc++6                  (>= 5.2) | 
libwxbase3.0-0v5     (>= 3.0.2+dfsg) | 
libwxgtk3.0-0v5      (>= 3.0.2+dfsg) | 
libxml2                   (>= 2.7.4) | 
libxslt1.1               (>= 1.1.25) | 
zlib1g                  (>= 1:1.1.4) | 


Recommends             (Version) | Installed
================================-+-===========
pgagent                          | 3.4.1-3
postgresql-client                | 9.6+177


Suggests                (Version) | Installed
=================================-+-===========
postgresql-contrib                | </pre><div><br></div><div><span><pre>-- <br></pre><div><table height="86" cellspacing="0" width="629" border="0" cellpadding="0"><tbody><tr>
<td style="width:250.0pt;border-top:solid #b8cce4 1.0pt;border-left:solid #b8cce4 1.0pt;border-bottom:none;border-right:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="333">
<p style="margin-bottom:12.0pt"><b><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366ff">Landry MINOZA</span></b><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666"><br>
MGI Sud-Ouest<i><br>Chef de projet technique Linux et réseaux</i><br>
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366ff">E-mail : </span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><a href="mailto:lminoza@mgi.fr" target="_blank"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif"">lminoza@mgi.fr</span></a></span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d"></span></p>
</td>
<td style="width:200.0pt;border:none;border-top:solid #b8cce4 1.0pt;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="267">
<p style="text-align:right" align="right"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366ff"> Tél :</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d">
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">01 45 44 54 10</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366ff"><br>
</span></p>
</td>
</tr>
<tr>
<td colspan="2" style="border:none;border-left:solid #b8cce4 1.0pt;padding:0cm 5.4pt 0cm 5.4pt" valign="top">
<p><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366ff">MGI France :</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d"> </span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">11 rue de Téhéran - 75008 Paris
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#b8cce4">|
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">RCS: Paris B 382 770 584
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#b8cce4">|</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d">
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><a href="http://www.mgi.fr" target="_blank"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif"">www.mgi.fr</span></a></span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><br>
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366ff">MGI SO :</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d">
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">281 route d'Espagne - 31100 Toulouse
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#b8cce4">|
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">RCS: Toulouse B 421 125 816
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#b8cce4">|</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d">
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><a href="http://www.mgi.fr" target="_blank"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif"">www.mgi.fr</span></a></span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><br>
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366ff">MGI Suisse :</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d">
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">5 avenue de Rothorn - CH3960 Sierre
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#b8cce4">|
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">TVA 517-269
</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#b8cce4">|</span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1f497d">
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1f497d"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif""><a href="http://www.mgiconsultants.ch" target="_blank">www.mgiconsultants.ch</a></span></span></p><span style="display: inline !important;"> </span></td></tr></tbody></table></div></span></div></body></html>