Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camlp4r causes crash (with Unix lib??) #2783

Closed
vicuna opened this issue Jun 12, 2001 · 3 comments
Closed

Camlp4r causes crash (with Unix lib??) #2783

vicuna opened this issue Jun 12, 2001 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 12, 2001

Original bug ID: 384
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Bryn Keller
Version: 3.01 (camlp4 3.01.5)
OS: NT4 (sp4), cygwin 1.3.2
Submission from: brk.jenkon-dev.com (209.210.37.31)

Both ocaml and camlp4 built from source, first with cygwin 1.1.8, then upgraded
to
cygwin 1.3.2 and rebuilt ocaml and camlp4, problem remains.

This program compiles fine:

open Unix

let timestamp t = string_of_int t.tm_year ^ "" ^ string_of_int t.tm_mon ^ "" ^
string_of_int t.tm_mday

But this one (same thing, but with revised syntax) crashes:

open Unix;

value timestamp t = string_of_int t.tm_year ^ "" ^ string_of_int t.tm_mon ^ ""
^ string_of_int t.tm_mday;

Here's a sample session:
Administrator@BRK /NextGen/src/magellan/src/ocaml
$ ocamlc timebugo.ml

Administrator@BRK /NextGen/src/magellan/src/ocaml
$ ocamlc -pp camlp4r timebug.ml
0 [main] ocamlc 346 open_stackdumpfile: Dumping stack trace to
ocamlrun.ex
e.stackdump
Segmentation fault (core dumped)

Administrator@BRK /NextGen/src/magellan/src/ocaml
$

@vicuna
Copy link
Author

vicuna commented Jun 13, 2001

Comment author: administrator

Hi,

On Tue, Jun 12, 2001 at 10:56:25PM +0200, brk@jenkon.com wrote:

Both ocaml and camlp4 built from source, first with cygwin 1.1.8,
then upgraded to cygwin 1.3.2 and rebuilt ocaml and camlp4, problem
remains.

Are you sure ocamlc and camlp4 have compatible versions? Do under the shell:
ocamlc -v
camlp4 -v

What do they answer? (the first 3 digits of the version number must be
the same).

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Jun 13, 2001

Comment author: administrator

Hi,

On Tue, Jun 12, 2001 at 10:56:25PM +0200, brk@jenkon.com wrote:

Both ocaml and camlp4 built from source, first with cygwin 1.1.8,
then upgraded to cygwin 1.3.2 and rebuilt ocaml and camlp4, problem
remains.

Cygwin? You are under Windows?

Well, I tested with the Linux rpm version, it works. I tested also by
installing from the sources, it works (under Linux).

Are you sure you compiled your Camlp4 with the OCaml version that you
installed?

And what answer:
camlp4r pr_r.cmo timebug.ml
camlp4r pr_o.cmo timebug.ml

Could you send me the results of:
ocamlc -pp camlp4r -dparsetree timebug.ml
ocamlc -dparsetree timebugo.ml

Thanks.

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Jul 2, 2001

Comment author: administrator

Not enough info to understand the issue.

@vicuna vicuna closed this as completed Jul 2, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant