cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10459
Views
30
Helpful
9
Replies

Packet Tracer Segmentation Fault Ubuntu 18.04

noslin005
Level 1
Level 1

I have installed Cisco Packet Tracer 7.1.1 on Ubuntu 18.04. Every time I launch the application it closes and give me a message `Segmentation fault (core dumped)`.
Using the `gdb`, I went to the installation directory `/opt/pt/bin` and I typed the following commands:

    $gdb Packettracer
    $gdb > run
    $gdb > where
Which reports a problem with `libpng` and `libcrypto.so.1.0.0`

    Warning: libpng warning: iCCP: known incorrect sRGB profile
    Warning: libpng warning: iCCP: known incorrect sRGB profile
 
    Thread 1 "PacketTracer7" received signal SIGSEGV, Segmentation fault.
    0x00007ffff79f49a7 in CRYPTO_add_lock () from /usr/lib/x86_64-linux- gnu/libcrypto.so.1.0.0

How can i fix this?

9 Replies 9

dld2517
Level 1
Level 1

I originally had this issue when I first installed PT. I did some research on the Internet and found a download for an older SSL library I think that I linked in to libcrypt.so.1.0.0 and it was called l

 

I ran a debug trace on this and here is what the output was: libssl1.0.0_1.0.1t-1+deb8u3_amd64.deb and the instructions said to install it using dpkg by typing

dpkg -i libssl1.0.0_1.0.1t-1+deb8u3_amd64.deb && apt get install -f

 

Well this worked originally. But today after updating some dependencies it stopped working. The library is still linked properly, as ldd gives the following output:

 

    libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007ff033e84000)

 

Starting from /opt/pt/binPacketTracer7 gives the report about problems with PNG images and then a segmentation fault.  Using GDB to further isolate the error I get the following

 

 

Thread 1 "PacketTracer7" received signal SIGSEGV, Segmentation fault.
0x00007ffff7a4edb7 in CRYPTO_add_lock ()
   from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(gdb) where
#0  0x00007ffff7a4edb7 in CRYPTO_add_lock ()
   from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#1  0x00007ffff7af54c9 in X509_PUBKEY_get ()
   from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#2  0x000000000270dc06 in Ipc::CCep::verifySignature(char const*, unsigned int)
    ()
#3  0x0000000002a779cd in CScriptModule::deserialize(QDomNode&) ()
#4  0x0000000002a8c863 in CScriptModuleManager::readScriptModuleFromFile(QString const&) ()
#5  0x0000000002a8d5ae in CScriptModuleManager::addTemplateFromFile(QString const&) ()
#6  0x000000000329e5d9 in oldMain(int, char**) ()
#7  0x00007ffff0d37a87 in __libc_start_main (main=0x4d6770 <main>, argc=1,
    argv=0x7fffffffe208, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe1f8)
    at ../csu/libc-start.c:310
#8  0x00000000004de3d7 in _start ()

 

i'm looking for a solution as well, unfortunately, it seems libcrypto.so.1.0.0.0 has been depracated and nowhere to be found ... seems it could possess the heartbleed vulnerability

 

so, if anyone has a solution, i'm interested as well

 

i'm installing PacketTracer7.2 on Debian Stretch 9.4

I finally found the solution. I will send more later.

what's the solution ?

Well you have to download the old crypto library and link it to the new file names.

You also have to download icedtea7 package in order for it to work.

Iced tea is a package that uses java to integrate a java app with the browser. Honestly it is just a lot easier to forgot running it under Linux and just Windows. Cisco doesn’t care about supporting packet tracer under Linux or they would have fixed this error two years ago.


What did you do to resolve the issue?
I'm having the same problem using Debian10. We are using Debian 10 because it has Intel drivers needed for our labs NICs.

 


error:
$ /opt/pt/bin/PacketTracer7
Segmentation fault
cwc@42:~$
I've installed the follow:
apt install qtmultimedia5-dev libqt5webkit5-dev libqt5script5 libqt5scripttools5;
along with "libssl1.0.0_1.0.2l-1_bpo8+1_amd64.deb";

Thanks

You have to relink the qt5 files in the system libraries to the and also the libcrypt package needs to be relinked as well. There is another mode that the packet tracer application runs in. So you edit the actual script that executes the file.

I did all this in May and I have forgotten and didn’t take good notes. I ended up stepping through the debugger when the application was run and watched what library files were being called. Then I symlinked the libs to the ones I wanted.




Thank you.  could you provide your ldd and ls -l (ll) Please

 

When you relink the libraries  are they at /opt/pt/lib

This is my ldd on my Gentoo machine.  Which works with missing libraries.

******

