Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
insertinterestingnamehere committed Sep 18, 2024
1 parent 31ee0b9 commit c03ec52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ osx_m1_task:
./configure --enable-picky --with-scheduler=$QTHREADS_SCHEDULER --with-topology=$QTHREADS_TOPOLOGY
make -j$CIRRUS_CPU
test_script: |
cd test
make tests -j$CIRRUS_CPU
#QT_NUM_SHEPHERDS=2 QT_NUM_WORKERS_PER_SHEPHERD=1 gdb -batch -ex "run" -ex "bt" --args bash basics/hello_world 2>&1 | grep -v ^"No stack."$
QT_NUM_SHEPHERDS=2 QT_NUM_WORKERS_PER_SHEPHERD=1 ulimit -c unlimited && (QT_NUM_SHEPHERDS=2 QT_NUM_WORKERS_PER_SHEPHERD=1 bash basics/hello_world || (lldb -c `ls -t /cores/* | head -n1` --batch -o 'thread backtrace all' -o 'quit' && exit 1))
cd ..
gtimeout --foreground 3m make check
freebsd_task:
Expand Down
2 changes: 2 additions & 0 deletions src/alloc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>

/* System Headers */
#if (HAVE_MEMALIGN && HAVE_MALLOC_H)
Expand Down Expand Up @@ -38,6 +39,7 @@ void *qt_internal_aligned_alloc(size_t alloc_size, uint_fast16_t alignment) {
}

void qt_internal_aligned_free(void *ptr, uint_fast16_t alignment) {
printf("alignment: %i\n", (int)alignment);fflush(stdout);
qt_free(ptr);
}

Expand Down

0 comments on commit c03ec52

Please sign in to comment.