[LU-12420] llog_reader crashes when reading llog that is not inited Created: 11/Jun/19 Updated: 26/Aug/22 Resolved: 25/Jun/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.13.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Li Xi | Assignee: | Li Xi |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
I think the problem is easy to reproduce. On a Lustre file system that doesn't have nodemap configured, which is the majority case I think, do the following:
llog_reader: Error allocating -16 bytes for recs_buf: Cannot allocate memory (12) llog_reader: Could not pack buffer.: Cannot allocate memory (12) Apparently, the llog of nodemap is never initialized so all the values are gabage. Header size : 3987452397 Time : Fri Jan 2 20:30:12 1970 Number of records: 4294967295 Target uuid : I think in this case, llog_reader should just quit with proper message printed. |
| Comments |
| Comment by Gerrit Updater [ 11/Jun/19 ] |
|
Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/35177 |
| Comment by Gerrit Updater [ 11/Jun/19 ] |
|
Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/35178 |
| Comment by Gerrit Updater [ 25/Jun/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35177/ |
| Comment by Gerrit Updater [ 25/Jun/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35178/ |
| Comment by Li Xi [ 25/Jun/19 ] |
|
I am closing this ticket since all two patches are merged. |
| Comment by Gerrit Updater [ 23/Aug/22 ] |
|
"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/48302 |
| Comment by Gerrit Updater [ 23/Aug/22 ] |
|
"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/48303 |