Bug 32004 - Plocate crashes with an invalid pointer
Summary: Plocate crashes with an invalid pointer
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-10 20:56 CEST by Brian Kimerer
Modified: 2023-06-11 22:34 CEST (History)
1 user (show)

See Also:
Source RPM: plocate-1.1.17-2.mga9
CVE:
Status comment:


Attachments

Description Brian Kimerer 2023-06-10 20:56:08 CEST
Description of problem:

plocate crashes with an invalid pointer every time I try to use it.

Version-Release number of selected component (if applicable):

plocate-1.1.17-2.mga9

How reproducible:

Always

Steps to Reproduce:

$ plocate howto
free(): invalid pointer
Aborted

$ inxi -b
System:
  Host: linux6core Kernel: 6.3.7-desktop-1.mga9 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.5 Distro: Mageia 9
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG Z490 GAMING EDGE WIFI (MS-7C79)
    v: 1.0 serial: <superuser required> UEFI: American Megatrends v: 1.C0
    date: 06/10/2022
CPU:
  Info: 6-core 11th Gen Intel Core i5-11400 [MT MCP] speed (MHz): avg: 2450
    min/max: 800/4400
Graphics:
  Device-1: NVIDIA GM107 [GeForce GTX 750 Ti] driver: nouveau v: kernel
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: nouveau unloaded: fbdev,modesetting,vesa dri: nouveau gpu: nouveau
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.3 Mesa 23.1.2 renderer: NV117
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi
  Device-2: Realtek RTL8125 2.5GbE driver: r8169
  Device-3: Qualcomm Atheros AR9271 802.11n type: USB driver: ath9k_htc
Drives:
  Local Storage: total: 954.81 GiB used: 41.49 GiB (4.3%)
Info:
  Processes: 402 Uptime: 6h 27m Memory: 31.24 GiB used: 2.67 GiB (8.5%)
  Shell: Bash inxi: 3.3.26
Comment 1 Brian Kimerer 2023-06-10 21:18:18 CEST
I ran plocate again using gdb.

# gdb plocate
GNU gdb (GDB) 12.1-7.mga9 (Mageia release 9)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from plocate...
Reading symbols from .gnu_debugdata for /usr/bin/plocate...
(No debugging symbols found in .gnu_debugdata for /usr/bin/plocate)
Missing separate debuginfos, use: debuginfo-install plocate-1.1.17-2.mga9.x86_64
(gdb) run -i howto
Starting program: /usr/bin/plocate -i howto
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
free(): invalid pointer

Program received signal SIGABRT, Aborted.
0x00007ff84f0b33ec in __pthread_kill_implementation () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ff84f0b33ec in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007ff84f0648d2 in raise () from /lib64/libc.so.6
#2  0x00007ff84f050464 in abort () from /lib64/libc.so.6
#3  0x00007ff84f0a7838 in __libc_message () from /lib64/libc.so.6
#4  0x00007ff84f0bc28a in malloc_printerr () from /lib64/libc.so.6
#5  0x00007ff84f0bde04 in _int_free () from /lib64/libc.so.6
#6  0x00007ff84f0c037b in free () from /lib64/libc.so.6
#7  0x000000000040ad76 in do_search_file(std::vector<Needle, std::allocator<Needle> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#8  0x000000000040448a in main ()
Comment 2 Thomas Backlund 2023-06-10 21:45:07 CEST
there is a plocate-1.1.19-1.mga9 in core updates testing that should work better, please test
Comment 3 Brian Kimerer 2023-06-11 14:29:31 CEST
Updated and tested. The new version works fine.
Comment 4 Lewis Smith 2023-06-11 21:13:40 CEST
Thank you Brian for the report; and tmb for his quick response; and Brian again for trying the update - successfully.

I am unsure whether this needs to go via QA [core updates testing]. My feeling is to close it fixed; but CC'ing QA in case they want it first (reopen). If not, it is already resolved.

Status: NEW => RESOLVED
Assignee: bugsquad => qa-bugs
Resolution: (none) => FIXED

Comment 5 Dave Hodgins 2023-06-11 22:34:48 CEST
It's cauldron. The freeze push has been requested.

CC: (none) => davidwhodgins


Note You need to log in before you can comment on or make changes to this bug.