Code Monkey home page Code Monkey logo

ft_mallocator's Introduction

Hi there ๐Ÿ‘‹

I'm a 22-year-old student and IT intern @42 Paris.

ft_mallocator's People

Contributors

thomasrobertson avatar tmatis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wonderworlds

ft_mallocator's Issues

error while testing bash

How to reproduce:

./mallocator bash

Error

free(): invalid pointer
[CRASH] abort
โ”—โ”โ” ?? in ??:0 (0x1391)
โ”—โ”โ” ?? in ??:0 (0x1a31)
โ”—โ”โ” ?? in ??:0 (0x389ff)
โ”—โ”โ” programmable_completions in ??:0 (0x8864b)
โ”—โ”โ” ?? in ??:0 (0x38957)
โ”—โ”โ” shell_is_restricted in ??:0 (0x2253c)
โ”—โ”โ” ?? in ??:0 (0x7c7ed)
โ”—โ”โ” fg_builtin in ??:0 (0x923db)
โ”—โ”โ” history_builtin in ??:0 (0x9422b)
โ”—โ”โ” read_builtin in ??:0 (0x96ba2)
โ”—โ”โ” ?? in ??:0 (0x1999)
โ”—โ”โ” named_function_string in ??:0 (0x358d8)
โ”—โ”โ” ?? in ??:0 (0x33603)
โ”—โ”โ” ?? in ??:0 (0x32fd4)
โ”—โ”โ” ulimit_builtin in ??:0 (0x9c8ae)
โ”—โ”โ” file_error in ??:0 (0x48531)
โ”—โ”โ” shell_execve in ??:0 (0x382f6)
โ”—โ”โ” ?? in ??:0 (0x38c5d)
โ”—โ”โ” execute_command_internal in ??:0 (0x3bf1f)
โ”—โ”โ” execute_command in ??:0 (0x3c559)
โ”—โ”โ” reader_loop in ??:0 (0x22cb7)
โ”—โ”โ” main in ??:0 (0x218e1)
โ”—โ”โ” ?? in ??:0 (0x1adc)
โ”—โ”โ” ?? in ??:0 (0x2328f)
โ”—โ”โ” ?? in ??:0 (0x23349)
โ”—โ”โ” ?? in ??:0 (0x1b6c)
โ”—โ”โ” _start in ??:0 (0x2191d)

Makefile improvement

-malloc_test: $(OBJS) $(MAIN_OBJ) $(LIBFT)
-       @$(MAKE) DEBUG=1
-       $(CC) $(CFLAGS) $^ -fsanitize=undefined -rdynamic -o $@ $(INCLUDE_FLAGS) -L../ft_mallocator -lmallocator
+malloc_test: debug
+       $(CC) $(CFLAGS) $(OBJS) $(MAIN_OBJ) $(LIBFT) -fsanitize=undefined -rdynamic -o $@ $(INCLUDE_FLAGS) $(LIB_FLAGS) -L. -lmallocator

The malloc_test rule should be dependent on a rule like debug. This enforces the object files to be created with -g symbols. The debug rule and CFLAGS variable should look something like this:

CFLAGS			=-Wall -Wextra -Werror$(if $(DEBUG), -g -D DEBUG=1)$(if $(FSAN), -g -D DEBUG=1 -fsanitize=address)
debug:
	@$(MAKE) DEBUG=1

rebug: fclean
	@$(MAKE) debug

Sometime program never return

in symbolizer.c
MBY: We write every address, we over fill the kernels buffer and the write block himself
We need to send address, get result etc..

ARGS doesn't not support "

Hi !

Thanks a lot for your tool, it's been really useful :)

I've been trying to test my project pipex and just realised that I cannot put any " inside the ARGS field in config.sh.

ARGS="file1 "sleep 1" cat file2" just become file1 and cannot fetch any route. Removing the " or switching to ' solve the problem.

I don't know if you can fix that, but maybe putting a warning would help people with this issue (especially on pipex).

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.