<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dos2unix : segmentation fault. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853425#M24947</link>
    <description>BTW, there are many alternatives to dos2unix utility: vi, tr and so on.</description>
    <pubDate>Thu, 31 Aug 2006 14:18:06 GMT</pubDate>
    <dc:creator>Vitaly Karasik_1</dc:creator>
    <dc:date>2006-08-31T14:18:06Z</dc:date>
    <item>
      <title>dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853418#M24940</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am getting segmentation fault using dos2unix command, please suggest.&lt;BR /&gt;&lt;BR /&gt;[tchintal@bngddia5 ~]$ more /etc/redhat-release&lt;BR /&gt;Red Hat Enterprise Linux AS release 4 (Nahant Update 3)&lt;BR /&gt;&lt;BR /&gt;[tchintal@bngddia5 wls]$ pwd&lt;BR /&gt;/home/tchintal/tools_stage/783464/dev/src_stable/wls&lt;BR /&gt;&lt;BR /&gt;[tchintal@bngddia5 wls]$ dos2unix infra/build/check_files.sh&lt;BR /&gt;dos2unix: converting file infra/build/check_files.sh to UNIX format ...&lt;BR /&gt;Segmentation fault&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,</description>
      <pubDate>Wed, 30 Aug 2006 09:39:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853418#M24940</guid>
      <dc:creator>GnanaShekar</dc:creator>
      <dc:date>2006-08-30T09:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853419#M24941</link>
      <description>do you have free disk space?</description>
      <pubDate>Wed, 30 Aug 2006 09:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853419#M24941</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-08-30T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853420#M24942</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have enough space.&lt;BR /&gt;&lt;BR /&gt;[tchintal@bngddia5 home]$ df -H&lt;BR /&gt;Filesystem             Size   Used  Avail Use% Mounted on&lt;BR /&gt;/dev/sda2               73G    66G   3.5G  95% /&lt;BR /&gt;/dev/sda1              1.1G    11M   1.1G   2% /boot/efi&lt;BR /&gt;none                   4.3G      0   4.3G   0% /dev/shm&lt;BR /&gt;/dev/sdb1              138G   103G    28G  79% /disk1&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Aug 2006 10:38:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853420#M24942</guid>
      <dc:creator>GnanaShekar</dc:creator>
      <dc:date>2006-08-30T10:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853421#M24943</link>
      <description>[tchintal@bngddia5 wls]$ strace dos2unix infra/build/check_files.sh&lt;BR /&gt;execve("/usr/bin/dos2unix", ["dos2unix", "infra/build/check_files.sh"], [/* 26 vars */]) = 0&lt;BR /&gt;uname({sys="Linux", node="bngddia5", ...}) = 0&lt;BR /&gt;brk(0)                                  = 0x6000000000008000&lt;BR /&gt;access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)&lt;BR /&gt;open("/etc/ld.so.cache", O_RDONLY)      = 3&lt;BR /&gt;fstat(3, {st_mode=S_IFREG|0644, st_size=113522, ...}) = 0&lt;BR /&gt;mmap(NULL, 113522, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2000000000044000&lt;BR /&gt;close(3)                                = 0&lt;BR /&gt;open("/lib/tls/libc.so.6.1", O_RDONLY)  = 3&lt;BR /&gt;read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0002\0\1\0\0\0`\226\2"..., 832) = 832&lt;BR /&gt;fstat(3, {st_mode=S_IFREG|0755, st_size=2690949, ...}) = 0&lt;BR /&gt;mmap(NULL, 2523696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2000000000060000&lt;BR /&gt;mprotect(0x20000000002b0000, 98864, PROT_NONE) = 0&lt;BR /&gt;mmap(0x20000000002bc000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24c000) = 0x20000000002bc000&lt;BR /&gt;mmap(0x20000000002c8000, 560, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000002c8000&lt;BR /&gt;close(3)                                = 0&lt;BR /&gt;mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x20000000002cc000&lt;BR /&gt;mmap(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x20000000002d0000&lt;BR /&gt;munmap(0x2000000000044000, 113522)      = 0&lt;BR /&gt;brk(0)                                  = 0x6000000000008000&lt;BR /&gt;brk(0x600000000002c000)                 = 0x600000000002c000&lt;BR /&gt;write(2, "dos2unix: converting file infra/"..., 72dos2unix: converting file infra/build/check_files.sh to UNIX format ...&lt;BR /&gt;) = 72&lt;BR /&gt;stat("infra/build/check_files.sh", {st_mode=S_IFREG|0644, st_size=251, ...}) = 0&lt;BR /&gt;gettimeofday({1156953666, 158658}, NULL) = 0&lt;BR /&gt;getpid()                                = 6592&lt;BR /&gt;open("infra/build/d2utmpmjqlZI", O_RDWR|O_CREAT|O_EXCL, 0600) = 3&lt;BR /&gt;fchmod(3, 0100644)                      = 0&lt;BR /&gt;--- SIGSEGV (Segmentation fault) @ 20000000001290e1 (75622f6172666e81) ---&lt;BR /&gt;+++ killed by SIGSEGV +++&lt;BR /&gt;Process 6592 detached&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Aug 2006 11:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853421#M24943</guid>
      <dc:creator>GnanaShekar</dc:creator>
      <dc:date>2006-08-30T11:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853422#M24944</link>
      <description>do you have write permission to infra/build/check_files.sh?</description>
      <pubDate>Thu, 31 Aug 2006 02:17:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853422#M24944</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-08-31T02:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853423#M24945</link>
      <description>That looks like a buffer overflow inside dos2unix.  The address that strace reports the program trying to access looks like it is a string that overwrote a pointer.&lt;BR /&gt;"0x75622f6172666e81" = "ub/arfnï¿½"&lt;BR /&gt;(That last byte is not an ascii character.  It was probably a pointer offset from the string value.)</description>
      <pubDate>Thu, 31 Aug 2006 12:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853423#M24945</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2006-08-31T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853424#M24946</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As a workaraound, this Perl script will accomplish the same Dos-to-Unix file conversion.&lt;BR /&gt;&lt;BR /&gt;# perl -ni.old -e 's/\r\n/\n/s;s/\032//s;print' file&lt;BR /&gt;&lt;BR /&gt;...A backup copy "file.old" is automatically created and "file" is filtered.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 31 Aug 2006 14:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853424#M24946</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-08-31T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853425#M24947</link>
      <description>BTW, there are many alternatives to dos2unix utility: vi, tr and so on.</description>
      <pubDate>Thu, 31 Aug 2006 14:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853425#M24947</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-08-31T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: dos2unix : segmentation fault.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853426#M24948</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is myterious issue in linux.  Howerver dos2unix works fine if we run it from within the directory that contains files, we want to convert.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2006 04:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dos2unix-segmentation-fault/m-p/3853426#M24948</guid>
      <dc:creator>GnanaShekar</dc:creator>
      <dc:date>2006-09-05T04:26:38Z</dc:date>
    </item>
  </channel>
</rss>

