[so] probleme exit(0)

cata cata mcatalina_87 at yahoo.com
Sun Mar 29 01:12:12 EET 2009


am incercat sa mai fac unele modificari insa am acceasi eroare.
am rulat executabilul cu strace -f ./CUseParser (e exemplul din arhiva pusa pe site la care am facut modificari). 
comenzile pe care le dau in shell sunt 
./CUseParser
./CUseParser
exit
exit
exit
outputul lui strace pentru ultimele doua comenzi este urmatorul:
[pid  6294] read(0, exit
"exit\n", 1024)     = 5
[pid  6294] open("/dev/tty", O_RDWR|O_NONBLOCK|O_NOCTTY) = 3
[pid  6294] writev(3, [{"*** glibc detected *** ", 23}, {"free(): invalid pointer", 23}, {": 0x", 4}, {"08050480", 8}, {" ***\n", 5}], 5*** glibc detected *** free(): invalid pointer: 0x08050480 ***
) = 63
[pid  6294] rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
[pid  6294] gettid()                    = 6294
[pid  6294] tgkill(6294, 6294, SIGABRT) = 0
[pid  6294] --- SIGABRT (Aborted) @ 0 (0) ---
Process 6289 resumed
Process 6294 detached
<... waitpid resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0) = 6294
--- SIGCHLD (Child exited) @ 0 (0) ---
write(1, "> ", 2> )                       = 2
read(0, exit
"exit\n", 1024)                 = 5
open("/dev/tty", O_RDWR|O_NONBLOCK|O_NOCTTY) = 3
writev(3, [{"*** glibc detected *** ", 23}, {"free(): invalid pointer", 23}, {": 0x", 4}, {"08050480", 8}, {" ***\n", 5}], 5*** glibc detected *** free(): invalid pointer: 0x08050480 ***
) = 63
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid()                                = 6289
tgkill(6289, 6289, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
Process 6289 detached

Poate se pricepe cineva mai bine la asta ca eu nu stiu cum as putea rezolva




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090328/e7dc6ea1/attachment.htm>


More information about the so mailing list