Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on startup #3441

Closed
mc-butler opened this issue Apr 9, 2015 · 10 comments
Closed

Segmentation fault on startup #3441

mc-butler opened this issue Apr 9, 2015 · 10 comments
Assignees
Labels
area: core Issues not related to a specific subsystem prio: high Serious problem that could block progress ver: 4.8.14 Reproducible in version 4.8.14
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3441
Reporter asy (a_s_y@….ru)

Version: 4.8.14-alt0.M60P.2
System: Alt Linux p6 brunch, x86_64
Possible it is a hardware specific error: mc works fine on some other systems with equivalent software installation.

strace output with debuginfo:

open("/usr/share/mc/hints/mc.hint.C", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/mc/hints/mc.hint.C", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/mc/hints/mc.hint", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=3023, ...}) = 0
read(4, "Hint: Use C-x t to copy tagged f"..., 3023) = 3023
close(4)                                = 0
write(1, "\33[41;1H\33(B\33[m\33(B\33[39m\33[49mHint: "..., 103) = 103
stat("/proc/self/mountinfo", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/self/mountinfo", O_RDONLY)  = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f14d0681000
read(4, "19 1 8:3 / / rw,relatime - ext3 "..., 1024) = 1024
read(4, "dev/sda8 rw,errors=continue,barr"..., 1024) = 51
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0x7f14d0681000, 4096)            = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by asy (a_s_y@….ru) on Apr 9, 2015 at 8:14 UTC (comment 1)

  • Version changed from master to 4.8.14

@mc-butler
Copy link
Author

Changed by asy (a_s_y@….ru) on Apr 9, 2015 at 9:48 UTC

core dump, x86_64 system

@mc-butler
Copy link
Author

Changed by asy (a_s_y@….ru) on Apr 10, 2015 at 7:53 UTC (comment 2)

This is a kernel specific. MC's code for /proc/self/mountinfo does not works with some kernels of p6.
kernel-image-el-smp-2.6.32-alt31 - fail
kernel-image-ovz-el-2.6.32-alt88.M60P.1 - works

So, mc should be build without /proc/self/mountinfo support. Not a bug for mc.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 11, 2015 at 8:25 UTC (comment 3)

  • Description edited

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 11, 2015 at 9:18 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 11, 2015 at 9:18 UTC (comment 4)

Please try the attached 0001-Ticket-3441-fix-Linux-kernel-specific-segfault-on-st.patch​.

@mc-butler
Copy link
Author

Changed by asy (a_s_y@….ru) on Apr 26, 2015 at 17:00 UTC (comment 5)

mc with patch starts successfully with 2.6.32-el-smp-alt24(i586), thanks.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 3, 2015 at 15:48 UTC (comment 6)

  • Milestone changed from Future Releases to 4.8.15
  • Branch state changed from no branch to approved
  • Status changed from new to accepted
  • Owner set to andrew_b

Branch: 3441_startup_segfault
[5ceb5e2]

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 3, 2015 at 15:49 UTC (comment 7)

  • Votes set to committed-master
  • Resolution set to fixed
  • Status changed from accepted to testing

Merged to master: [5ceb5e2].

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 3, 2015 at 15:50 UTC (comment 8)

  • Status changed from testing to closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: high Serious problem that could block progress ver: 4.8.14 Reproducible in version 4.8.14
Development

No branches or pull requests

2 participants