Discussion:
[Larceny-users] assertion failure in stats_start_timer
Marco Maggi
2009-01-05 07:52:28 UTC
Permalink
When running my test suite for POSIX
functions, I get an assertion failure
on "Sys/stats.c" line 283. The test
just forks a new process and exits:

| (let ((pid (fork)))
| (if (= 0 pid)
| (exit)
| #t)

it is the child who fails. It is a
bohrbug, but happens only when I
call EXIT after FORK, if I call
"execv()", or the other functions
like it, no failure happens.

i686-pc-linux-gnu, larceny-5886.

P.S. The other stuff seems to work
("errno" access and NULL arguments to
functions).
--
Marco Maggi

"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"
Felix Klock
2009-01-05 14:14:44 UTC
Permalink
Marco (cc'ing larceny-users)-
Post by Marco Maggi
When running my test suite for POSIX
functions, I get an assertion failure
on "Sys/stats.c" line 283. The test
| (let ((pid (fork)))
| (if (= 0 pid)
| (exit)
| #t)
it is the child who fails. It is a
bohrbug, but happens only when I
call EXIT after FORK, if I call
"execv()", or the other functions
like it, no failure happens.
i686-pc-linux-gnu, larceny-5886.
Well, you learn something new every day; I had never heard the term
"bohrbug", nor of the distinction between "bohrbug" and "heisenbug"
before, but there it is on wikipedia!

----
William D Clinger
2009-01-05 16:22:25 UTC
Permalink
Post by Marco Maggi
When running my test suite for POSIX
functions, I get an assertion failure
on "Sys/stats.c" line 283.
Logged as ticket #604:

https://trac.ccs.neu.edu/trac/larceny/ticket/604

Should be fixed by changeset:5889.

Please let us know if that fixes it, so we
can close the ticket.

Will
Marco Maggi
2009-01-05 19:58:32 UTC
Permalink
Post by William D Clinger
Post by Marco Maggi
When running my test suite for POSIX
functions, I get an assertion failure
on "Sys/stats.c" line 283.
https://trac.ccs.neu.edu/trac/larceny/ticket/604
Should be fixed by changeset:5889.
Please let us know if that fixes it, so we
can close the ticket.
Yes. It is fixed.
--
Marco Maggi

"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"
Loading...