Bug 7430

Summary: segfaults at hosttable.c:54
Product: Mageia Reporter: Chris Denice <eatdirt>
Component: RPM PackagesAssignee: Funda Wang <fundawang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: trousers-0.3.9-2.mga3 CVE:
Status comment:

Description Chris Denice 2012-09-10 17:37:12 CEST
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
Manuel Hiebel 2012-10-07 11:45:34 CEST

Assignee: bugsquad => fundawang

Comment 1 Chris Denice 2013-01-09 02:38:37 CET
Thanks for the fix/rebuild Funda, works fine now. I close.

Status: NEW => RESOLVED
Resolution: (none) => FIXED