[Asterisk-Dev] Asterisk segmentation fault on MPC8260

artemisio.palagotti artemisio.palagotti at libero.it
Wed Nov 17 01:45:01 MST 2004


> Hi all, 
> I've cross-compiled Asterisk for a board with Motorola MPC8260 using ELDK
tools from 
> www.denx.de. I'm using Asterisk 1.0.0 and SIP protocol. The board has 32MB of
RAM and 16MB 
> of FLASH. 
> When asterisk starts there are 2MBytes free (see with top). All works fine but
there is a sequence 
> of operation that generate a segmentetion fault for Asterisk (see with strace
-p <asterisk pid>). 
> This condition appears only if a registered SIP user make a call to another
user present in sip.conf 
> file but not register to Asterisk. After this condition the first child
Asterisk process becames 
> zombie (see with ps -ax command). Has anyone any idea ? 

I've trace my problem with STRACE. I make a SIP call with kphone at number
99999. This user is present in the sip.conf file but it isn't registered. After
3 call at this number and making 'stop now' command the process 1525 become
zombie. This is the trace. Asterisk start with PID 1522:

process PID 1522:

clone(child_stack=0x30226bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1523
--- SIGRT_1 (Unknown signal 33) ---
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG|__WCLONE, NULL) = 1523
wait4(-1, 0x100c5e98, WNOHANG|__WCLONE, NULL) = -1 ECHILD (No child processes)
exit(0) 

process PID 1523:

--- SIGRT_0 (Unknown signal 32) ---
exit(0)                                 = ?

process PID 1524

clone(child_stack=0x100c6010, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND)
= 1525

process PID 1525

clone(child_stack=0x30226bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1526
clone(child_stack=0x30427bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1527
clone(child_stack=0x30628bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1528
clone(child_stack=0x30829bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1529
clone(child_stack=0x30a2abd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1530
clone(child_stack=0x30c2bbd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1531
clone(child_stack=0x30e2cbd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1532
clone(child_stack=0x3102dbd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1533
clone(child_stack=0x3122ebd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1534
clone(child_stack=0x3142fbd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1535
clone(child_stack=0x31630bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1536
clone(child_stack=0x31831bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1537
clone(child_stack=0x31a32bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1538
clone(child_stack=0x31c33bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1539
clone(child_stack=0x31e34bd0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|0x21) = 1548
--- SIGRT_1 (Unknown signal 33) ---
wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG|__WCLONE, NULL) = 1539

What are the unknown signal 32 and 33 ? Is it a memory problem (32MB of SDRAM) ?
Has anyone any idea ?

Regards,
Arty.





---------- Initial Header -----------

>From      : asterisk-dev-bounces at lists.digium.com
To          : "asterisk-dev" asterisk-dev at lists.digium.com
Cc          : 
Date      : Thu, 11 Nov 2004 16:37:56 +0100
Subject : [Asterisk-Dev] Asterisk segmentation fault on MPC8260

> Hi all, 
> I've cross-compiled Asterisk for a board with Motorola MPC8260 using ELDK
tools from 
> www.denx.de. I'm using Asterisk 1.0.0 and SIP protocol. The board has 32MB of
RAM and 16MB 
> of FLASH. 
> When asterisk starts there are 2MBytes free (see with top). All works fine but
there is a sequence 
> of operation that generate a segmentetion fault for Asterisk (see with strace
-p <asterisk pid>). 
> This condition appears only if a registered SIP user make a call to another
user present in sip.conf 
> file but not register to Asterisk. After this condition the first child
Asterisk process becames 
> zombie (see with ps -ax command). Has anyone any idea ? 
>  
> Regards, 
> Arty. 
> 
> 
> 
> ____________________________________________________________
> Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di attivazione. 
> Abbonati subito su http://www.libero.it 
> 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 



____________________________________________________________
Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di attivazione. 
Abbonati subito su http://www.libero.it 





More information about the asterisk-dev mailing list