Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-07

Invalid Instruction in Call Statement

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mehmet Erol Sanliturk

Dears All ,

I have a program compiled from the same source in a server .

In a known call statement without entering into called procedure in FreeBSD ( amd64 , KDE4 , Version 9.1 , Version 8.4 ) is disappearing from the screen without any message but with a core dump .

When executed from Konsole , it is displaying

"Illegal instruction ( core dumped )"

The same program is working in

Windows XP Win32 , compiled by Lazarus 1.0.10 , 1.0.8 and previous versions ,
by Delphi Turbo ,

Linux Fedora 18 x86_64 , Lazarus 1.0.8 .

I have tried it to compile in FreeBSD 9.1 i386 , but at the end of compilation
Lazarus displayed a message that the compiler returned an error code 1 without
generating an executable and without any other error message before the above message .
Therefore it is not possible to understand what should be corrected to eliminate
the final error message .

There is no any pointer reference or arithmetic expression in the call actual parameters .

What may be the reasons of such an "Illegal instruction" in a call statement theoretically ?

What can be done to remedy this crash ?

Thank you very much .

Mehmet Erol Sanliturk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130702/974bc181/attachment.html>

Reply by email

Marco van de Voort
to Mehmet Erol Sanliturk
Mehmet Erol Sanliturk wrote
When executed from Konsole , it is displaying "Illegal instruction ( core dumped )"

FreeBSD is more likely to show SIGILL (illegal instruction) or SIGBUS in cases of general application corruption (pointer mistakes etc). Linux seems to heep all that in the general SIGSEGV exception.

What can be done to remedy this crash ?

Fix the bug.

Reply by email