Comments (4)
(j'ai fermé vim pour avoir les erreurs)
from 42sh.
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.
je tcsetattr
pour remettre les termcaps, ca a l'air d'etre un leak interne a tcsetattr/_ioctl là
from 42sh.
De ce que j'ai vu, tu initialises jamais j->tmodes
le probleme vient de la ?
from 42sh.
Related Issues (20)
- job control ls -lR & : superflous error message No child process
- cat < no_suchfile => no error message
- cat file fwewefe 1>other 2>&1
- ./42sh | ./42sh HOT 1
- leaks sur case HOT 2
- Redirection: conditional jump depends on uninitialised value. HOT 2
- leaks fds HOT 4
- bang with DQUOTE HOT 4
- case.sh HOT 1
- subshell_pipe LEAKS HOT 2
- jobs control LEAKS
- Builtin echo: infinite loop HOT 1
- Builtin env: leaks when using a wrong option HOT 2
- leaks sur la lecture des samples ne pas faire corriger la-dessus pour ceux locker
- ne pas utiliser les backquotes en correction
- exit -1 mauvaise valeur de retour HOT 1
- echo "\$HOME"
- segv sur hash HOT 3
- cd sur dossier sans droits
- heredoc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 42sh.