Coder Social home page Coder Social logo

job control invalid free about 42sh HOT 4 CLOSED

Gwojda avatar Gwojda commented on August 17, 2024
job control invalid free

from 42sh.

Comments (4)

Gwojda avatar Gwojda commented on August 17, 2024

(j'ai fermé vim pour avoir les erreurs)

from 42sh.

Gwojda avatar Gwojda commented on August 17, 2024

Lorsque je ne le ferme pas :

➜ 42sh git:(master) ✗ fg
[1] 8718 continued vim
==8560== Syscall param ioctl(generic) points to uninitialised byte(s)
==8560== at 0x100365872: __ioctl (in /usr/lib/system/libsystem_kernel.dylib)
==8560== by 0x100362E26: ioctl (in /usr/lib/system/libsystem_kernel.dylib)
==8560== by 0x100245264: tcsetattr (in /usr/lib/system/libsystem_c.dylib)
==8560== by 0x100011F9B: put_job_in_foreground (put_job_in_foreground.c:25)
==8560== by 0x1000116FD: job_run (job_run.c:20)
==8560== by 0x100010A1C: builtin_fg (builtin_fg.c:34)
==8560== by 0x10000AE56: launch_process (launch_process.c:30)
==8560== by 0x10000A58B: exec_command (exec_command.c:57)
==8560== by 0x10000AB98: ft_exec (ft_exec.c:39)
==8560== by 0x1000196DD: interactive_shell (main.c:76)
==8560== by 0x1000197C2: main (main.c:93)
==8560== Address 0x100b5d5d8 is 24 bytes inside a block of size 97 alloc'd
==8560== at 0x100038671: malloc (in /Users/gwojda/.brew/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==8560== by 0x100003EB4: ft_memalloc (in ./42sh)
==8560== by 0x100003591: ft_lstnew (in ./42sh)
==8560== by 0x100010FA0: job_addprocess (job_addprocess.c:27)
==8560== by 0x10000A59D: exec_command (exec_command.c:59)
==8560== by 0x10000AB98: ft_exec (ft_exec.c:39)
==8560== by 0x1000196DD: interactive_shell (main.c:76)
==8560== by 0x1000197C2: main (main.c:93)
==8560==

from 42sh.

jzck avatar jzck commented on August 17, 2024

je tcsetattr pour remettre les termcaps, ca a l'air d'etre un leak interne a tcsetattr/_ioctl là

from 42sh.

Gwojda avatar Gwojda commented on August 17, 2024

De ce que j'ai vu, tu initialises jamais j->tmodes
le probleme vient de la ?

from 42sh.

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.