* [Caml-list] Unix.chdir and backtrace
@ 2003-08-23 13:58 david.fox
2003-08-23 16:59 ` Eric C. Cooper
2003-08-25 7:14 ` [Caml-list] DOMINOCAML release charles@laposte
0 siblings, 2 replies; 3+ messages in thread
From: david.fox @ 2003-08-23 13:58 UTC (permalink / raw)
To: caml-list
Just a quick note to let everyone know that backtrace stops working
when your program uses Unix.chdir to change directory and argv[0] is a
relative pathname, like "./foo". The output of strace shows it trying
to open ./foo and failing. It might be a good idea to apply
realpath(3) to this path before the program runs. Not a big deal, but
maybe I can save someone the half hour I spent tracking this down.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Unix.chdir and backtrace
2003-08-23 13:58 [Caml-list] Unix.chdir and backtrace david.fox
@ 2003-08-23 16:59 ` Eric C. Cooper
2003-08-25 7:14 ` [Caml-list] DOMINOCAML release charles@laposte
1 sibling, 0 replies; 3+ messages in thread
From: Eric C. Cooper @ 2003-08-23 16:59 UTC (permalink / raw)
To: caml-list
On Sat, Aug 23, 2003 at 06:58:22AM -0700, david.fox@lindows.com wrote:
> Just a quick note to let everyone know that backtrace stops working
> when your program uses Unix.chdir to change directory and argv[0] is
> a relative pathname, like "./foo". The output of strace shows it
> trying to open ./foo and failing. It might be a good idea to apply
> realpath(3) to this path before the program runs.
At least on Linux, the runtime system can just open "/proc/self/exe"
rather than attempting to open caml_exe_name.
--
Eric C. Cooper e c c @ c m u . e d u
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Caml-list] DOMINOCAML release
2003-08-23 13:58 [Caml-list] Unix.chdir and backtrace david.fox
2003-08-23 16:59 ` Eric C. Cooper
@ 2003-08-25 7:14 ` charles@laposte
1 sibling, 0 replies; 3+ messages in thread
From: charles@laposte @ 2003-08-25 7:14 UTC (permalink / raw)
To: caml-list
The first public release of DOMINOCMAL is avalable at sourceforge :
http://phimatex.sf.net/dominocaml.html
It's the first time I use object with ocaml, so if people can read some of
my files (only 1.500 LOC) and give me feedback, he will be welcome.
DOMINOCAML is an ocaml GPL software aimed to explore aspects of the
dominoes game.
Actually, it can :
- compute statistics on domino gaming
- simulate games between automated players
- play games between humans and automated players
If new developpers want to join its developpment, dominocaml will become a
sourceforge project on its own.
Actually it needs :
- a pretty GUI (may be developped in anoter language)
- add some strategies
- support of networked games
best regards,
charles
--
Charles-Albert LEHALLE
charles@lehalle.net
keyserver: http://pgp.mit.edu/
"I would rather be vaguely right, than precisely wrong." ~~ John Maynard
Keynes
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-25 7:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-23 13:58 [Caml-list] Unix.chdir and backtrace david.fox
2003-08-23 16:59 ` Eric C. Cooper
2003-08-25 7:14 ` [Caml-list] DOMINOCAML release charles@laposte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox