Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build fails at sys.ji #600

Closed
vtjnash opened this issue Mar 17, 2012 · 8 comments
Closed

build fails at sys.ji #600

vtjnash opened this issue Mar 17, 2012 · 8 comments
Labels
bug Indicates an unexpected problem or unintended behavior building Build system, or building Julia or its dependencies

Comments

@vtjnash
Copy link
Member

vtjnash commented Mar 17, 2012

sys.ji image build segfaults before finishing (linux & mac)

currently at commit c2104c9

@JeffBezanson
Copy link
Member

Try make cleanall?

@yarkun
Copy link

yarkun commented Mar 17, 2012

same here on os x (10.7.3, xcode 4.2.1, commit c2104c9):

$ make cleanall
$ make
...deleted output...
sys.ji
/bin/sh: line 1: 2142 Segmentation fault: 11 ./julia test -f sys.ji && echo stage1.jl || echo -J sys0.ji stage1.jl
make[1]: *** [sys.ji] Error 139
make: *** [release] Error 2

@ViralBShah
Copy link
Member

I don't get a segfault on os x (10.7.3, xcode 4.2.1, commit 443afbf). This commit does not have any material changes from the ones mentioned above.

@egonelbre
Copy link

Got the segfault as well... (VBox VM, with Mint 12 LXDE, Linux 3.0.0.-16, i386)

After bisecting, the first bad commit is 55dce00. After adding path "jl/" back to the beginning of start_image.jl it started working again.

@egonelbre
Copy link

Here's the backtrace for it:

Program received signal SIGSEGV, Segmentation fault.
0x002d0a95 in siglongjmp () from /lib/i386-linux-gnu/libc.so.6
(gdb) backtrace
#0  0x002d0a95 in siglongjmp () from /lib/i386-linux-gnu/libc.so.6
#1  0x00162433 in siglongjmp () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x080ac449 in jl_raise (e=0xd015fe0) at task.c:489
#3  0x0807034f in jl_error (
    str=0x4a1240 "in _start: stdout_stream not defined") at builtins.c:28
#4  0x00421b46 in _start ()
#5  0x080701b6 in jl_apply (f=0x8c68148, args=0x0, nargs=0) at julia.h:780
#6  0x080732d1 in jl_trampoline (F=0x8c68148, args=0x0, nargs=0)
    at builtins.c:895
#7  0x0806a448 in jl_apply (f=0x8c68148, args=0x0, nargs=0) at julia.h:780
#8  0x0806d0d3 in jl_apply_generic (F=0x8c67f08, args=0x0, nargs=0)
    at gf.c:1185
#9  0x080600c6 in jl_apply ()
#10 0x080607ee in true_main ()
#11 0x080ab5cf in julia_trampoline (argc=1, argv=0xbffff8d8, 
    pmain=0x80606b3 <true_main>) at init.c:203
#12 0x080609cd in main ()

@JeffBezanson
Copy link
Member

This means it is not finding start_image.jl, probably because the set_cwd around builtins.c:425 is not working. Can you try to see what's happening there?

@vtjnash
Copy link
Member Author

vtjnash commented Mar 17, 2012

The backtrace on mac is different?

(lldb) run -J sys0.ji stage1.jl Process 21956 launched: '/Users/jameson/Documents/no-backup/julia/julia' (x86_64)
julia(21956,0x7fff78c2e960) malloc: *** erjulia(21956,0x7fff78c2e960) malloc: *** error for object 0x10086b9c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Process 21956 stopped

@vtjnash
Copy link
Member Author

vtjnash commented Mar 17, 2012

newcwd has too many characters at the end since (presumably) strncpy doesn't add a null byte.

(lldb) s
Process 21976 stopped

  • thread efficient sets using hash tables #1: tid = 0x1f03, 0x000000010068efff juliaset_cwd + 31 at dirpath.c:45, stop reason = step in frame #0: 0x000000010068efff juliaset_cwd + 31 at dirpath.c:45
    42 {
    43 #ifndef WIN32
    44 if (chdir(buf) == -1)
    -> 45 return 1;
    46 #else
    47 if (SetCurrentDirectory(buf) == 0)
    48 return 1;
    (lldb) print errno
    (void *const) $5 = 0x0000000000000000
    (lldb) print EACCES
    error: use of undeclared identifier 'EACCES'
    error: 1 errors parsing expression
    (lldb) print buf
    (char *) $6 = 0x00007fff5fbfd3b8 "/Users/jameson/Documents/no-backup/julia/jl/\x01"
    (lldb)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Indicates an unexpected problem or unintended behavior building Build system, or building Julia or its dependencies
Projects
None yet
Development

No branches or pull requests

5 participants