Opened 10 years ago

Closed 9 years ago

#781 closed defect (invalid)

csc -c++ produces executables that hang under Mac OS X

Reported by: Ivan Raikov Owned by: Ivan Raikov
Priority: major Milestone:
Component: build system Version: 4.7.x
Keywords: Cc:
Estimated difficulty:

Description (last modified by Ivan Raikov)

It appears that compiling programs under Mac OS X with csc -c++ produces executables that hang when run. dtruss shows the following output, over and over:

sigprocmask(0x1, 0x0, 0x7FFF6A635BB0) = 0x0 0
sigaltstack(0x0, 0x7FFF6A635BA0, 0x0) = 0 0
sigprocmask(0x3, 0x7FFF6A635BB0, 0x0) = 0x0 0
sigreturn(0x0, 0x80000000, 0x0) = 0 0

Change History (8)

comment:1 Changed 10 years ago by felix winkelmann

Owner: set to felix winkelmann
Status: newassigned

Ivan, can you tell me where exactly it hangs? Does the compilation fail, or the execution of the compiled test programs? In the former case you can modify the test-script and add "-verbose -debug p" to the csc invocations.

comment:2 in reply to:  1 Changed 10 years ago by Ivan Raikov

It seems that any program compiled with csc -c++ hangs when it is run, so I am changing the description of this issue. To be clear, compilation succeeds (produces an executable) but the executable hands when it is run.

Replying to felix:

Ivan, can you tell me where exactly it hangs? Does the compilation fail, or the execution of the compiled test programs? In the former case you can modify the test-script and add "-verbose -debug p" to the csc invocations.

comment:3 Changed 10 years ago by Ivan Raikov

Description: modified (diff)
Summary: Unit tests for bind hangs under Mac OS Xcsc -c++ produces executables that hang under Mac OS X

comment:4 Changed 10 years ago by Ivan Raikov

Description: modified (diff)

comment:5 Changed 10 years ago by Jim Ursetto

Owner: changed from felix winkelmann to Ivan Raikov

Maybe it's using clang or llvm-gcc. Symptom: running executable with -:d shows a stack at 0x0. If so, try latest stability or master.

comment:6 Changed 10 years ago by Ivan Raikov

Running the executable with -:d gives the following output:

[debug] application startup...
[debug] heap resized to 500000 bytes
[debug] stack bottom is 0x7fff68e23be0.
[debug] entering toplevel toplevel...
[debug] entering toplevel toplevel...
[the last line repeats forever]

But it is true that while this instance of Chicken is built with C_COMPILER=gcc-4.2, I am not setting the variable CXX_COMPILER. I will try the latest master with llvm-gcc, thanks for your work on this.

comment:7 Changed 9 years ago by felix winkelmann

Component: compilerbuild system
Milestone: 4.8.0

This seems to me more an issue with the Mac OS build tools. I postpone this, unless someone objects.

comment:8 Changed 9 years ago by Ivan Raikov

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.