Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473244 - app-misc/mc: mc{,edit} segfaults when mc's tempdir doesn't belong to the correct user
Summary: app-misc/mc: mc{,edit} segfaults when mc's tempdir doesn't belong to the corr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alex Alexander (RETIRED)
URL: https://www.midnight-commander.org/ti...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-14 05:28 UTC by Raymond Jennings
Modified: 2013-06-19 13:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo.txt,5.21 KB, text/plain)
2013-06-14 05:30 UTC, Raymond Jennings
Details
3021_segfault_unowned_temp_dir.diff (3021_segfault_unowned_temp_dir.diff,651 bytes, patch)
2013-06-15 12:39 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Jennings 2013-06-14 05:28:47 UTC
segfaulting is bad, see debug log and backtrace

Reproducible: Always

Steps to Reproduce:
see debug log
Comment 1 Raymond Jennings 2013-06-14 05:29:23 UTC
Debug log:

ulario@warfang 3 kotaka $ mcedit kotaka.dgd
Directory /tmp/mc-ulario is not owned by you
Segmentation fault (core dumped)
ulario@warfang 3 kotaka $ gdb mcedit core
GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/mcedit...Reading symbols from /usr/lib/debug/usr/bin/mc.debug...done.
done.
[New LWP 18380]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
bCore was generated by `mcedit kotaka.dgd'.
Program terminated with signal 11, Segmentation fault.
#0  0x08097a6c in vfs_path_from_str_flags ()
(gdb) bt
#0  0x08097a6c in vfs_path_from_str_flags ()
#1  0x08097c94 in vfs_path_from_str ()
#2  0x08083206 in mc_mkstemps ()
#3  0x08082dde in mc_tmpdir ()
#4  0x0805505f in main ()
(gdb)
Comment 2 Raymond Jennings 2013-06-14 05:30:16 UTC
Created attachment 350930 [details]
emerge --info
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-06-14 09:04:32 UTC
Thanks for the report. Opened an upstream ticket, see URL field in this bug.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-06-15 12:39:29 UTC
Created attachment 350994 [details, diff]
3021_segfault_unowned_temp_dir.diff

Please find attached a patch from the upstream bug.
Please test and report back if it fixes the segfault.
Comment 5 Raymond Jennings 2013-06-15 18:45:47 UTC
Works
Comment 6 Alex Alexander (RETIRED) gentoo-dev 2013-06-19 13:37:04 UTC
Patch added to mc-4.8.8-r1.

Thanks :)