SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been having this issue for quite a while, but only on one of the three machines running -current 64-bit with Eric's Plasma5.
The last version of pan that worked on this machine was 0.141. Every version since then has segfaulted - but only on this one machine! Up to now, I've stuck with 0.141, but that doesn't want to compile against the new gmime3, so now I have to try and find out what's wrong!
I have tried re-building pan, and it doesn't help. It compiles with no errors, but still segfaults immediately on running.
Running from a terminal just says that it segfaults. Running the stock version of 0.145 through gdb (no debugging symbols) gives:
Code:
Reading symbols from /usr/bin/pan...
(No debugging symbols found in /usr/bin/pan)
(gdb) run
Starting program: /usr/bin/pan
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff3b6e700 (LWP 2997)]
[New Thread 0x7fffebfff700 (LWP 2998)]
[New Thread 0x7ffff336d700 (LWP 2999)]
[New Thread 0x7ffff2b6c700 (LWP 3000)]
[New Thread 0x7ffff1aa4700 (LWP 3001)]
[New Thread 0x7ffff12a3700 (LWP 3002)]
Thread 1 "pan" received signal SIGSEGV, Segmentation fault.
0x00007ffff6130d10 in __strftime_internal () from /lib64/libc.so.6
libc.so.6 is a symlink to libc-2.29.so.
This doesn't mean much to me as I'm not a programmer, but before I recompile it with debugging enabled, I thought I'd ask here for any ideas.
Thanks for the reply, but this seems to be a separate issue. Subsequent updates in -current fixed the problem on two machines that were complaining about gmime3, but it hasn't fixed the problem on the 3rd, which seems to be complaining about libc.so.6.
As far as I am aware, all three machines are running similar installs, except for minor differences in the processors (AMD or Intel).
Looks like I'll have to recompile with debugging enabled....
Yes, but originally it was happening on three machines - now its only on one! Clearly something is different. The workaround I have been using no longer works.
As this function is date related, different may be many things not related with physical computer, but i.e. with currently fetched news (and its dates).
And why you need workaround? In this bug report is patch for this issue.
Assumption #1 Buffer "s" is shorter than "max" bytes.
This is unlikely, at higher level max is set to sizeof(s). However, if you want you can try change, in "EvolutionDateMaker :: get_date_string (time_t then_time)"
Return values from "g_locale_from_utf8" are not checked for NULL. But they can be NULL since this are translatable strings and some translator can make error in string encoding. Even this strings can make problems since they are itself utf-8 encoded, and when compiled in non utf-8 environment may create unreadable garbage and "g_locale_from_utf8" returns error (NULL).
You can try this option by running pan in different locale i.e.
Code:
LANG=C pan
LANG=en_US.utf-8 pan
LANG=en_GB.utf-8 pan
Wow! That worked! LANG=C caused the segfault, but using either en_US or en_GB allowed it to run! I'm in the UK, so en_GB is the most appropriate!
There doesn't seem to be an option to select the language in pan anywhere, so I need to dig a little and find out where to set that option permanently! (I have LANG=en_GB set in profile.d/lang.sh - maybe it needs the utf-8 added?)
Thank you so much! This problem has been bugging me for ages!
Sorry, cross-posted! I was editing my last post when you replied!
When I checked, I had set LANG=en_GB in /etc/profile.d/lang.sh. Changing it to en_GB.utf-8 has got pan working again.
I knew it had to be something unique to that machine, and guessed it was probably something I'd done, but I would never have found that typo without your help! Again, many thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.