LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-24-2020, 03:34 AM   #1
pshub
LQ Newbie
 
Registered: Nov 2020
Posts: 1

Rep: Reputation: Disabled
Question Difference between 4.9 and 4.19 Kernel versions causing fread crash


Hello,

i have a linux system where recently the kernel version was upgraded from 4.9 to 4.19. This resulted in a different behaviour while reading a file which was locked.

E.g.:
On Kernel Version 4.9, on reading a locked file, i get the error:
ERROR: cannot read `file' (Input/output error)

On kernel Version 4.19, on reading a locked file, i get the error:/
Segmentation fault.


Can someone tell me or point me to the changelog that resulted in this change or behaviour? Also, can you guide me on how i can get the same behaviour i used to get on version 4.9?

Any help would be useful.
Thank you.
 
Old 11-24-2020, 09:30 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
When fread causes a segmentation fault, I would suspect incompatible code, such as a mismatch of shared library versions. Since the segmentation fault when accessing a locked file is definitely not an intended feature, I have strong doubts that you will find anything in the release notes about this.

Another possibility is that the program in question doesn't use fread correctly. Perhaps the earlier kernel was more lenient and accepted incorrect usage, whereas the new kernel doesn't. In my opinion, this is less likely.

Note that fread is not a system call, although it may use the read system call. Does the same problem occur with read?

Last edited by berndbausch; 11-24-2020 at 09:32 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what are the other differences between fedora versions except their kernel versions teja_vijjapu Fedora 1 01-23-2012 06:38 AM
crash () { crash|crash& }; crash grob115 Linux - Security 6 05-07-2011 03:06 AM
fread seems going crash !!! twwwater Programming 6 09-01-2010 08:02 PM
Difference between the kernel 2.4 and 2.6 versions new-b Linux - Kernel 1 07-16-2009 05:50 AM
Crash, Crash, Crash, Crash and You Guessed it Crash! little_penguin SUSE / openSUSE 8 07-04-2005 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration