솔라리스에서 사용할 수 있는 efence 류의 프로그램은?

ssehoony의 이미지

솔라이스에서 사용할 수 있는 boundary error 을 잡아주는 그런 디버깅 툴 있나요?
버퍼오버플로우에 인해 에러가 나는거 찾는게 영~ 골치아프네요

eek의 이미지

음. 제대로 된 tool은 대부분유로이고
efence도 솔라리스에서 컴파일된걸로 기억하는데요?
사용할 수 없나보죠..
개인적으로 efence나 ccmalloc를 사용합니다만.. overflow는 제대로
체크 않되는것 같습니다. 그래서
overflow때문에 STL을 사용하는데 그런것 신경쓸 필요없다는 ^^;

Perl 만세~~~

ssehoony의 이미지

스팍 이라는 말씀을 안드렸군요.
ix86 솔라리스에서는 efence 가 되는게 맞죠.
제가 원하는건 스팍 솔라리스에서 작동되는 툴이었는데
그 말을 하지 않았었네요. 죄송.. :oops:

ix86 의 리눅스에서 개발할 때는 efence 를 사용했는데, 기대하는대로 잘 작동해서 꽤 만족스러웠습니다.
C 로 구현된 라이브러리도 사용하고 있어서, STL로 완전한 이전은 현재는 불가능한 상황이네요 :)

eek의 이미지

음. 전 컴파일해서 사용했는데요^^;
리크는 정확하게 잡아주는데 overflow는 잘 못잡더라구요. 월래 tools이 그런것같은데
다른 tool은 mpatrol로 이라는 녀석도 있는데 기대하기 힘드네요.
gcc를 사용하신다면 옵션중에 -fbounds-check 나 -fno-stack-limit를 사용해보세요
조금 느려지기는 한데 gcc가 나름대로 해주기때문에 잘 돌아갑니다. ㅋㅋ

Perl 만세~~~

eek의 이미지

아참.. efence는 컴파일할때 so파일은 않만덜어지던데 a파일은 만들어지더라구요
그냥 아카이브파일 링크해서 사용하시면 됩니다. ^^;
makefile고치기 귀찮아서 ^^;

작업환경
sun solairs : 8, 7
gcc: 3.2.3, 3.4.2

Perl 만세~~~

ssehoony의 이미지

Quote:

-fbounds-check
For front-ends that support it, generate additional code to check that indices used to access arrays are within the declared range. This is currently only supported by the Java and Fortran 77 front-ends, where this option defaults to true and false respectively.

음.. c/c++ 이라서 저 옵션은 무용지물이겠네요.

그리고 efence 는 예전에 조사할 때 ix86에서만 되는걸로 알았었는데
한번 받아서 설치해 봐야겠군요.
좋은 조언 감사합니다. :)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.