[so] [Tema 4] [Linux] Probleme pthread_create
Alexandru Fazakas
alex.fazakas97 at gmail.com
Wed May 8 00:06:32 EEST 2019
Salut,
Are cineva idee ce ar putea cauza probleme la pthread_create? Din ce am
observat,
se creeaza un thread nou, insa functia pe care o pasez ca argument nu este
rulata,
ci doar se termina brusc thread-ul. Am incercat sa iau instructiunile la
mana prin gdb, insa
cam asta se intampla cand dau next instruction prin functia de pe thread:
`[Switching to thread 2 (Thread 0x7ffff75c0700 (LWP 11822))]
#0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:78
78 ../sysdeps/unix/sysv/linux/x86_64/clone.S: No such file or directory.
(gdb) ni
79 in ../sysdeps/unix/sysv/linux/x86_64/clone.S
(gdb)
(so_scheduler.c, 182): pthread_join error: Success
`
Intr-un final, programul crapa la pthread_join, pentru ca nu exista niciun
thread cu id-ul
pe care incerc eu sa fac join. Suna cumva cunoscuta situatia cuiva?
In caz ca vrea cineva sa arunce o privire pe Gitlab, contul LDAP este
alexandru.fazakas.
Seara faina,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20190508/ef58af4b/attachment-0001.html>
More information about the so
mailing list