[OpenSIPS-Users] Core Dump

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Feb 19 14:39:35 CET 2010


Hi Nathaniel,

Normally there should be no need to add any params, as opensips makefile 
should detect the correct OS and arch.

So, without the mcpu you added, what is the problem? does not compile? or ?

The crash may be related to the forcing of a different CPU type - if the 
compiler added some instructions which are not understood by cpu.

Regards,
Bogdan

Nathaniel L Keeling wrote:
> I have compiled opensips 1.6.1 on Solaris Sparc 10. I was able to 
> compile successfully by adding the parameter "-mcpu=ultrasparc" to the 
> "DEFS" compile time options in Makefile.defs, but when I execute 
> opensips, it will die with a core dump. It does thru the loading of the 
> modules ok but dies later. I have included part of the output from 
> running opensips with truss and the output from opensips.
>
> Feb 18 13:44:56 [4447] DBG:core:find_cmd_export_t: found <xlog>(1) in 
> module xlog [/usr/local/opensips-1.6.1/lib64/opensips/modules/]
> Feb 18 13:44:56 [4447] DBG:core:find_cmd_export_t: found <xlog>(1) in 
> module xlog [/usr/local/opensips-1.6.1/lib64/opensips/modules/]
> Feb 18 13:44:56 [4447] DBG:core:find_cmd_export_t: found 
> <t_was_cancelled>(0) in module tm 
> [/usr/local/opensips-1.6.1/lib64/opensips/modules/]
> Feb 18 13:44:56 [4447] DBG:core:socket2str: <udp:xxx.xxx.xxx.xxx:5060>
> Feb 18 13:44:56 [4447] DBG:core:socket2str: <tcp:xxx.xxx.xxx.xxx:5060>
> Listening on
>              udp: xxxxxxxxxxxxxxxxxx.com [xxx.xxx.xxx.xxx]:5060
>              tcp: xxxxxxxxxxxxxxxxxx.com [xxx.xxx.xxx.xxx]:5060
> Aliases:
>
> Feb 18 13:44:56 [4447] WARNING:core:main: no fork mode
> Feb 18 13:44:56 [4447] DBG:core:fm_malloc_init: F_OPTIMIZE=16384, 
> /ROUNDTO=2048
> Feb 18 13:44:56 [4447] DBG:core:fm_malloc_init: F_HASH_SIZE=2067, 
> fm_block size=16568
> Feb 18 13:44:56 [4447] DBG:core:fm_malloc_init: params (fcc00000, 
> 33554432), start=fcc00000
> Feb 18 13:44:56 [4447] DBG:core:shm_mem_init_mallocs: success
> Bus Error - core dumped
>
> *Output from truss running opensips:*
>
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   D B G : c o r e :", 11)          = 11
> 4327:   write(2, " f i n d _ c m d _ e x p".., 17)      = 17
> 4327:   write(2, " :   f o u n d   <", 9)               = 9
> 4327:   write(2, " t _ w a s _ c a n c e l".., 15)      = 15
> 4327:   write(2, " > ( 0", 3)                           = 3
> 4327:   write(2, " )   i n   m o d u l e  ", 12)        = 12
> 4327:   write(2, " t m   [", 4)                         = 4
> 4327:   write(2, " / u s r / l o c a l / o".., 49)      = 49
> 4327:   write(2, " ]\n", 2)                             = 2
> 4327:   ioctl(3, TCGETA, 0xFFBFF46C)                    Err#25 ENOTTY
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 4
> 4327:   ioctl(4, SIOCGLIFNUM, 0xFFBFFA84)               = 0
> 4327:   close(4)                                        = 0
> 4327:   sysinfo(SI_SRPC_DOMAIN, "", 256)                = 1
> 4327:   open("/etc/resolv.conf", O_RDONLY|O_LARGEFILE)  = 4
> 4327:   fcntl(4, F_DUPFD, 0x00000100)                   Err#22 EINVAL
> 4327:   read(4, " d o m a i n   a k a n .".., 1024)     = 73
> 4327:   read(4, 0x00294A38, 1024)                       = 0
> 4327:   close(4)                                        = 0
> 4327:   so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 4
> 4327:   ioctl(4, SIOCGIFCONF, 0xFFBFF5B0)               = 0
> 4327:   ioctl(4, SIOCGIFCONF, 0xFFBFF5B0)               = 0
> 4327:   ioctl(4, SIOCGIFFLAGS, 0xFFBFF570)              = 0
> 4327:   ioctl(4, SIOCGIFFLAGS, 0xFFBFF570)              = 0
> 4327:   close(4)                                        = 0
> 4327:   brk(0x00295F60)                                 = 0
> 4327:   brk(0x00297F60)                                 = 0
> 4327:   open("/etc/netconfig", O_RDONLY|O_LARGEFILE)    = 4
> 4327:   fcntl(4, F_DUPFD, 0x00000100)                   Err#22 EINVAL
> 4327:   read(4, " # p r a g m a   i d e n".., 1024)     = 1024
> 4327:   read(4, " t s           t p i _ c".., 1024)     = 215
> 4327:   read(4, 0x00296B80, 1024)                       = 0
> 4327:   lseek(4, 0, SEEK_SET)                           = 0
> 4327:   read(4, " # p r a g m a   i d e n".., 1024)     = 1024
> 4327:   read(4, " t s           t p i _ c".., 1024)     = 215
> 4327:   read(4, 0x00296B80, 1024)                       = 0
> 4327:   close(4)                                        = 0
> 4327:   open("/dev/udp", O_RDONLY)                      = 4
> 4327:   ioctl(4, SIOCGLIFNUM, 0xFFBFF474)               = 0
> 4327:   close(4)                                        = 0
> 4327:   open("/dev/udp", O_RDONLY)                      = 4
> 4327:   ioctl(4, SIOCGLIFNUM, 0xFFBFF474)               = 0
> 4327:   close(4)                                        = 0
> 4327:   getuid()                                        = 0 [0]
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   open("/proc/4327/psinfo", O_RDONLY)             = 4
> 4327:   read(4, "02\0\0\0\0\0\001\0\010E7".., 336)      = 336
> 4327:   close(4)                                        = 0
> 4327:   mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, 
> MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC30000
> 4327:   getuid()                                        = 0 [0]
> 4327:   getuid()                                        = 0 [0]
> 4327:   open64("/var/run/name_service_door", O_RDONLY)  = 4
> 4327:   fcntl(4, F_SETFD, 0x00000001)                   = 0
> 4327:   door_info(4, 0xFF1C1788)                        = 0
> 4327:   door_call(4, 0xFFBFF228)                        = 0
> 4327:   open("/etc/default/nss", O_RDONLY|O_LARGEFILE)  = 5
> 4327:   fcntl(5, F_DUPFD, 0x00000100)                   Err#22 EINVAL
> 4327:   read(5, " #   i d e n t\t " @ ( #".., 1024)     = 1024
> 4327:   read(5, " y   t h o s e\n # f u n".., 1024)     = 211
> 4327:   read(5, 0x00297100, 1024)                       = 0
> 4327:   close(5)                                        = 0
> 4327:   time()                                          = 1266479116
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   D B G : c o r e :", 11)          = 11
> 4327:   write(2, " s o c k e t 2 s t r", 10)            = 10
> 4327:   write(2, " :   <", 3)                           = 3
> 4327:   write(2, " u d p : 2 0 9 . 2 5 2 .".., 23)      = 23
> 4327:   write(2, " >\n", 2)                             = 2
> 4327:   so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_DEFAULT) = 5
> 4327:   ioctl(5, SIOCGIFCONF, 0xFFBFF5B0)               = 0
> 4327:   ioctl(5, SIOCGIFCONF, 0xFFBFF5B0)               = 0
> 4327:   ioctl(5, SIOCGIFFLAGS, 0xFFBFF570)              = 0
> 4327:   ioctl(5, SIOCGIFFLAGS, 0xFFBFF570)              = 0
> 4327:   close(5)                                        = 0
> 4327:   getuid()                                        = 0 [0]
> 4327:   getuid()                                        = 0 [0]
> 4327:   door_info(4, 0xFFBFF180)                        = 0
> 4327:   door_call(4, 0xFFBFF228)                        = 0
> 4327:   time()                                          = 1266479116
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   D B G : c o r e :", 11)          = 11
> 4327:   write(2, " s o c k e t 2 s t r", 10)            = 10
> 4327:   write(2, " :   <", 3)                           = 3
> 4327:   write(2, " t c p : 2 0 9 . 2 5 2 .".., 23)      = 23
> 4327:   write(2, " >\n", 2)                             = 2
> 4327:   ioctl(1, TCGETA, 0xFFBFFA34)                    = 0
> 4327:   fstat64(1, 0xFFBFF950)                          = 0
> 4327:   write(1, " L i s t e n i n g   o n".., 14)      = 14
> 4327:   write(1, "                        ".., 70)      = 70
> 4327:   write(1, "                        ".., 70)      = 70
> 4327:   write(1, " A l i a s e s :  \n", 10)            = 10
> 4327:   write(1, "\n", 1)                               = 1
> 4327:   time()                                          = 1266479116
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   W A R N I N G : c o".., 15)      = 15
> 4327:   write(2, " m a i n", 4)                         = 4
> 4327:   write(2, " :   n o   f o r k   m o".., 15)      = 15
> 4327:   write(2, "\n", 1)                               = 1
> 4327:   time()                                          = 1266479116
> 4327:   open("/dev/zero", O_RDWR)                       = 5
> 4327:   mmap(0x00000000, 33554432, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 
> 0) = 0xFCC00000
> 4327:   close(5)                                        = 0
> 4327:   time()                                          = 1266479116
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   D B G : c o r e :", 11)          = 11
> 4327:   write(2, " f m _ m a l l o c _ i n".., 14)      = 14
> 4327:   write(2, " :   F _ O P T I M I Z E".., 13)      = 13
> 4327:   write(2, " 1 6 3 8 4", 5)                       = 5
> 4327:   write(2, " ,   / R O U N D T O =", 11)          = 11
> 4327:   write(2, " 2 0 4 8", 4)                         = 4
> 4327:   write(2, "\n", 1)                               = 1
> 4327:   time()                                          = 1266479116
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   D B G : c o r e :", 11)          = 11
> 4327:   write(2, " f m _ m a l l o c _ i n".., 14)      = 14
> 4327:   write(2, " :   F _ H A S H _ S I Z".., 14)      = 14
> 4327:   write(2, " 2 0 6 7", 4)                         = 4
> 4327:   write(2, " ,   f m _ b l o c k   s".., 16)      = 16
> 4327:   write(2, " 1 6 5 6 8", 5)                       = 5
> 4327:   write(2, "\n", 1)                               = 1
> 4327:   time()                                          = 1266479116
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   D B G : c o r e :", 11)          = 11
> 4327:   write(2, " f m _ m a l l o c _ i n".., 14)      = 14
> 4327:   write(2, " :   p a r a m s   (", 10)            = 10
> 4327:   write(2, " f c c 0 0 0 0 0", 8)                 = 8
> 4327:   write(2, " ,  ", 2)                             = 2
> 4327:   write(2, " 3 3 5 5 4 4 3 2", 8)                 = 8
> 4327:   write(2, " ) ,   s t a r t =", 9)               = 9
> 4327:   write(2, " f c c 0 0 0 0 0", 8)                 = 8
> 4327:   write(2, "\n", 1)                               = 1
> 4327:   time()                                          = 1266479116
> 4327:   getpid()                                        = 4327 [4326]
> 4327:   write(2, " F e b   1 8   0 1 : 4 5".., 15)      = 15
> 4327:   write(2, "   [", 2)                             = 2
> 4327:   write(2, " 4 3 2 7", 4)                         = 4
> 4327:   write(2, " ]   D B G : c o r e :", 11)          = 11
> 4327:   write(2, " s h m _ m e m _ i n i t".., 20)      = 20
> 4327:   write(2, " :   s u c c e s s\n", 10)            = 10
> 4327:       Incurred fault #5, FLTACCESS  %pc = 0x00094268
> 4327:         siginfo: SIGBUS BUS_ADRALN addr=0xFCC040EC
> 4327:       Received signal #10, SIGBUS [default]
> 4327:         siginfo: SIGBUS BUS_ADRALN addr=0xFCC040EC
>
> thanks
>
> nathaniel
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list