Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

xtrace Segmentation Fault #616

Closed
TheBrokenRail opened this issue Jan 5, 2020 · 4 comments
Closed

xtrace Segmentation Fault #616

TheBrokenRail opened this issue Jan 5, 2020 · 4 comments

Comments

@TheBrokenRail
Copy link
Contributor

When debugging #600, I got this:

[234] mprotect (...)
[234]	mprotect () -> 0
[234] getuid (...)
[234]	getuid () -> 1000
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] shm_open (...)
[234] open (...)
[234]	open () -> 4
[234] read (...)
[234]	read () -> 64
[234] pread (...)
[234]	pread () -> 672
[234] mmap (...)
[234]	mmap () -> 0x7FFFF5038000
[234] pread (...)
[234]	pread () -> 28
[234] access (...)
[234]	access () -> 0
[234] access (...)
[234]	access () -> 0
[234] open (...)
[234]	open () -> 5
[234] read (...)
[234]	read () -> 64
[234] pread (...)
[234]	pread () -> 616
[234] mmap (...)
[234]	mmap () -> 0x7FFFF5009000
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF5009000
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF500A000
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF502C000
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF5035000
[234] close (...)
[234]	close () -> 0
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF5038000
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF503A000
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF503B000
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mprotect (...)
[234]	mprotect () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF503C000
[234] close (...)
[234]	close () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF5005000
[234] getentropy (...)
[234]	getentropy () -> 16
[234] sigprocmask (...)
[234]	sigprocmask () -> 0
[234] sigaltstack (...)
[234]	sigaltstack () -> 0
[234] sigprocmask (...)
[234]	sigprocmask () -> 0
[234] sigreturn (...)
[234]	sigreturn () -> 0
[234]	UH��� () -> 0x4

[234] mmap (...)
[234]	mmap () -> 0x7FFFF5004000
[234] close (...)
[234]	close () -> 0
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] mach_msg_trap (...)
[234]	mach_msg_trap () -> KERN_SUCCESS
[234] issetugid (...)
[234]	issetugid () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] getrlimit (...)
[234]	getrlimit () -> 0
[234] open_nocancel (...)
[234]	open_nocancel () -> 4
[234] fstat64 (...)
[234]	fstat64 () -> 0
[234] fstat64 (...)
[234]	fstat64 () -> 0
[234] read_nocancel (...)
[234]	read_nocancel () -> 2849
[234] close_nocancel (...)
[234]	close_nocancel () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] open (...)
[234]	open () -> 4
[234] open (...)
[234]	open () -> ENOENT
[234] close (...)
[234]	close () -> 0
[234] mach_timebase_info_trap (...)
[234]	mach_timebase_info_trap () -> KERN_SUCCESS
[234] issetugid (...)
[234]	issetugid () -> 0
[234] workq_kernreturn (...)
[234]	workq_kernreturn () -> 0
[234] workq_open (...)
[234]	workq_open () -> 0
[234] _kernelrpc_mach_vm_map_trap (...)
[234] task_self_trap ()
[234]	task_self_trap () -> port right 259
[234] mmap (...)
[234]	mmap () -> 0x7FFFF314A000
[234] munmap (...)
[234]	munmap () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF2F4A000
[234] munmap (...)
[234]	munmap () -> 0
[234] munmap (...)
[234]	munmap () -> 0
[234]	mach -1 () -> 0x0
[234] guarded_kqueue_np (...)
[234] getrlimit (...)
[234]	getrlimit () -> 0
[234] mmap (...)
[234]	mmap () -> 0x7FFFF2800000
[234]	UH��� () -> 0x4

