Bug 90663 - env -i links -dump segfaults
env -i links -dump segfaults
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: elinks (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-05-12 04:36 EDT by Joe Orton
Modified: 2007-04-18 12:53 EDT (History)
0 users

See Also:
Fixed In Version: 0.4.2-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-05-12 06:15:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
remove egd support (838 bytes, patch)
2003-05-12 05:43 EDT, Joe Orton
no flags Details | Diff

  None (edit)
Description Joe Orton 2003-05-12 04:36:46 EDT
Description of problem:
"env -i links -dump" segfaults

Version-Release number of selected component (if applicable):
elinks-0.4.2-1

How reproducible:
Always

Steps to Reproduce:
1. env -i links -dump http://localhost/
 
Actual results:
Segmentation fault

Expected results:
No segfault!

Additional info:
Comment 1 Joe Orton 2003-05-12 05:05:20 EDT
Even segfaults with:

  env -i links -no-home -dump http://localhost/

The problem is the call

  RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile)))

which segfaults since RAND_file_name returns NULL if $HOME is not set.  RAND_egd
is not necessary for a Linux system anyway - I'm testing a patch to remove this
section of code.
Comment 2 Joe Orton 2003-05-12 05:43:33 EDT
Created attachment 91614 [details]
remove egd support

This patch removes EGD support, which is unnecessary on Linux, and fixes the
segfault.
Comment 3 Tim Waugh 2003-05-12 06:15:33 EDT
Thanks for the patch.  Fixed package will appear in rawhide shortly.

Note You need to log in before you can comment on or make changes to this bug.