Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-09-25 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: This is another test program that shows my problem with fork: as soon as I start the thread, the main program stops working (the thread *is* running, you can put a writeln in its loop to show it). Note that in this short example I

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-05-24 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: This is another test program that shows my problem with fork: as soon as I start the thread, the main program stops working (the thread *is* running, you can put a writeln in its loop to show it). Note that in this short example I don't close stdin,stdout,stderr,

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-05 Thread Micha Nelissen
Luca Olivetti wrote: > This is another test program that shows my problem with fork: as soon as > I start the thread, the main program stops working (the thread *is* > running, you can put a writeln in its loop to show it). Note that in > this short example I don't close stdin,stdout,stderr, I don'

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-04 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: OTOH my real program, even if cross-compiled (what a pain!), is still throwing an exception if I use ctrl-z, is still having problems with fork but at least (if I leave it in the foreground) I can use ctrl+c. This is another test program that shows my problem wi

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-04 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: the example daemon.pp, for example, crashes right away, strace doesn't seem very useful to me: but it works fine cross-compiling (with fpc 2.0.4). I cannot find a way to cross-compile my test program

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-04 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: the example daemon.pp, for example, crashes right away, strace doesn't seem very useful to me: but it works fine cross-compiling (with fpc 2.0.4). I cannot find a way to cross-compile my test program: [EMAIL PROTECTED] fork]$ ppca

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: the example daemon.pp, for example, crashes right away, strace doesn't seem very useful to me: but it works fine cross-compiling (with fpc 2.0.4). I cannot find a way to cross-compile my test program: [EMAIL PROTECTED] fork]$ ppcarm -Fu/home/luca/fpc-arm-2.0.4/

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Micha Nelissen
Luca Olivetti wrote: >> Backgrounding is not the same as forking. > > I (vaguely) understand the difference, but I think (probably mistakenly) > that the problems are related. I'm not saying the problems are not related; they may be. It's just important to know there is a difference. > the exam

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Luca Olivetti
En/na Micha Nelissen ha escrit: Luca Olivetti wrote: [EMAIL PROTECTED]:~$ uname -a Linux lspro 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl GNU/Linux I've gotten access to an arm-linux system, where I cannot reproduce the crash. That system is using 2.6.18 kernel. Can you try a newe

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Luca Olivetti
En/na Micha Nelissen ha escrit: Luca Olivetti wrote: synchronize and critical sections, c library with callbacks to pascal, etc.) is working flawlessly in the foreground, but it segfaults if I try to background it (or try to use fpFork), and this is a problem since I want to write a daemon (i ca

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Micha Nelissen
Luca Olivetti wrote: > [EMAIL PROTECTED]:~$ uname -a > Linux lspro 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl > GNU/Linux I've gotten access to an arm-linux system, where I cannot reproduce the crash. That system is using 2.6.18 kernel. Can you try a newer kernel as well ? Micha

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Micha Nelissen
Luca Olivetti wrote: > synchronize and critical sections, c library with callbacks to pascal, > etc.) is working flawlessly in the foreground, but it segfaults if I try > to background it (or try to use fpFork), and this is a problem since I > want to write a daemon (i can use screen though if that

[fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Luca Olivetti
[I'm not sure if this should go here or fpc-devel] Hello, I'm quite impressed by the native arm compiler that I grabbed here ftp://ftp.freepascal.org/pub/fpc/beta/2.1.2/arm-linux/. My small but relatively complex program (with various threads using synchronize and critical sections, c library wi