Skip to content

Commit d606317

Browse files
Debug assertion failure in OSX CI.
1 parent a104776 commit d606317

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ jobs:
233233
./configure $QTHREADS_ENABLE_ASSERTS --enable-picky --with-scheduler=${{ matrix.scheduler }} --with-topology=${{ matrix.topology }}
234234
make -j3
235235
make tests -j3
236+
echo "settings set target.process.stop-on-exec false" > ~/.lldbinit
237+
QT_NUM_SHEPHERDS=2 QT_NUM_WORKERS_PER_SHEPHERD=1 lldb bash --batch --one-line 'process launch' --one-line-on-crash 'bt' --one-line-on-crash 'quit' -- test/basics/hello_world
236238
- name: make check
237239
run: |
238240
# commented example for how to get a backtrace from CI usign lldb on OSX:

include/qt_atomics.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ static inline int QTHREAD_TRYLOCK_TRY(qt_spin_trylock_t *x) {
161161
} \
162162
{ \
163163
pthread_condattr_t tmp_attr; \
164+
pthread_condattr_init(&tmp_attr); \
164165
qassert(pthread_condattr_setpshared(&tmp_attr, PTHREAD_PROCESS_PRIVATE), \
165166
0); \
166167
QTHREAD_SET_CONDATTR_CLOCK(tmp_attr); \

0 commit comments

Comments
 (0)