[Home]

Summary:ASTERISK-09098: Manager causes segfault in generic_http_callback when run_tool run from the Gui.
Reporter:Brandon Kruse (bkruse)Labels:
Date Opened:2007-03-25 15:24:35Date Closed:2007-06-14 16:58:06
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/ManagerInterface
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) btfull.core1.txt
( 1) btfull.core2.txt
( 2) log.txt
Description:Hey guys,

When you issue system commands from the GUI (aka astmanEngine.run_tool) it will segfault (core dump attached ).

I can reproduce it everytime. astmanEngine.run_tool just originates a call to an extension that makes a system call with the command.

I will attach log/debug and coredump.

if you remove the fclose(s->f) of course it works, but the file pipe is never closed and you eventually run into too many open files.


-brandon (this also causes other verbose logs from other functions where s->fd = -1; right afterwards.....

errors include
Comments:By: Brandon Kruse (bkruse) 2007-03-25 15:29:26

Sorry, its not line 3004, thats including my changes.

its in generic_http_callback where it fclose(s->f) you can see it in the core dump, my apologies.

-bkruse

By: Brandon Kruse (bkruse) 2007-03-25 15:35:22

The other error i kept seeing at the console is:

fd == -1 in astman_append, should not happen

By: Russell Bryant (russell) 2007-06-06 15:19:34

I'm sorry it has been so long ... when you get a chance, can you get with me to see if this is still an issue?

By: Brandon Kruse (bkruse) 2007-06-14 16:56:15

Hey Russell!!

As you know, I have been messing with the GUI lots.

The problem does not seem to exist in trunk as of now, so I suppose you can close this, and I will reopen if it is still a problem.

Thanks bud!


-bkruse

By: Russell Bryant (russell) 2007-06-14 16:58:06

closed since it appears to be fixed