[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[234]	UH��� () -> 0x0

[234] bsdthread_create (...)
[235] thread_self_trap ()
[235]	thread_self_trap () -> port right 2819
[234]	bsdthread_create () -> -6
[235] thread_selfid (...)
[234] kevent64 (...)
[235]	kevent64 () -> 235
[234] thread_selfid (...)
[234]	UH��� () -> 0xEA

[234] write (...)
[234]	write () -> 8
[234]	UH��� () -> 0x1

[235] __pthread_sigmask (...)
[235]	__pthread_sigmask () -> 0
[235] _kernelrpc_mach_vm_allocate_trap (...)
[235] task_self_trap ()
[235]	task_self_trap () -> port right 259
[235] task_self_trap ()
[235]	task_self_trap () -> port right 259
[234] gettid (...)
[235] mmap (...)
[234]	gettid () -> 0
[235]	mmap () -> 0x7FFFF4D84000
[235]	mach -1 () -> 0x0
[234] geteuid (...)
[235] workq_kernreturn (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] gethostuuid (...)
[236] thread_self_trap ()
[236]	thread_self_trap () -> port right 3075
[235]	workq_kernreturn () -> 0
[236] thread_selfid (...)
[236]	UH��� () -> 0xEC

[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[236] kevent64 (...)
[236] thread_selfid (...)
[234]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[236]	thread_selfid () -> 236
[236]	UH��� () -> 0x1

[236] _kernelrpc_mach_vm_allocate_trap (...)
[236] task_self_trap ()
[235] gettimeofday (...)
[236]	task_self_trap () -> port right 259
[235]	gettimeofday () -> 0
[236] task_self_trap ()
[235] kevent64 (...)
[236]	task_self_trap () -> port right 259
[236] mmap (...)
[235] thread_selfid (...)
[235]	thread_selfid () -> 235
[236]	mmap () -> 0x7FFFF4FC5000
[236]	mach -1 () -> 0x0
[235] write (...)
[236] socket (...)
[235]	write () -> 8
[235]	UH��� () -> 0x1

[236]	socket () -> 11
[235] kevent64 (...)
[236] fcntl (...)
[235] thread_selfid (...)
[235]	thread_selfid () -> 235
[236]	fcntl () -> 0
[236] connect (...)
[235] gettimeofday (...)
[236]	connect () -> ECONNREFUSED
[235]	gettimeofday () -> 0
[236] close (...)
[235] thread_selfid (...)
[236] kevent64 (...)
[235]	thread_selfid () -> 235
[235] read (...)
[236] psynch_mutexwait (...)
[235]	read () -> 8
[235] psynch_mutexdrop (...)
[236]	psynch_mutexwait () -> 2051
[235]	psynch_mutexdrop () -> 0
[236] thread_selfid (...)
[235] psynch_mutexwait (...)
[236]	thread_selfid () -> 236
[236] psynch_mutexdrop (...)
[236]	psynch_mutexdrop () -> 0
[236]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[235]	psynch_mutexwait () -> 2307
[235] thread_selfid (...)
[235]	thread_selfid () -> 235
[235]	UH��� () -> 0x1

[235] kevent64 (...)
[236]	UH��� () -> 0x0

[236] _kernelrpc_mach_vm_deallocate_trap (...)
[236] task_self_trap ()
[236]	task_self_trap () -> port right 259
[236] munmap (...)
[236]	munmap () -> 0
[236]	mach -1 () -> 0x0
[236] workq_kernreturn (...)
[234]	UH��� () -> 0x0

[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] open_nocancel (...)
[234]	open_nocancel () -> 11
[234] sysctl (...)
[234]	sysctl () -> 0
[234] fstatfs64 (...)
[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[234]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[234]	UH��� () -> 0x0

[234] getdirentries64 (...)
[234]	getdirentries64 () -> 92
[234] getdirentries64 (...)
[234]	getdirentries64 () -> 0
[234] close_nocancel (...)
[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[234]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[234]	UH��� () -> 0x0

[234] open_nocancel (...)
[234]	open_nocancel () -> 11
[234] fstatfs64 (...)
[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[234]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[234]	UH��� () -> 0x0

[234] getdirentries64 (...)
[234]	getdirentries64 () -> 124
[234] getdirentries64 (...)
[234]	getdirentries64 () -> 0
[234] close_nocancel (...)
[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[234]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[234]	UH��� () -> 0x0

[234] open (...)
[234]	open () -> 11
[234] fstat64 (...)
[234]	fstat64 () -> 0
[234] read (...)
[234]	read () -> 1055
[234] close (...)
[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[234]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[234]	UH��� () -> 0x0

[234] stat64 (...)
[234]	stat64 () -> 0
[234] open (...)
[234]	open () -> 11
[234] read (...)
[234]	read () -> 512
[234] close (...)
[234] kevent64 (...)
[234] thread_selfid (...)
[234]	thread_selfid () -> 234
[234]	UH��� () -> 0xFFFFFFFFFFFFFFFF

[234]	UH��� () -> 0x0

[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] issetugid (...)
[234]	issetugid () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] open (...)
[234]	open () -> ENOENT
[234] gettimeofday (...)
[234]	gettimeofday () -> 0
[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] workq_kernreturn (...)
[234]	workq_kernreturn () -> 0
[236] thread_self_trap ()
[236]	thread_self_trap () -> port right 3075
[234] gettid (...)
[234]	gettid () -> 0
[234] geteuid (...)
[234]	geteuid () -> 1000
[234] stat64 (...)
[234]	stat64 () -> 0
[234] psynch_rw_unlock (...)
[236] psynch_rw_wrlock (...)
[234]	psynch_rw_unlock () -> 99589
[234] psynch_rw_rdlock (...)
[236]	psynch_rw_wrlock () -> 259
Segmentation fault: 11 (core dumped)

core.txt.xz.zip

@bugaevc
Copy link
Member

bugaevc commented Jan 5, 2020

Which reminds me, I still haven't committed and pushed the new xtrace.

Anyway, xtrace is not going to help you to debug syscalls made by the native GL implementation; use strace (from a Linux shell)

@bjorn3
Copy link

bjorn3 commented Jan 5, 2020

I see some [234] UH��� () -> 0x4 in the log. Could it be related to the SIGSEGV?

@TheBrokenRail
Copy link
Contributor Author

Any updates on the updated xtrace?

@bugaevc
Copy link
Member

bugaevc commented Feb 11, 2020

Any updates on the updated xtrace?

Yep, it's in master now :) See 8be71f4 and a804c50

@bugaevc bugaevc closed this as completed Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants