Bug 23011

Summary: the program Links gives a segmentation fault with the new version 2.15-3
Product: Mageia Reporter: Brian Golding <Golding>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: luigiwalser, marja11, nicolas.salguero, ouaurelien
Version: 6Keywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: links-2.15-3.mga6 CVE:
Status comment:

Description Brian Golding 2018-05-09 20:41:17 CEST
Description of problem:
The 4th May upgrade did not yield a run'able links at least on my system.
I am running Mageia6
    % uname -a
    Linux xxxxxx 4.14.30-desktop-3.mga6 #1 SMP Sun Mar 25 22:17:31 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 

with 
% rpm -qa | grep links
links-common-2.15-3.mga6
links-2.15-3.mga6

However running /usr/bin/links after the 4th May upgrade yields
    % /usr/bin/links
    Segmentation fault (core dumped)
definitely worked as usual before 4th May.
Comment 1 Marja Van Waes 2018-05-09 23:40:32 CEST
What is the output of 


   ls -al /usr/bin | grep links

and of 

   ls -al /etc/alternatives | grep links


Btw, don't you put the web address after the command? Like e.g.:

   links wiki.mageia.org



(Assigning to all packagers collectively, since there is no registered maintainer for this package.)

CC: (none) => luigiwalser, marja11, nicolas.salguero
Assignee: bugsquad => pkg-bugs
Keywords: (none) => NEEDINFO

Marja Van Waes 2018-05-09 23:41:23 CEST

Source RPM: (none) => links-2.15-3.mga6
Summary: the program links gives a segmentation fault with the new version 2.15-3 => the program Links gives a segmentation fault with the new version 2.15-3

Comment 2 Brian Golding 2018-05-10 14:59:24 CEST
thanks for looking into this.

    ls -al /usr/bin | grep links
    -rwxr-xr-x  1 root   root         4595 May  7  2017 create-jar-links
    lrwxrwxrwx  1 root   root           23 May  7 09:06 links -> /etc/alternatives/links
    -rwxr-xr-x  1 root   root      1662472 May  3 07:36 links-text
    lrwxrwxrwx  1 root   root           54 Apr 30  2017 texlinks -> ../../usr/share/texmf-dist/scripts/texlive/texlinks.sh
    %   ls -al /etc/alternatives | grep links
    lrwxrwxrwx   1 root root    19 May  7 09:06 links -> /usr/bin/links-text

Yes, I usually do add a url but it was not necesary for a minimal example

    % links
    Segmentation fault (core dumped)
    % links-text
    Segmentation fault (core dumped)
    % links http://wikipedia.org
    Segmentation fault (core dumped)
    % links-text http://wikipedia.org
    Segmentation fault (core dumped)

Brian
Comment 3 Nicolas Salguero 2018-05-12 15:56:25 CEST
Hi,

Does the problem still occur if you rename or delete the file $HOME/.links/cookies?
That file is not empty, is it?

If the issue occurs when that file exists and is not empty, then the problem comes from the patches "links-2.15-cookies-save.patch" and "links-2.15-fix-segfault-on-loading-cookies.patch" that I modified to allow building links 2.15, in the function "void init_cookies(void)".

Best regards,

Nico.
Comment 4 Brian Golding 2018-05-13 01:24:53 CEST
Moved the file aside.  It was empty but the program still seg faults.

Brian
Comment 5 Nicolas Salguero 2018-05-13 08:55:08 CEST
Does the problem still occur if you rename the directory $HOME/.links?
Comment 6 Brian Golding 2018-05-13 14:27:54 CEST
Yes, if I move the entire directory aside it works (and creates a new directory).

Thanks very much for fixing this and for your work on Magaia. 

Brian
Comment 7 Aurelien Oudelet 2020-08-16 17:10:13 CEST
Mageia 6 changed to end-of-life (EOL) status on 2019-09-30. It is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan 
to fix it in a currently maintained version, simply change the 'version' to 
a later Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we 
weren't able to fix it before Mageia 6's end of life. If you are able to 
reproduce it against a later version of Mageia, you are encouraged to click 
on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a more recent
Mageia release includes newer upstream software that fixes bugs or makes them
obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

Best regards,
Aurélien
Bugsquad Team

Status: NEW => RESOLVED
Resolution: (none) => OLD
CC: (none) => ouaurelien