This thread is locked.Only browsing is available.
Top Page > Browsing
Unexisting input file causes TranMain to segfault
Date: 2011/07/27 22:07
Name: Renato Miceli
References: http://www.ichec.ie/

Hi,

I've identified that passing a non-existant file name as input to TranMain causes it to segfault.
The execution is not finishing when the program sees that the input file does not exist. It proceeds up to where it should read the file and there it tries to manipulate the file contents. However, as the program was previously unable to open the file, the file pointer is therefore NULL and it causes a signal 11 to be raised and the memory core to dump. Could you give a look into this, please?

For filename 'blabla', this is the execution line:

$ TranMain blabla

And this is the backtrace:

#0 0x0000003f36069321 in rewind () from /lib64/libc.so.6
#1 0x0000000000412027 in input_string (key=0x4dec00 "System.CurrrentDirectory", ret=0x76adc0 "./", defval=0x4debfc "./")
at Inputtools.c:288
#2 0x000000000040c406 in MTRAN_Input_Sys (argc=2, file=0x7fffcab077de "blabla", filepath=0x76adc0 "./",
filename=0x76aba0 "", tran_interpolate=0x76ac04, interpolate_filename1=0x76ad20 "", interpolate_filename2=0x76ac80 "")
at TranMain.c:1991
#3 0x000000000040f43d in main (argc=2, argv=0x7fffcab06648) at TranMain.c:2771

For such simple bug, only the backtrace should be enough. Please let me know if you need more information.

Thanks for your collaboration.
Looking forward to hearing back from you soon.

Kindest regards,
Renato Miceli
メンテ
Page: [1]

Re: Unexisting input file causes TranMain to segfault ( No.1 )
Date: 2011/07/30 00:35
Name: T.Ozaki

Hi,

Thank you for your report.
The bug will be fixed in the next release.

Best regards,

TO
メンテ

Page: [1]