Re: with ubuntu 64 - bit still receiving parse_config_file-error
Status: Alpha
Brought to you by:
coroberti
From: Rick P. <rp...@ce...> - 2009-02-25 18:02:10
|
Hello Robert, I did what you said and this is what I have in strace with the optimize read(3, "########### GENERAL SECTION\r\nBAT"..., 4096) = 602 read(3, "", 4096) = 0 close(3) = 0 munmap(0x7f4fec1ad000, 4096) = 0 write(2, "parse_config_file - error: faile"..., 63parse_config_file - error: failed to load even a single batch. ) = 63 write(2, "main - error: parse_config_file "..., 43main - error: parse_config_file () failed. ) = 43 exit_group(-1) = ? Process 6161 detached Here is what I received with the debug; brk(0x12b2000) = 0x12b2000 open("./10K.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=602, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb3ef2df000 read(3, "########### GENERAL SECTION\r\nBAT"..., 4096) = 602 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Process 6249 detached On Wed, 2009-02-25 at 12:45 -0500, Robert Iakobashvili wrote: > Hi Rick, > > On Wed, Feb 25, 2009 at 7:47 PM, Rick Parker <rp...@ce...> > wrote: > "Printed out strings?" The ones from the strace? or something > different? > I will get you whatever you would like for debugging. > I will attempt to recompile with a gcc that is <4.1. > I also did make a default "make" (which i thought was debug=1 > and > optimize =0) but it segfaulted.. (would you like to see that > strace?) > > Thank you very much Robert!! > Rick > > > read(3, "######### GENERAL SECTION\nBATCH_"..., 4096) = 610 > > The above string from your strace is resulting from fgets() reading. > fgets is normally reading line till the nearest end of line symbol > (\n, or \r\n) > > Here it is reading a lot (610) characters, which means several (if not > all) lines. > The parser is supposed to get from fgets input as line after line. > Here the correct behavior is completely broken. > The question who is the bad man: the compiler or the glibc? > > Try a one more thing - to place instead of all \n - \r\n > in vi > :set ff=dos > > and save the file :wq > > -- > Truly, > Robert Iakobashvili, Ph.D. > ...................................................................... > Assistive technology that understands you > ...................................................................... > No virus found in this incoming message. Checked by AVG - www.avg.com > Version: 8.0.237 / Virus Database: 270.11.3/1969 - Release Date: > 02/24/09 13:35:00 |