Wind River Support Network

HomeDefectsLIN8-12211
Fixed

LIN8-12211 : gzclose hangs on NFS mount

Created: Mar 9, 2020    Updated: May 6, 2020
Resolved Date: Apr 20, 2020
Found In Version: 8.0.0.30
Fix Version: 8.0.0.33
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Networking

Description

Scenario: Poweroff of NFS mount board

Reproduced on: WRL 8.0.0.28_standard version, BSP: fsl-t4240

 

Analysis :

 

gzclose API hangs on below scenario.

 
 # gzopen a file on remote board file which is NFS mount
 # Power off the remote board
 # gzclose the file right after power off

 

Please attachment for libraries and debug files. (Please raise ticket so that I will attach complete libraries)

 

Please check the thread 1937 on core dump.

(gdb) t 8

[Switching to thread 8 (LWP 1937)]

#0  0x00003fff875c85a0 in .__close () at ../sysdeps/unix/syscall-template.S:84

84           ../sysdeps/unix/syscall-template.S: No such file or directory.

(gdb) info locals

No locals.

(gdb) bt

#0  0x00003fff875c85a0 in .__close () at ../sysdeps/unix/syscall-template.S:84

#1  0x00003fff87980048 in gzclose_w (file=0x3fff704e66b0) at gzwrite.c:573

#2  0x00003fff8797d224 in gzclose (file=<optimized out>) at gzclose.c:21

#3  0x0000000010041568 in gzfilebuf::close (this=0x3fff70509c98) at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/zfstream.cpp:118

#4  0x0000000010042a6c in gzofstream::close (this=0x3fff70509c98) at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/zfstream.cpp:478

#5  0x000000001002c4ac in PmrGPHandler::closeROPFile (this=0x3fff70032910) at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/PmrGPHandler.cpp:1218

#6  0x000000001002da58 in PmrGPHandler::timerExpired (this=0x3fff70032910, timerId=<optimized out>)

    at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/PmrGPHandler.cpp:1076

#7  0x0000000010038f7c in PmrTimingInterface::handleTimingIfInd (this=0x3fff70031e30, sigRec_p=<optimized out>)

    at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/PmrTimingInterface.cpp:381

#8  0x00000000100393a0 in PmrTimingInterface::dispatchSignal (this=0x3fff70031e30, sigRec_p=0x3fff70134a70)

    at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/PmrTimingInterface.cpp:218

#9  0x00000000100057f8 in dispatchSignal (sig_p=0x3fff70134a70, this=<optimized out>)

    at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/Mediator.h:154

#10 PmReporterRoot::rootRun (this=0x3fff70031b20, pid=<optimized out>) at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/PmReporterRoot.cpp:232

#11 0x0000000010007b0c in Oms_pm_reporter_proc__ () at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/PmReporterRoot.cpp:610

#12 Oms_pm_reporter_proc () at /repo/cpp.sub.1/control/OMS_CRX90148_1/oms_pmreporter_bl/src/swu/PmReporterRoot.cpp:591

#13 0x00003fff87af734c in thread_start (arg=0x100d5140) at exec.c:1225

#14 0x00003fff875bbb30 in start_thread (arg=0x3fff8668d9b0) at pthread_create.c:462

#15 0x00003fff87505d0c in .__clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S:45

Steps to Reproduce

The NFS server is switched off whilst the client has a file open.
Live chat
Online