Recent

Author Topic: segmentation fault / memory access violation  (Read 3527 times)

Hans-Josef.Heck

  • Newbie
  • Posts: 1
segmentation fault / memory access violation
« on: June 20, 2015, 09:01:44 pm »
My first visit  and  my first question  on this forum:

I am using my booking program for years now - on linux as well as on windows.
- written and compiled of course with fpc.

On a new hardware with uefi-bios and a new version of openSUSE Linux 13.1 and 13.2
the program started but then ended with:
"Speicherzugriffsfehler" = "segmentation fault / memory access violation".

I used my old machine to accomplish the task, as in all the years before
and moved the output to my new machine.

I kept searching for the problem on the internet all day long, but I couldn't find a hint.

 -  Is it the UEFI, that - inhibits access  or  something else?
 -  Are -perhaps- libraries missing   ?
 -  What else could cause the problem  ?

Thanks for your help

Hans-Josef  Heck
Wissenschaffen und Handeln




howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: segmentation fault / memory access violation
« Reply #1 on: June 20, 2015, 09:30:35 pm »
You can either share the code and so get eyes here to debug it for you, or debug it yourself.
Compile with debugging information, open a Call Stack window (and perhaps Watches, Local Variables etc. as you need) and single step in the debugger, starting from your main form's OnCreate or OnShow handler (or some other event that suits your case), until you reach the statement(s) that give rise to the access violation. Once you have pinpointed where the problem lies, you'll probably be able to figure out what needs amending to cure it. If not, come back here.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: segmentation fault / memory access violation
« Reply #2 on: June 20, 2015, 10:09:49 pm »
-  Is it the UEFI, that - inhibits access  or  something else?

No, there is no way.

-  Are -perhaps- libraries missing   ?

It is probable although you should see a message that the XXXXX.SO could not be loaded or something along those lines.

-  What else could cause the problem  ?
Newer SO that is not compatible with the old one or was compiled with different parameters, if nothing else changed on your app.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018