Coder Social home page Coder Social logo

crash under Asan about zforth HOT 4 CLOSED

zevv avatar zevv commented on May 30, 2024
crash under Asan

from zforth.

Comments (4)

zevv avatar zevv commented on May 30, 2024

Can't seem to reproduce, valgrind is also very happy. What's your exact build commands?

from zforth.

tankf33der avatar tankf33der commented on May 30, 2024
$ git diff
diff --git a/src/linux/Makefile b/src/linux/Makefile
index 7cdbf16..1486a35 100644
--- a/src/linux/Makefile
+++ b/src/linux/Makefile
@@ -10,8 +10,8 @@ CC    := $(CROSS)gcc
 VPATH   := ../zforth
 CFLAGS += -I. -I../zforth
 CFLAGS  += -Os -g -std=c89 -ansi -pedantic -MMD
-CFLAGS  += -Wall -Wextra -Werror -Wno-unused-parameter -Wno-clobbered -Wno-unused-result
-LDFLAGS        += -g 
+CFLAGS  += -fsanitize=address -Wall -Wextra -Werror -Wno-unused-parameter -Wno-clobbered -Wno-unused-result
+LDFLAGS        += -fsanitize=address -g 
 
 LIBS   += -lm
$ make clean
$ make

It is not every time asan "issue":

$ ./src/linux/zforth forth/core.zf 
Welcome to zForth, 1035 bytes used
^C
$ ./src/linux/zforth forth/core.zf 
Welcome to zForth, 1035 bytes used
^C
$ ./src/linux/zforth forth/core.zf 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==80885==ERROR: AddressSanitizer: SEGV on unknown address 0x60ef5cd25290 (pc 0x77e7e0b42c47 bp 0x000000000000 sp 0x7fff1f154e60 T0)
==80885==The signal is caused by a READ memory access.
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer: nested bug in the same thread, aborting.
$

from zforth.

zevv avatar zevv commented on May 30, 2024

Tried this on 3 different machines, but no reproduction, sorry :(

from zforth.

zevv avatar zevv commented on May 30, 2024

Closing this as "can't reproduce"

from zforth.

Related Issues (16)

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.