简体   繁体   English

Django:为什么我会得到 malloc?

[英]Django: why am i getting malloc?

I am new to Django and getting below error in a simple todo app that i trying to create.我是 Django 的新手,在我尝试创建的一个简单的待办事项应用程序中遇到以下错误。

I am not sure what is causing it.我不确定是什么原因造成的。 I only added one app of 'todos' and when i go to admin page i get this error below on pycharm running on MacOS.我只添加了一个“todos”应用程序,当我转到管理页面时,我在 MacOS 上运行的 pycharm 上收到以下错误消息。

 [21/Dec/2018 06:58:05] "GET /admin/ HTTP/1.1" 200 3042 Python(1756,0x700009e06000) malloc: *** error for object 0x1015c6ae4: pointer being freed was not allocated set a breakpoint in malloc_error_break to debug Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Below is some part of the crash report that i get.下面是我得到的崩溃报告的一部分。

Process: Python [1151] Path: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 3.7.0 (3.7.0) Code Type: X86-64 (Native) Parent Process: Python [1150] Responsible: Python [1151] User ID: 501 Process: Python [1151] Path: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 3.7.0 (3.7.0) Code Type: X86-64 (Native) Parent Process: Python [1150] Responsible: Python [1151] User ID: 501进程:Python [1151] 路径:/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python 标识符:Python 版本:3.7.0 (3.7.0) 代码类型:X86-64(本机)父进程:Python [1150] 负责人:Python [1151] 用户 ID:501 进程:Python [1151] 路径:/usr/local/Cellar/python/3.7。 0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python 标识符:Python 版本:3.7.0 (3.7.0) 代码类型:X86-64(本机)父进程:Python [ 1150] 负责人:Python [1151] 用户 ID:501

you don't have the right permissions on /usr/bin directory some how!你在/usr/bin目录上没有正确的权限怎么办!

I've seen a similar post like this on stack overflow.我在堆栈溢出上看到过类似的帖子。 (Mac Terminal - 'pointer being freed was not allocated' error when opening terminal) (Mac 终端 - 打开终端时出现“未分配指针被释放”错误)

This post will guide you how to fix this permission problem.这篇文章将指导你如何解决这个权限问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM