problem with latest sbridge and Linux (Lazarus)

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

problem with latest sbridge and Linux (Lazarus)

Post by snorkel » Mon 24 Feb 2014 17:10

I got the latest sbridge installed in Lazarus and I am having a issue.

When I drop a ssh or ssl client on the form it creates a AV and causes the IDE to crash.

I tried this on several versions of Lazarus all with the same result( 1.0.14 and 1.2RC2).

If the ssh or ssl client is already on the form on a existing project it will compile ok, however if you click on the component even once it causes the AV and the IDE crashes.

It's just a generic AV so I don't really know any more than that.

It works fine on win32/win64 with Lazarus.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: problem with latest sbridge and Linux (Lazarus)

Post by snorkel » Mon 24 Feb 2014 18:57

It appears to be a issue with the object inspector and the properties for the ssh and ssl client components. it only gets to the second property which is cipherclient I beleive and then the AV gets raised.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: problem with latest sbridge and Linux (Lazarus)

Post by snorkel » Mon 24 Feb 2014 21:20

I ran Lazarus through GDB and was able to get a trace, don't know if that will help or not, but it does show it's something with the object inspector.

program received signal SIGSEGV, Segmentation fault.
0x0000000000431dd4 in fpc_do_is ()
(gdb) bt
#0 0x0000000000431dd4 in fpc_do_is ()
#1 0x00007fffffffaf60 in ?? ()
#2 0x0000000001327a51 in SCCOLLECTIONEDITOR_TSCCOLLECTIONEDITOR_$__GETVALUE$$ANSISTRING ()
#3 0x00007fffffffaf80 in ?? ()
#4 0x00007fffe19ebb40 in ?? ()
#5 0x00007fffffffaf60 in ?? ()
#6 0x000000000084c3fe in GETVISUALVALUE (this=0x7fffdca24980) at propedits.pp:2618
#7 0x000000000084d774 in PROPDRAWVALUE (this=0x7fffdca24980, ACANVAS=0x7fffdce9b940, ARECT=..., ASTATE=0) at propedits.pp:2952
#8 0x000000000083ab8d in PAINTROW (this=0x7fffdd0a8330, AROW=1) at objectinspector.pp:2790
#9 0x000000000083b29f in DOPAINT (this=0x7fffdd0a8330, PAINTONLYCHANGEDVALUES=false) at objectinspector.pp:2896
#10 0x000000000083b5cb in PAINT (this=0x7fffdd0a8330) at objectinspector.pp:2940
#11 0x00000000006522b7 in PAINTWINDOW (this=0x7fffdd0a8330, DC=140736893303808) at include/customcontrol.inc:126
#12 0x0000000000635d90 in PAINTHANDLER (this=0x7fffdd0a8330, THEMESSAGE=...) at include/wincontrol.inc:4763
#13 0x000000000063a3bf in WMPAINT (this=0x7fffdd0a8330, MSG=...) at include/wincontrol.inc:6637
#14 0x00000000006521ed in WMPAINT (this=0x7fffdd0a8330, MESSAGE=...) at include/customcontrol.inc:106
#15 0x0000000000432b11 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#16 0x00000000006521a8 in ?? ()
#17 0x00007fffdd0a8330 in ?? ()
#18 0x0000000000000001 in ?? ()
#19 0x000000000000000f in ?? ()
#20 0x00007fffffffb788 in ?? ()
#21 0x00007fffdd0a8330 in ?? ()
#22 0x00007fffdd6e5aa0 in ?? ()
#23 0x00007fffffffbcc0 in ?? ()
#24 0x00000000024b5ce0 in ?? ()
#25 0x00007fffffffbcc0 in ?? ()
#26 0x0000000002a6f050 in ?? ()
#27 0x000000000064671d in WNDPROC (this=0x7fffdd0a8330, THEMESSAGE=...) at include/control.inc:2094
#28 0x00000000006378b6 in WNDPROC (this=0x7fffdd0a8330, MESSAGE=...) at include/wincontrol.inc:5327
#29 0x00000000006f0b43 in SLOTPAINT (this=0x7fffdd6e5a40, SENDER=0x2a6f050, EVENT=0x7fffffffbcc0) at qt/qtwidgets.pas:3808
#30 0x00000000006edd5c in EVENTFILTER (this=0x7fffdd6e5a40, SENDER=0x2a6f050, EVENT=0x7fffffffbcc0) at qt/qtwidgets.pas:2449
#31 0x000000000070b384 in EVENTFILTER (this=0x7fffdd6e5a40, SENDER=0x2a6f050, EVENT=0x7fffffffbcc0) at qt/qtwidgets.pas:15218
#32 0x000000000070c4d4 in VIEWPORTEVENTFILTER (this=0x7fffdd0b5550, EVENT=0x7fffffffbcc0, RETVAL=0x7fffffffb9bf) at qt/qtwidgets.pas:15690
#33 0x00007ffff76e4ebd in QLCLAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt4Pas.so.5
#34 0x00007ffff37858a6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x00007ffff3fffe5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007ffff40064f0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#37 0x00007ffff378573d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: problem with latest sbridge and Linux (Lazarus)

Post by snorkel » Tue 18 Mar 2014 20:25

Any updates on this? I can work on existing projects, but if I click on the component icon on a form or datamodule it raises a nasty AV and the IDE crashes.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: problem with latest sbridge and Linux (Lazarus)

Post by snorkel » Wed 19 Mar 2014 18:40

I tracked the problem down to lines 674,675 and 676 in ScDesign.pas

it seems to not like TScCollectionEditor, if i comment out those three lines I can use the tScsshclient on forms or data modules.

Whats odd is event though I commented out those lines those particular items in the property editor still work.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: problem with latest sbridge and Linux (Lazarus)

Post by Dimon » Mon 24 Mar 2014 14:46

It seems that there are some old SecureBridge units on your computer. To solve the issue perform the following steps:
- uninstall SecureBridge;
- find all SecureBridge units, like ScBridge.*, ScDesign.* files on your PC and delete them;
- install SecureBridge.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: problem with latest sbridge and Linux (Lazarus)

Post by snorkel » Tue 25 Mar 2014 14:43

It's not doing the AV now after I commented out those lines and rebuilt. I will wait until the next SBridge version and fully delete all the files and make sure none are remaining.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: problem with latest sbridge and Linux (Lazarus)

Post by snorkel » Wed 02 Apr 2014 19:10

Actually, it was doing this after I installed fresh on a new copy of linux mint 16.
Not sure what is going on.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: problem with latest sbridge and Linux (Lazarus)

Post by Dimon » Fri 04 Apr 2014 15:01

If there is anything else I can help you with, please contact me.

Post Reply