Recent

Author Topic: ActiveX - SIGSEGV  (Read 2826 times)

Cliff48

  • Jr. Member
  • **
  • Posts: 51
ActiveX - SIGSEGV
« on: July 02, 2015, 10:12:46 am »
I created the Internet Explorer sample as per :
wiki.freepascal.org/lazActiveX and it worked fine until i tried to close the form and got the dreaded SIGSEGV.  I havent included the code here as it is identical to the website sample.  The only addition info I have is that i get this problem even if I close the form immediately without attempting any browsing.  Any ideas?
Laz Ver 1.4.0  FPC 2.6.4 SVN 48774
Win 7 Ultimate SP1
Intel I7-2600 CPU @  3.40GHZ 8GB Ram 64bit OS

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: ActiveX - SIGSEGV
« Reply #1 on: July 02, 2015, 11:18:51 am »
64-bit or 32-bit compilation?

Cliff48

  • Jr. Member
  • **
  • Posts: 51
Re: ActiveX - SIGSEGV
« Reply #2 on: July 02, 2015, 11:27:31 am »
64-bit or 32-bit compilation?

32 bit compile and target
Laz Ver 1.4.0  FPC 2.6.4 SVN 48774
Win 7 Ultimate SP1
Intel I7-2600 CPU @  3.40GHZ 8GB Ram 64bit OS

rvk

  • Hero Member
  • *****
  • Posts: 6110
Re: ActiveX - SIGSEGV
« Reply #3 on: July 02, 2015, 12:04:06 pm »
Are you really getting a SIGSEGV or just a "GDB has encountered an internal error" after closing the example-app??

With Laz1.4, after browsing to a website and closing the example-app I get the GDB error.

I had to DisableLoadSymbolsForLibraries to True again to solve it.
Or use the newer alternative GDB 7.7.1 like discussed here.

I increasingly find that that old GDB 7.2 is giving problems (now again with this simple example).
Maybe it's time to include the newer as default.

Cliff48

  • Jr. Member
  • **
  • Posts: 51
Re: ActiveX - SIGSEGV
« Reply #4 on: July 02, 2015, 01:07:04 pm »
Are you really getting a SIGSEGV or just a "GDB has encountered an internal error" after closing the example-app??

With Laz1.4, after browsing to a website and closing the example-app I get the GDB error.

I had to DisableLoadSymbolsForLibraries to True again to solve it.
Or use the newer alternative GDB 7.7.1 like discussed here.

I increasingly find that that old GDB 7.2 is giving problems (now again with this simple example).
Maybe it's time to include the newer as default.

Yep it is really a SIGSEGV and the assembler module is fpc_intf_decr_ref which seems a reasonable module to be used when closing/exiting.

I also installed 64-bit version and now have tried both versions with DisableLoadSymbolsforLibaries SeT and still have the problem.  I will look for GDB 7.7.1 and see if that helps.

I have been getting some strange 'happenings' since I upgraded to latest Lazarus - such as the additional forms not being created, and I have to create each one before use  ... (or obviously an Exception if I dont).  But there is no consistancy with the problems I am getting, so its hard to document.

Thanks for your thoughts and ideas.
Laz Ver 1.4.0  FPC 2.6.4 SVN 48774
Win 7 Ultimate SP1
Intel I7-2600 CPU @  3.40GHZ 8GB Ram 64bit OS

rvk

  • Hero Member
  • *****
  • Posts: 6110
Re: ActiveX - SIGSEGV
« Reply #5 on: July 02, 2015, 01:18:44 pm »
Well, if you really get a SIGSEGV then setting DisableLoadSymbolsforLibaries to True won't help much (like you've seen). I use that when I have trouble with GDB 7.2. With Laz.trunk I use GDB 7.7.1 and with my installed Laz1.4 I have GDB 7.2 (just for testing).

Could you post your example-app?
(Use the tool "Project > Publish Project" and set a directory. Zip that directory and attach it to a post).

Aside from the GDB crashing at end I have no SIGSEGV on Lazarus 1.4.0 r48774 FPC 2.6.4 i386-win32-win32/win64 Windows 7 64bit with that example app.

(My example is attached.)

Cliff48

  • Jr. Member
  • **
  • Posts: 51
Re: ActiveX - SIGSEGV
« Reply #6 on: July 02, 2015, 07:56:35 pm »
thank you RVK,

Your example works and doesn't crash!!!!!!!!!!

Mine is almost identical to yours so no point in posting - but i will go through line by line to see if there is the slightest difference. 

What is different is the Project options.  You have all individual  debug options , like Range check' unchecked - I have them all checked.  You also have Darwin checked - which I dont.  Unchecking that - your program still doesnt crash. I checked each of the debugging options .. still doesnt crash.  In fact I cant get my program to crash any more !!!!!!!  there must be something different in the options somewhere ....   i need to go through very carefully. 
I will package my project shortly to see if my project options crash for you.

Thank you for all to date.
Laz Ver 1.4.0  FPC 2.6.4 SVN 48774
Win 7 Ultimate SP1
Intel I7-2600 CPU @  3.40GHZ 8GB Ram 64bit OS

 

TinyPortal © 2005-2018