On 8/27/13 1:04 PM, Dominique Pellé wrote:
Manpreet Singh <manpreet.si...@gmail.com> wrote:

(Please excuse any duplicate posts. Posting via news.gmane.org seems to have 
bounced)

Platform: Mac OS X 10.8.4 64-bit (latest release at time of posting)

Version: MacVim 7.4.9 (vim original (hg) or vim/gvim based on macvim sources)

Reproduction:

   :call expand('a', 'p', 0700)

causes immediate bus error.

I can't reproduce it on my Linux x86_64 laptop.

But SIGBUS would happen for a misaligned memory access
which is problematic on some processors (SPARC, MIPS, ...)
but not other (x86...).  That's probably why I don't see the bug.

Can you provide a stack trace with gdb and/or reproduce it
with valgrind?

Dominique


Hmm, I couldn't reproduce it with just expand this time though now but mkdir still crashes in f_mkdir. Stack below:

% gdb /Applications/MacVim.app/Contents/MacOS/Vim
(gdb) set args -u NONE -U NONE +'call mkdir(expand("abc", "p", 0700))'
(gdb) run
Error detected while processing command line:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000001001c0d98
0x0000000100036a19 in f_mkdir ()
(gdb) bt
#0  0x0000000100036a19 in f_mkdir ()
#1  0x0000000100025cc3 in call_func ()
#2  0x0000000100028232 in get_func_tv ()
#3  0x0000000100027989 in ex_call ()
#4  0x0000000100058745 in do_one_cmd ()
#5  0x00000001000550bf in do_cmdline ()
#6  0x00000001001b69fd in main ()
(gdb)

Thanks
Manpreet

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui