Bug 1210290
| Summary: | ltrace: handle_event.c:623: handle_x_sysret: Assertion `d > 0' failed | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Petr Machata <pmachata> |
| Component: | ltrace | Assignee: | Jeff Law <law> |
| Status: | CLOSED ERRATA | QA Contact: | Martin Cermak <mcermak> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | dj, mcermak, mnewsome, ohudlick |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
In rare circumstances, when tracing a multi-threaded process without the "-f" option, secondary (untraced) threads were ignored and their stack trace was not kept up-to-date. As a consequence, ltrace terminated unexpectedly with an assertion error ("Assertion `d > 0' failed"). This bug has been fixed, and ltrace no longer crashes in the described scenario.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 03:30:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Petr Machata
2015-04-09 10:59:27 UTC
(In reply to Petr Machata from comment #0) > Steps to Reproduce: > 1. Obtain an ARM > 2. Compile > http://anonscm.debian.org/cgit/collab-maint/ltrace.git/tree/testsuite/ltrace. > main/main-threaded.c?id=9c6ba6adc6aad1be1761b73cd34ef67d5cd5823e ======= #include <pthread.h> extern void print (char *); #define PRINT_LOOP 10 void * th_main (void *arg) { int i; for (i=0; i<PRINT_LOOP; i++) print (arg); return NULL; } int main () { pthread_t thread1; pthread_t thread2; pthread_t thread3; pthread_create (&thread1, NULL, th_main, "aaa"); pthread_create (&thread2, NULL, th_main, "bbb"); pthread_create (&thread3, NULL, th_main, "ccc"); pthread_join (thread1, NULL); pthread_join (thread2, NULL); pthread_join (thread3, NULL); return 0; } ======= > 3. Run ltrace -L ./a.out Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2141.html |