View Issue Details

IDProjectCategoryView StatusLast Update
0000048Pgpool-IIBugpublic2013-02-01 10:28
Reporterchads Assigned Tonagata  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformFedora release 17OSLinux x86_64OS Version3.6.11-1
Fixed in Version3.2 
Summary0000048: watchdog crash
Descriptionpthread_detach is being used wrong; causes pgpool to segfault.
Steps To Reproduceconfigure watchdog in pgpool.conf
Additional Informationincluded a patch that resolves the issue
TagsNo tags attached.

Activities

chads

2013-01-16 05:44

reporter  

pthread_detach.patch (1,294 bytes)   
pthread_detach.patch (1,294 bytes)   

chads

2013-01-16 22:21

reporter   ~0000217

I found a few more instances of pthread_detach being used wrong. I'm attaching an updated patch.

chads

2013-01-16 22:21

reporter  

nagata

2013-01-17 15:21

developer   ~0000218

I agree to remove unnecessary pthread_detach() that cause segfault.
However, adding pthread_detach(pthread_self()) in the thread function
isn't adequate, because the thread should return a value.

I think, we should use only pthread_join, and remove all pthread_detach.

chads

2013-01-17 23:18

reporter   ~0000219

Continued testing revealed problems with using pthread_self(), especially in regards wd_lifecheck. I agree; continue to use pthread_join(), which is required, and remove the pthread_detach() calls.

chads

2013-01-17 23:19

reporter  

pthread_detach-20130117.patch (5,261 bytes)   
pthread_detach-20130117.patch (5,261 bytes)   

nagata

2013-02-01 10:27

developer   ~0000223

I confirmed that your new patch works well.
We'll adopt this into the next release.

Issue History

Date Modified Username Field Change
2013-01-16 05:44 chads New Issue
2013-01-16 05:44 chads File Added: pthread_detach.patch
2013-01-16 10:08 anzai Assigned To => nagata
2013-01-16 10:08 anzai Status new => assigned
2013-01-16 22:21 chads Note Added: 0000217
2013-01-16 22:21 chads File Added: pthread_detach.patch-20120116
2013-01-17 15:21 nagata Note Added: 0000218
2013-01-17 23:18 chads Note Added: 0000219
2013-01-17 23:19 chads File Added: pthread_detach-20130117.patch
2013-02-01 10:27 nagata Note Added: 0000223
2013-02-01 10:28 nagata Status assigned => resolved
2013-02-01 10:28 nagata Fixed in Version => 3.2
2013-02-01 10:28 nagata Resolution open => fixed