Description of problem: "motion" segfaults on pthread lib. When I do a backtrace, it seems that the problem comes for some MUTEX call in trousers. I get this backtrace on gdb. Funda, let me know if I can be of any help. Cheers, Chris. (gdb) run Starting program: /usr/bin/motion [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffec032700 (LWP 24588)] [Thread 0x7fffec032700 (LWP 24588) exited] [6713360] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion.conf [6713360] [NTC] [ALL] motion_startup: Motion Git-8619d7c17ce112e7196975905c6e840f345141ba Started with SDL support [6713360] [NTC] [ALL] motion_startup: Logging to syslog [6713360] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC) Detaching after fork from child process 24589. [6713360] [NTC] [ALL] become_daemon: Motion going to daemon mode Program received signal SIGSEGV, Segmentation fault. __GI___pthread_mutex_lock (mutex=0x8) at pthread_mutex_lock.c:50 50 unsigned int type = PTHREAD_MUTEX_TYPE (mutex); (gdb) up #1 0x00007fffeda9ea84 in host_table_final () at rpc/hosttable.c:54 54 MUTEX_LOCK(ht->lock); (gdb) up #2 0x00007ffff7decb7f in _dl_fini () at dl-fini.c:253 253 ((fini_t) array[i]) (); (gdb) down #1 0x00007fffeda9ea84 in host_table_final () at rpc/hosttable.c:54 54 MUTEX_LOCK(ht->lock); (gdb) down #0 __GI___pthread_mutex_lock (mutex=0x8) at pthread_mutex_lock.c:50 50 unsigned int type = PTHREAD_MUTEX_TYPE (mutex); (gdb) bt #0 __GI___pthread_mutex_lock (mutex=0x8) at pthread_mutex_lock.c:50 #1 0x00007fffeda9ea84 in host_table_final () at rpc/hosttable.c:54 #2 0x00007ffff7decb7f in _dl_fini () at dl-fini.c:253 #3 0x00007ffff54fb5b1 in __run_exit_handlers (status=status@entry=0, listp=0x7ffff586a5c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77 #4 0x00007ffff54fb635 in __GI_exit (status=status@entry=0) at exit.c:99 #5 0x00000000004083ef in become_daemon () at motion.c:2289 #6 motion_startup (daemonize=daemonize@entry=1, argc=argc@entry=1, argv=argv@entry=0x7fffffffdb58) at motion.c:2512 #7 0x00000000004065c6 in main (argc=1, argv=0x7fffffffdb58) at motion.c:2662
Assignee: bugsquad => fundawang
Thanks for the fix/rebuild Funda, works fine now. I close.
Status: NEW => RESOLVEDResolution: (none) => FIXED