osx-snow-leopard

Disabling ASLR in Mac OS X Snow Leopard

徘徊边缘 提交于 2019-12-17 19:29:52
问题 Essentially I want to disable ASLR in Mac OS X Snow Leopard and use gcc todo some buffer overflowing and stack overflows. Anyone know how to disable ASLR? 回答1: Asan authors listed several ways to disable ASLR in MacOS: https://code.google.com/p/address-sanitizer/issues/detail?id=29 For 10.6 export DYLD_NO_PIE=1 For 10.7 and newer: "unset the MH_PIE bit in an already linked executable" with --no-pie flag of the script http://src.chromium.org/viewvc/chrome/trunk/src/build/mac/change_mach_o

Disabling ASLR in Mac OS X Snow Leopard

喜夏-厌秋 提交于 2019-12-17 19:27:20
问题 Essentially I want to disable ASLR in Mac OS X Snow Leopard and use gcc todo some buffer overflowing and stack overflows. Anyone know how to disable ASLR? 回答1: Asan authors listed several ways to disable ASLR in MacOS: https://code.google.com/p/address-sanitizer/issues/detail?id=29 For 10.6 export DYLD_NO_PIE=1 For 10.7 and newer: "unset the MH_PIE bit in an already linked executable" with --no-pie flag of the script http://src.chromium.org/viewvc/chrome/trunk/src/build/mac/change_mach_o

Install Rails 3 on OSX with RVM

不羁岁月 提交于 2019-12-17 17:34:46
问题 Trying to install the new Rails 3 release on OSX 10.6. Have never touched Ruby or Rails on this machine since purchased. I was able to get rvm and get Ruby 1.9.2. installed. From there, I am stuck. I tried: rvmsudo gem install rails -v 3.0.0 sudo gem install rails --pre sudo gem install rails sudo gem update rails And I get the same result error each time: ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - /Users/kevin/.rvm/gems/ruby-1.9.2-head@rails3/cache

weird gdb message when debugging C++ program

谁都会走 提交于 2019-12-17 16:39:18
问题 I use the apple's gdb, version as follow GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin". I don't

can't start MySql in Mac OS 10.6 Snow Leopard

孤街浪徒 提交于 2019-12-17 15:23:36
问题 I've googled this and could'nt find anything new and useful for Apple's new OS SnowLeopard. I wonder if this is my mistake or I do need to do something? this is what I did: Downloaded from mysql site: http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg I choose : Mac OS X 10.5 (x86_64) I run all the packages and installed all of them. So now I certainly have mysql in /usr/local/mysql/ But when trying to start it from preferences panel, it is always STOPPED. When I try to do (in the

Easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard), 10.7 (Lion), 10.8 (Mountain Lion)?

大兔子大兔子 提交于 2019-12-17 15:08:21
问题 What is the easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard), 10.7 (Lion), 10.8 (Mountain Lion)? I'd prefer to use any bundled versions before resorting to downloading from the PHP or MySQL websites. That also rules out MAMP and similar. I'm comfortable at the command line in Terminal. 回答1: Open a good text editor (I'd recommend TextMate, but the free TextWrangler or vi or nano will do too), and open: /etc/apache2/httpd.conf Find the line: "#LoadModule php5_module libexec

Eclipse hangs on loading workbench

霸气de小男生 提交于 2019-12-17 14:59:54
问题 My eclipse stops loading workbench. I tried already starting with ./eclipse --clean When starting from console it throws following exception: java.lang.NullPointerException at org.eclipse.core.internal.runtime.Log.isLoggable(Log.java:101) at org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.safeIsLoggable(ExtendedLogReaderServiceFactory.java:57) at org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.java:158) at org

“git pull” broken

心已入冬 提交于 2019-12-17 12:17:11
问题 I recently upgraded my MacBook Pro to Snow Leopard and "git pull" returns: rakudo $ git pull git: 'pull' is not a git-command. See 'git --help' Did you mean this? shell rakudo $ git-pull -bash: git-pull: command not found I've tried reinstalling via macports, but to no avail. Then I saw this rakudo $ git --exec-path /Users/ovid/libexec/git-core That surprised me as that directory does not exist, nor has it ever existed. Google is not helping here. Hopefully you can :) 回答1: Looking in the

Django + MySQL on Mac OS 10.6.2 Snow Leopard

大兔子大兔子 提交于 2019-12-17 10:30:37
问题 There were some excellent answers to this question already, however, they are now outdated. I've been able to get the module installed, but "python manage.py runserver" fails with iMac:myproject drhoden$ python manage.py runserver Validating models... Unhandled exception in thread started by <function inner_run at 0x10496f0> Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/management/commands/runserver.py", line

Equivalent of strace -feopen < command > on mac os X

[亡魂溺海] 提交于 2019-12-17 08:01:48
问题 This is useful for debugging (hence programming related). On linux, we can use the command strace -feopen python myfile.py to figure out which python modules and shared objects are loaded. Is there an equivalent one-liner on macOS X? 回答1: I suppose you meant strace -fetrace=open ? dtruss -f -t open python myfile.py 来源: https://stackoverflow.com/questions/1925978/equivalent-of-strace-feopen-command-on-mac-os-x