Coder Social home page Coder Social logo

Comments (4)

ivmai avatar ivmai commented on June 16, 2024

Stacktrace (if compiled with -O3): // obtained by ulimit -c unlimited; while ./tests/test_stack; do :; done; gdb tests/test_stack core

#0  0x0000000050179ef8 in AO_stack_push_explicit_aux_release ()
#1  0x000000005017aaa0 in AO_stack_push_release ()
#2  0x00000000501772a0 in run_one_test ()
#3  0x0000000050203530 in start_thread () from /lib128/libpthread.so.0

gdb reports: Program terminated with signal SIGILL, Illegal instruction.

from libatomic_ops.

ivmai avatar ivmai commented on June 16, 2024

gdb show exact line of SIGILL, if compiled with -O0 -g:

if (AO_EXPECT_FALSE(entry1 == x_bits || entry2 == x_bits))

#0  0x00000000501ab038 in AO_stack_push_explicit_aux_release (list=0x501b0180 <the_list>, x=0x50a16e80,
    a=0x501b0190 <the_list+16>) at atomic_ops_stack.c:158
158             if (AO_EXPECT_FALSE(entry1 == x_bits || entry2 == x_bits))

from libatomic_ops.

ivmai avatar ivmai commented on June 16, 2024

How to reproduce ("quick how-to"):
git clone https://github.com/ivmai/libatomic_ops.git && cd libatomic_ops && git checkout 7279f8153 && gcc -m128 -O0 -g -I src -o test_stack tests/test_stack.c src/*.c -lpthread && ulimit -c unlimited && while ./test_stack; do :; done && gdb test_stack core

from libatomic_ops.

ivmai avatar ivmai commented on June 16, 2024

As of commit cc9bc49, the issue is still reproduced.

from libatomic_ops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.