Created attachment 890878 [details] specific message Description of problem: The following SEGV occurs always when opening a particular file. Program received signal SIGSEGV, Segmentation fault. decode_text (att=att@entry=0x10ba730, msgno=msgno@entry=23, pc=pc@entry=0x48f7e0 <view_writec>, handlesp=handlesp@entry=0x7fffffffbd58, style=style@entry=InLine, flags=<optimized out>, flags@entry=3) at text.c:461 461 if(att->body->subtype (gdb) bt #0 decode_text (att=att@entry=0x10ba730, msgno=msgno@entry=23, pc=pc@entry=0x48f7e0 <view_writec>, handlesp=handlesp@entry=0x7fffffffbd58, style=style@entry=InLine, flags=<optimized out>, flags@entry=3) at text.c:461 #1 0x000000000057a1ba in format_body (msgno=msgno@entry=23, body=body@entry=0xe51da0, handlesp=handlesp@entry=0x7fffffffbd58, hp=hp@entry=0x7fffffffbc80, flgs=flgs@entry=3, width=width@entry=85, pc=pc@entry=0x48f7e0 <view_writec>) at mailview.c:455 #2 0x000000000057c512 in format_message (msgno=msgno@entry=23, env=env@entry=0xe66900, body=0xe51da0, handlesp=handlesp@entry=0x7fffffffbd58, flgs=flgs@entry=3, pc=pc@entry=0x48f7e0 <view_writec>) at mailview.c:204 #3 0x000000000049830d in mail_view_screen (ps=0xcef030) at mailview.c:358 #4 0x0000000000409505 in main (argc=<optimized out>, argv=<optimized out>) at alpine.c:1362 Version-Release number of selected component (if applicable): alpine-2.11-1.fc20.x86_64 How reproducible: Always on particular messasge Steps to Reproduce: 1. start alpine 2. go to index 3. select mesg 4. ViewMsg Actual results: Crash Expected results: No crash Additional info:
Paul, This is a very interesting crash. I am running a 32 bit machine and do not see this crash with this message. The crash does not occur on modified code, and the worst thing is that it seems to be happening on a corrupt pointer to body->subtype. I will encourage you to compile your own version of Alpine and see if the problem repeats. If it does, please post the backtrace, as usual, but I would also like to see the log of running the "make" command. I'd like to see the warnings that are given during compilation by the compiler. Just to give you some encouragement into building your own Alpine, I have seen some bugs, where the same code has crashed in one version (the distributed version) and not in the other (the one built in the local machine), so please try this. Thank you. -- Eduardo
Hi Eduardo, Okay, I will do it. Thanks for the encouragement. I'm chasing some other Fedora issues right now, so give me a week or two. -- Paul
Created attachment 901862 [details] Another mesg that causes a crash I haven't had a chance to roll Alpine myself. But, I will; I haven't forgot.
Paul, I understand you can reproduce the problem. I have no doubt about that, but the crash is happening on a pointer that is allocated to static memory, it should not be happening, and what I am asking you to do is to check if the rpm is defective, or if it is Alpine the defective. In order to check that, I am asking you to build your own Alpine. When you do so, please try again, and if the problem happens again, please send me the backtrace, as well as the output of the make command when you build Alpine. Thank you. -- Eduardo
Hi Eduardo, Okay, I finally got around to testing this. I followed some generic instructions for RPM tools and rebuilt the alpine RPM package from the source RPM. This version of alpine behaves the same as the one I installed from the Fedora repositories for fc20, which means it crashes on these same messages I've been saving to test. I also downloaded your tarball for alpine v2.11. I just ran configure and make, then ran the binary without installing it. It did not crash on any of the three files I save for testing. I will attach the make log you requested after this update.
Created attachment 917261 [details] make log
Hi Paul, May I ask for one more favor. Could you try http://patches.freeiz.com/alpine/patches/alpine-2.11/alpine-2.11.tar.lzma and let me know if the problem repeats with that specific version of Alpine? I think this is the one RedHat distributes, and would like to see if you can repeat the problem using the "./configure && make" method. Thanks! -- Eduardo
Sure. Yes! It does crash. And, fortunately, I got a corefile from it. I still don't understand why corefiles are so hard to come by these days. I'll attached the make log and core.
Created attachment 917393 [details] make log from "patch" version of v2.11
Created attachment 917394 [details] core file from "patch" version of v2.11
Created attachment 917395 [details] second core file from "patch" version of v2.11, This corefile is different that the previous one. It is from trying to open an eariler "bad" message and the crash behavior was slightly different than the one I uploaded first. The third test mesg I tried caused a crash like this one, too.
After working with Edwardo, further, we have determined that this problem appears to be specific to the x86_64 bit target and may not/is not observed on 32-bit systems.
Paul, Thank you for sharing your .pinerc with me. It helped me reproduce the problem, which only occurs with the patched version of Alpine. The problem was in code that tried to detect if a long url has been atificially folded across several lines. I believe that the problem has been solved, but not in version 2.11, but for the *patched* version 2.20 (I just solved it two days ago when I was getting ready to release version 2.20, so I tested everything with the new version, not the old one.) Thank you so much for helping me debug this issue. I hope the new version will solve all the issues you have reported, otherwise, please let me know how may I help you. Thank you.
Hi Eduardo, That's great news! Thank you very much for your (continued) hard work and for your patience with me. I'm glad my config was helpful. And I'm excited this patch made it into a brand new release of Alpine. I've downloaded it and I aim to compile it myself as you suggest.
This problem still occurs with alpine-2.11-3.fc21.x86_64. So, I'm bumping this bug. Also, I can also report that the problem is not present in Alpine 2.20 just released.
alpine-2.20-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/alpine-2.20-1.fc22
Hi, Please try the alpine-2.20-1 package and vote if it works for you, to give karma.
alpine-2.20-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/alpine-2.20-1.fc21
alpine-2.20-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/alpine-2.20-1.el6
Package alpine-2.20-1.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing alpine-2.20-1.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-7050/alpine-2.20-1.el6 then log in and leave karma (feedback).
alpine-2.20-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
alpine-2.20-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
alpine-2.20-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.