태그>debug(총 106개의 글)
'debug' 관련 최근글
-
- [Django] populate() isn't reentrant 오류 해결
-
양파개발자 SW의 블로그입니다^^ by 졸린미어캣|2020/04/08 11:54
Django App 을 띄울때 이런 오류가 뜨는 경우가 있다. RuntimeError: populate() isn't reentrant 이때는 여러가지 원인이 있을 수 있는데,대부분 pip 패키지 설치와 관련하여 문제가 생기면 저 에러가 뜬다.일단, 메시지만 봐서는 뭔지 알수가 없다. 제대로된 메시지를 ..
- [Django] populate() isn't reentrant 오류 해결
-
- [Python] 디버그 시에만 동작하도록 하는 코드..
-
지훈현서 by 지훈현서아빠|2020/03/03 13:45
코딩을 하면서 제일 중요한 것은 테스트 입니다. 해당 기능을 UnitTest 모듈을 이용해서 잘 하고 있는데,어느날 어느 경우에 PyCharm의 디버그 모드에서는 잘 동작하는데,setup.py 로 test 시에는 동작을..
- [Python] 디버그 시에만 동작하도록 하는 코드..
-
- 비주얼 스튜디오에서 중단점(breaking point)..
-
편해지고 싶은 달팽이 by 달팽이|2018/07/19 05:22
비주얼 스튜디오에서 디버깅 도중 중단점이 제대로 적중하지 않을 때가 종종 있습니다. 그럴때는 파일- 고급 저장 옵션 으로 가셔서 아래의 그림과 같이 인코딩은 유니코드 UTF-8, 줄 끝은 Windows(CR LF)..
- 비주얼 스튜디오에서 중단점(breaking point)..
-
- [crash-utility]wakelock - rbtree debugging(디버깅)
-
Linux Kernel Hacker by AustinKim|2017/12/26 16:45
[crash-utility] wakelock 디버깅(rbtree: wakelocks_tree)[crash-utility]wakelock - rbtree debugging(디버깅) [리눅스커널][Trace32] wakelock 디버깅 - container_of[Kernel] wakelock debug patch 코어 덤프에서 wakelock 정보..
- [crash-utility]wakelock - rbtree debugging(디버깅)
-
- fd(file descriptor: 파일 디스크립터) 디버깅 CrashTool
-
Linux Kernel Hacker by AustinKim|2017/12/20 19:19
"echo c > /proc/sysrq-trigger" 명령어로 강제 커널 패닉을 유발시킨 다음 코어 덤프를 받아 보았어요.crash> bt -I C01003AC -S C59C3E20 0xD110E040PID: 4944 TASK: d110e040 CPU: 0 COMMAND: "sh" #0 [] (do_DataAbort) from [] p..
- fd(file descriptor: 파일 디스크립터) 디버깅 CrashTool
-
- [Linux][Kernel] ftrace - early logging at boot time
-
Linux Kernel Hacker by AustinKim|2017/12/13 10:38
리눅스 커널 디버깅 기능의 핵심 ftrace에 대해서 여러 번 소개했는데요.한 가지 재미있는 패치를 소개하려고 해요. ftrace 로깅을 하기 위해서는 아래와 같은 방식으로 시스 노드에 있는 파라미터를 설정해야 해요."echo 0 > /d/tracing/events/enable"&quo..
- [Linux][Kernel] ftrace - early logging at boot time
-
- [Linux][Kernel] 슬랩 Slab Memory 디버깅..
-
Linux Kernel Hacker by AustinKim|2017/12/12 22:36
슬랩 디버그 컨피그를 키면 어떤 일을 더 할까요? 정리해볼께요 콜트래이스 저장슬랩 메모리를 할당 및 해제할 때 콜트래이스를 저장해요. 이 콜트래이스는 struct track 변수에서 쓰이거든요. 우리가 알고 있는 슬랩의 종류는..
- [Linux][Kernel] 슬랩 Slab Memory 디버깅..
-
- [Linux][Kernel][Stability] Kernel pani..
-
Linux Kernel Hacker by AustinKim|2017/12/07 15:28
#커널 크래시 디버깅 및 TroubleShootingRace로 mmc_wait_data_done() 함수에서 커널 패닉"cat /d/shrinker" 입력 시 커널 패닉함수 포인터 미지정으로 xfrm_local_error() 커널 패닉preem..
Trace32, debug, xfrm_local_error, 커널, 패닉
- [Linux][Kernel][Stability] Kernel pani..
-
- tombstone 시(시스템 크래시) - 커널 패닉 유발
-
Linux Kernel Hacker by AustinKim|2017/12/06 19:21
전 리눅스 커널 및 드라이버 코드를 주로 보는데요. 그런데 리눅스 시스템 프로그램 코드가 자주 봐야 해요. 아 그리고 userspace에서 tombstone(무덤)이 떨어지면서 크래시가 종종 발생하거든요. 이런 이슈도 잡아..
- tombstone 시(시스템 크래시) - 커널 패닉 유발
-
- [Linux][Kernel] ftrace: stack tracer
-
Linux Kernel Hacker by AustinKim|2017/12/06 11:21
리눅스 커널에서 제공하는 여러 profile tool 중에 ftrace가 있어요. 매우 강력해요. 잠깐 기억하는게, 저번 리눅스 커널 세미나에 갔었을 때 리눅스 커널 고수들이 ftrace로 벌이는 향연을 보고 참 라이브 공연에 있는 듯한 착각을 받았어요. ftrace 기능 중 stack tracer 기능을 잠..
- [Linux][Kernel] ftrace: stack tracer
-
- [리눅스커널][디버깅] Red Hat Crash-Utilit..
-
Linux Kernel Hacker by AustinKim|2017/12/04 12:03
리눅스 커널 동네에서 전 세계적으로 쓰고 있는 디버깅 툴을 소개하고자 합니다.https://people.redhat.com/anderson/ 레드헷의 앤더슨이란 형님이 만든 오픈 소스로 배포한 리눅스 크래시(커널 패닉)을 분석할 수..
- [리눅스커널][디버깅] Red Hat Crash-Utilit..
-
- [Linux][Kernel] T32 - Linked List 디버깅 cmm Script
-
Linux Kernel Hacker by AustinKim|2017/12/03 19:07
리눅스 커널 데이터 스트럭쳐 내 수 많은 linked list를 확인할 수 있어요.예를 들어 struct kset이란 구조체도 첫번 째 멤버로 list란 링크드 리스트죠. struct kset { struct list_head list; //<<- spinlock_t list_lock; struct kobject kobj; const struct kset_ue..
- [Linux][Kernel] T32 - Linked List 디버깅 cmm Script
-
- [Linux][Kernel] 전처리 Preprocess File 추출 방법
-
Linux Kernel Hacker by AustinKim|2017/12/03 13:11
한 4년 전 인가요? 아래 코드를 열심히 분석 했었어요. 그런데 나중에 알고 보니 CONFIG_KMEMCHECK, CONFIG_LOCKDEP 컨피그 내 코드가 컴파일 되지 않는 죽은 코드라는 걸 알게 되었어요. 그 때 참 머리를 쥐어 뜯으며 자책했죠. static inline void slab_free_hook(s..
linuxkernel, linux, kernel, debug, 전처리
- [Linux][Kernel] 전처리 Preprocess File 추출 방법
-
- [Linux][Kernel] T32 - 구조체 확인 (v.type)
-
Linux Kernel Hacker by AustinKim|2017/11/30 08:28
T32로 디버깅을 하다보면 struct의 선언부를 확인하고 싶을 때가 있어요.예를 들어서 struct tty_struct 구조체의 멤버를 갑자기 확인하고 싶은 경우, "do do_struct.cmm tty_struct" 요렇게 입력하면 상세 멤버 변수를 확인할 수 있어요.struct tty_struct struct ..
- [Linux][Kernel] T32 - 구조체 확인 (v.type)
-
- [Linux][Kernel][Debug] T32 - container_of 매크로
-
Linux Kernel Hacker by AustinKim|2017/11/29 12:15
리눅스 커널 코드를 분석하다 보면 아래 container_of 매크로를 자주 볼수 있어요.void t21142_media_task(struct work_struct *work){ struct tulip_private *tp = container_of(work, struct tulip_private, media_work); struct net_device *dev = tp-&..
- [Linux][Kernel][Debug] T32 - container_of 매크로