davfs2 umount.davfs crashes when compiled with gcc 9
Bug #1859293 reported by
Joseph Yasi
This bug report is a duplicate of:
Bug #1883025: [focal SRU] davfs2 unable to unmount: segfault error 4 in libc.so.
Edit
Remove
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
davfs2 (Fedora) |
Fix Released
|
Critical
|
|||
davfs2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
davfs2 uses the fscanf format string "%a[0-9]". "%a" is part of C89, but not C99, and tells fscanf to do the string allocation.
The fscanf man page states:
Note that the a modifier is not available if the program is compiled with gcc -std=c99 or gcc -D_ISOC99_SOURCE (unless _GNU_SOURCE is also specified), in which case the a is interpreted as a specifier for floating-point numbers (see above).
Support for the m modifier was added to glibc starting with version 2.7, and new programs should use that modifier instead of a.
Switching the a to an m prevents the crash.
Changed in davfs2 (Fedora): | |
importance: | Unknown → Critical |
status: | Unknown → Fix Committed |
Changed in davfs2 (Fedora): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Description of problem: while trying to unmount a davfs filesystem davfs crashes
Version-Release number of selected component (if applicable): davfs2- 1.5.4-9. fc30.x86_ 64
How reproducible: always
systemd- coredump[ 1456]: Process 1454 (umount.davfs) of user 1000 dumped core.
Gentoo users have already found this bug and it could be solved by using -std=c89 compilation flag
https:/ /forums. gentoo. org/viewtopic- p-8331344. html?sid= 86512aac8febf82 59dee6fcee5bf13 45