Ticket #781 (assigned defect)

Opened 4 months ago

Last modified 3 weeks ago

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

Reported by: iraikov Owned by: iraikov
Priority: major Milestone:
Component: build system Version: 4.7.x
Keywords: Cc:

Description (last modified by iraikov) (diff)

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

follow-up: ↓ 2   Changed 4 months ago by felix

  • owner set to felix
  • status changed from new to assigned

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.

in reply to: ↑ 1   Changed 4 months ago by iraikov

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.

  Changed 4 months ago by iraikov

  • description modified (diff)
  • summary changed from Unit tests for bind hangs under Mac OS X to csc -c++ produces executables that hang under Mac OS X

  Changed 4 months ago by iraikov

  • description modified (diff)

  Changed 3 months ago by zbigniew

  • owner changed from felix to iraikov

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.

  Changed 3 months ago by iraikov

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.

  Changed 3 weeks ago by felix

  • component changed from compiler to build system
  • milestone 4.8.0 deleted

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

Note: See TracTickets for help on using tickets.