Sign in Join

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

Mailing lists / fpc-pascal / 2008-10

Bug in rtl/baseunix on OSX - Abort with illegal instruction

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Brad Campbell

G'day all,

fpmkfifo aborts with an illegal instruction on OSX.

macppc:~ user$ fpc testfifo.pas
Free Pascal Compiler version 2.2.3 [2008/06/14] for powerpc Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling testfifo.pas
Assembling fifotest
Linking testfifo
8 lines compiled, 0.10 sec
1 warning(s) issued
macppc:~ user$ ./testfifo
Illegal instruction
macppc:~ user$ cat testfifo.pas
Program FifoTest;

Uses BaseUnix;
Begin
Writeln(fpMkFIFO('Hello.fifo',666));
End.

This works on Linux.
I've tested it against a native PPC compile on 10.4, and a PPC & Intel cross compile from Linux. All terminate the same way.

I'm not quite sure how to go about debugging it.

Regards,
Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.
Brad Campbell
to Jonas Maebe
Jonas Maebe wrote 9 lines
On 16 Oct 2008, at 06:17, Brad Campbell wrote: > fpmkfifo aborts with an illegal instruction on OSX. It's the same problem as this one: http://bugs.freepascal.org/view.php?id=11705 (except that it's for fpmkfifo instead of for fpchown). I've fixed it in svn.

Fantastic, is the fix likely to make it to FIXES_2_2 ?

Regards,
Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.