cwc@ciclo /opt/pt/lib $ ldd /opt/pt/bin/PacketTracer7
/opt/pt/bin/PacketTracer7: /usr/lib64/libcrypto.so.1.0.0: no version information available (required by /opt/pt/bin/PacketTracer7)
linux-vdso.so.1 (0x00007ffe0bdbb000)
libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f713b160000)
libQtWebKit.so.4 => not found
libQtScriptTools.so.4 => not found
libQtScript.so.4 => not found
libQtSvg.so.4 => not found
libQtXml.so.4 => not found
libQtGui.so.4 => not found
libQtNetwork.so.4 => not found
libQtCore.so.4 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f713af40000)
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libstdc++.so.6 (0x00007f713ab38000)
libm.so.6 => /lib64/libm.so.6 (0x00007f713a7f0000)
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_s.so.1 (0x00007f713a5d8000)
libc.so.6 => /lib64/libc.so.6 (0x00007f713a218000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f713a010000)
libz.so.1 => /lib64/libz.so.1 (0x00007f7139df8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f713b598000)
cwc@ciclo /opt/pt/lib $ ll
total 48232
lrwxrwxrwx 1 root root 22 Nov 7 2016 libQt3Support.so -> libQt3Support.so.4.8.2
lrwxrwxrwx 1 root root 22 Nov 7 2016 libQt3Support.so.4 -> libQt3Support.so.4.8.2
lrwxrwxrwx 1 root root 22 Nov 7 2016 libQt3Support.so.4.8 -> libQt3Support.so.4.8.2
-rwxr-xr-x 1 root root 3113872 Nov 7 2016 libQt3Support.so.4.8.2
lrwxrwxrwx 1 root root 18 Nov 7 2016 libQtCore.so -> libQtCore.so.4.8.2
lrwxrwxrwx 1 root root 18 Nov 7 2016 libQtCore.so.4 -> libQtCore.so.4.8.2
lrwxrwxrwx 1 root root 18 Nov 7 2016 libQtCore.so.4.8 -> libQtCore.so.4.8.2
-rwxr-xr-x 1 root root 3055616 Nov 7 2016 libQtCore.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtGui.so -> libQtGui.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtGui.so.4 -> libQtGui.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtGui.so.4.8 -> libQtGui.so.4.8.2
-rwxr-xr-x 1 root root 11381296 Nov 7 2016 libQtGui.so.4.8.2
lrwxrwxrwx 1 root root 21 Nov 7 2016 libQtNetwork.so -> libQtNetwork.so.4.8.2
lrwxrwxrwx 1 root root 21 Nov 7 2016 libQtNetwork.so.4 -> libQtNetwork.so.4.8.2
lrwxrwxrwx 1 root root 21 Nov 7 2016 libQtNetwork.so.4.8 -> libQtNetwork.so.4.8.2
-rwxr-xr-x 1 root root 1359016 Nov 7 2016 libQtNetwork.so.4.8.2
lrwxrwxrwx 1 root root 20 Nov 7 2016 libQtScript.so -> libQtScript.so.4.8.2
lrwxrwxrwx 1 root root 20 Nov 7 2016 libQtScript.so.4 -> libQtScript.so.4.8.2
lrwxrwxrwx 1 root root 20 Nov 7 2016 libQtScript.so.4.8 -> libQtScript.so.4.8.2
-rwxr-xr-x 1 root root 2635944 Nov 7 2016 libQtScript.so.4.8.2
lrwxrwxrwx 1 root root 25 Nov 7 2016 libQtScriptTools.so -> libQtScriptTools.so.4.8.2
lrwxrwxrwx 1 root root 25 Nov 7 2016 libQtScriptTools.so.4 -> libQtScriptTools.so.4.8.2
lrwxrwxrwx 1 root root 25 Nov 7 2016 libQtScriptTools.so.4.8 -> libQtScriptTools.so.4.8.2
-rwxr-xr-x 1 root root 772944 Nov 7 2016 libQtScriptTools.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtSql.so -> libQtSql.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtSql.so.4 -> libQtSql.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtSql.so.4.8 -> libQtSql.so.4.8.2
-rwxr-xr-x 1 root root 267144 Nov 7 2016 libQtSql.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtSvg.so -> libQtSvg.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtSvg.so.4 -> libQtSvg.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtSvg.so.4.8 -> libQtSvg.so.4.8.2
-rwxr-xr-x 1 root root 358096 Nov 7 2016 libQtSvg.so.4.8.2
lrwxrwxrwx 1 root root 20 Nov 7 2016 libQtWebKit.so -> libQtWebKit.so.4.9.2
lrwxrwxrwx 1 root root 20 Nov 7 2016 libQtWebKit.so.4 -> libQtWebKit.so.4.9.2
lrwxrwxrwx 1 root root 20 Nov 7 2016 libQtWebKit.so.4.9 -> libQtWebKit.so.4.9.2
-rwxr-xr-x 1 root root 26150752 Nov 7 2016 libQtWebKit.so.4.9.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtXml.so -> libQtXml.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtXml.so.4 -> libQtXml.so.4.8.2
lrwxrwxrwx 1 root root 17 Nov 7 2016 libQtXml.so.4.8 -> libQtXml.so.4.8.2
-rwxr-xr-x 1 root root 278344 Nov 7 2016 libQtXml.so.4.8.2
cwc@ciclo /opt/pt/lib $

could u explain it more clearly and write the code too