Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000008 | mercury | Bug | public | 2007-09-27 23:55 | 2022-02-09 12:38 |
Reporter | anonymous | ||||
---|---|---|---|---|---|
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000008: code hanging in asm_fast.gc.prof | ||||
Description | From bojar@csse.unimelb.edu.au Tue Sep 4 12:07:44 2007 Date: Tue, 04 Sep 2007 12:07:43 +1000 From: Ondrej Bojar <bojar@csse.unimelb.edu.au> To: mercury-bugs@csse.unimelb.edu.au Subject: [Fwd: "hang-up in C-code in asm_fast.gc.prof" - possible solution] Hi, all. I've received this suggestion from Krzysztof Foltman some while ago and now I tested it. Indeed, if I use sigprocmask to block SIGPROF just before io.call_system_return_signal and unblock it afterwards, my program does not hang up in asm_fast.gc.prof as it would without any treatment. I'm using rotd-2007-08-13, so I assume this issue was not fixed yet. Could you please add the temporary blocking of SIGPROF around every system() or fork() calls in the standard library, if compiled in profiling grade? Thanks, Ondrej. -------- Original Message -------- Subject: "hang-up in C-code in asm_fast.gc.prof" - possible solution Date: Wed, 15 Aug 2007 16:36:58 +0100 From: Krzysztof Foltman <krzysztof@foltman.com> To: bojar@csse.unimelb.edu.au It's probably too late for this, but I think I've found the reason your code hangs under profiler. You need to temporarily block the SIGPROF signal with pthread_sigmask or sigprocmask for the time of system() or fork(), otherwise the profiler causes those functions to hang indefinitely. Chris -- Ondrej Bojar (mailto:obo@cuni.cz / bojar@ufal.mff.cuni.cz) http://www.cuni.cz/~obo | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files |
Notes | |||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2007-09-27 23:55 | anonymous | New Issue | |||
2009-12-11 06:51 | juliensf | Summary | code haning in asm_fast.gc.prof => code hanging in asm_fast.gc.prof | ||
2022-02-09 12:38 | juliensf | Note Added: 0001172 |