[Chicken-users] gmake check fails on OpenBSD 5.0
Hi, I would like to help in analysing the two problems below. Can anybody give pointers how to proceed? Version "chicken-4.7.0-st" compiles in OpenBSD/amd64(Vmware Fusion) but running gmake PLATFORM=bsd ARC=x86-64 PREFIX=/usr/local check fails in two test: 1) Procedures check on output ports being closed - error message 1 starts --- write...OK fprintf...OK print-call-chain...OK print-error-message...OK print...OK print*...OK display...OK terminal-port?...OK newline...OK write-char...OK write-line...OK write-u8vector...OK port->fileno...FAIL [ 8 ] Error: assertion failed: (eq? okay (condition-case (begin (print* (quote port->fileno) "...") (flush-output) (let ((output (port->fileno out))) (printf "FAIL [ ~S ]\n" output))) ((exn i/o file) (printf "OK\n") okay))) Call history: (memv688 (##core#quote i/o682) kvar686) (memv688 (##core#quote file683) kvar686) (printf680 "OK\n") (list712 (quote713 okay711)) (eq?715 okay711 (condition-case716 (begin717 (print*718 (quote709 port->fileno) "...") (flush-output.. ((call-with-current-continuation735 (##core#lambda (k733) (with-exception-handler736 (##core#lambda ... (call-with-current-continuation735 (##core#lambda (k733) (with-exception-handler736 (##core#lambda (.. (with-exception-handler736 (##core#lambda (exvar726) (k733 (##core#lambda () (##core#let ((kvar727 (.. (##sys#call-with-values (##core#lambda () (begin717 (print*718 (quote709 port->fileno) "...") (flush.. (print*718 (quote709 port->fileno) "...") (flush-output719) (port->fileno out) (printf721 "FAIL [ ~S ]\n" output720) (k733 (##core#lambda () (##sys#apply ##sys#values args734))) (##sys#apply ##sys#values args734) (##sys#error "assertion failed" (##core#quote (eq? okay (condition-case (begin (print* (quote port->.. <-- gmake[1]: *** [check] Error 70 gmake[1]: Leaving directory `/home/pekka/compile/chicken-4.7.0.3-st' gmake: *** [check] Error 2 - error message 1 ends - I commented out the following two lines from "port-tests.scm" (check (port->fileno out)) (check (port->fileno in)) and the test sequence continued up to the next error: - error message 2 starts --- symbol-GC tests ... ../chicken symbolgc-tests.scm -output-file a.c -include-path .. gcc a.c -o a.o -c -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer -I.. -I"/usr/local/include/chicken" rm a.c gcc a.o -o a.out -L.. -L"/usr/local/lib" -Wl,-R"/usr/local/lib" -lchicken -lm -lpthread ../libchicken.so: warning: strcpy() is almost always misused, please use strlcpy() ../libchicken.so: warning: sprintf() is often misused, please use snprintf() ../libchicken.so: warning: strcat() is almost always misused, please use strlcat() rm a.o starting with 1232 symbols interning 1 symbols ... Segmentation fault (core dumped) gmake[1]: *** [check] Error 139 gmake[1]: Leaving directory `/home/pekka/compile/chicken-4.7.0.3-st' gmake: *** [check] Error 2 - error message 2 ends - -pekka- ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] gmake check fails on OpenBSD 5.0
On Nov 4, 2011, at 1:37 PM, Pekka Niiranen wrote: Hi Pekka. > port->fileno...FAIL [ 8 ] > gmake[1]: Leaving directory `/home/pekka/compile/chicken-4.7.0.3-st' > gmake: *** [check] Error 2 > > I commented out the following two lines from "port-tests.scm" > > (check (port->fileno out)) > (check (port->fileno in)) You found the correct solution--the test is erroneous. The fix was applied to the stability branch in commit 6097b12 after the 4.7.0.3-st release. > and the test sequence continued up to the next error: > > starting with 1232 symbols > interning 1 symbols ... > Segmentation fault (core dumped) This one I am not sure of, we will have to look into it. I assume this is occurring only on OpenBSD; I don't know if it's been fixed in the master branch. In the meantime I created a ticket for you: https://bugs.call-cc.org/ticket/724 ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] gmake check fails on OpenBSD 5.0
On Sat, Nov 05, 2011 at 07:08:20PM -0500, Jim Ursetto wrote: > > starting with 1232 symbols > > interning 1 symbols ... > > Segmentation fault (core dumped) > > This one I am not sure of, we will have to look into it. I assume this is > occurring only on OpenBSD; I don't know if it's been fixed in the master > branch. > > In the meantime I created a ticket for you: > https://bugs.call-cc.org/ticket/724 Actually, it also happens on NetBSD, and I think Moritz mentioned yesterday that he got the same error on Arch Linux. It's known to be broken. Oddly, the error is not properly reproducible; it only happens some of the time. Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users