Bug 1147264 - D program segfault when reading a big file (~1M)
Summary: D program segfault when reading a big file (~1M)
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ldc
Version: 20
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: MERCIER Jonathan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-28 15:29 UTC by Julien Enselme
Modified: 2015-06-01 08:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-01 08:50:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Test program (218 bytes, text/plain)
2014-09-28 15:29 UTC, Julien Enselme
no flags Details
The big file I am trying to read (1.05 MB, text/plain)
2014-09-28 15:31 UTC, Julien Enselme
no flags Details
SPEC file to build the ldc 0.14 (19.83 KB, text/plain)
2014-10-11 19:26 UTC, Julien Enselme
no flags Details

Description Julien Enselme 2014-09-28 15:29:30 UTC
Created attachment 941998 [details]
Test program

Description of problem:
When I try to read a big file (around 1M) using a D program compiled with ldc, I get a segfault error.

How reproducible:
Download the basic test program which is attached and the file. Compile and run the program. The bug will appear.

Steps to Reproduce:
1. ldc2 test.d
2. ./test

Actual results:
[1]    30662 segmentation fault (core dumped)  ./test

Expected results:
The returned code should be 0.

Additional info:
I tested this program on Manjaro and it works as expected (version 0.14.0)

Comment 1 Julien Enselme 2014-09-28 15:31:05 UTC
Created attachment 941999 [details]
The big file I am trying to read

Comment 2 Julien Enselme 2014-10-11 19:26:05 UTC
Updating to ldc 0.13 did not solve the problem (I used the packaged available here: http://koji.fedoraproject.org/koji/buildinfo?buildID=559947).

I updated the spec so the packages are update to version 0.14. It solves the problem.

I just had a strange problem in the process. If I compiled ldc manually (without trying to create a rpms) it worked fine. However, when I tried to build the RPMS I got the following error:

CMake Error at runtime/CMakeLists.txt:760 (get_property):
  get_property could not find TARGET druntime-ldc.  Perhaps it has not yet
  been created.

I simply removed the line and everything looked fine.

Comment 3 Julien Enselme 2014-10-11 19:26:48 UTC
Created attachment 946023 [details]
SPEC file to build the ldc 0.14

Comment 4 MERCIER Jonathan 2014-11-01 00:25:49 UTC
Sorry for delay, I was'nt allowed to push ldc version 0.14 due to some regression

I will push 0.15 SOON :-)

Comment 5 Fedora Admin XMLRPC Client 2015-02-17 03:17:07 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora End Of Life 2015-05-29 12:58:58 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

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 Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

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 Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Julien Enselme 2015-06-01 08:50:27 UTC
This is fixed in fedora 22 with ldc2 0.15.0

Closing manually.


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