From owner-freebsd-current@freebsd.org Fri Oct 5 18:10:05 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4FE310B2D9A for ; Fri, 5 Oct 2018 18:10:05 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-yb1-xb43.google.com (mail-yb1-xb43.google.com [IPv6:2607:f8b0:4864:20::b43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F2448B074 for ; Fri, 5 Oct 2018 18:10:05 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-yb1-xb43.google.com with SMTP id 5-v6so5800116ybf.3 for ; Fri, 05 Oct 2018 11:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4mdgzOt1Hl8OvS4XtFfsT2Q30tEvVcHbNQ4DvvKfiZk=; b=bE61UcXT9obGDpNYF5YrD5K1/hp8Kf99IFe/EmrHqOfljfnbNvFbTvd+H+Iety4gCQ oeJqT/7uvpktJuwZ9fLnUns/+Kc4dMsbul+rWAuOppWNV93mJhtnJnENpqvbQZxIkLC3 aDNUxUm+5HIHGdS8azeU4ufldtxeFn3U1JBPkobjqiKk7529AtWvK/piDaQZaSTJ7DkE Q5v6ay73Ug9rAQYnc8941RMvbPi6pbT47JBSiOqzZAbEQCnU8k9pGYkZ7OZNyYd+ekAL G6yu4hyXu6FS93M7sKqSccSj1L6hQxmN4GF+OBg0ZtqUCGytn0bIbhXxtxBS12UEMAhF yCIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4mdgzOt1Hl8OvS4XtFfsT2Q30tEvVcHbNQ4DvvKfiZk=; b=gCs5JmrxLZojh+L6oNEzUnDoIQFJl26hskA2qB9ulq7tW5mQjfIfvtM9Y6VM65lsFP rDnGmU/TzVfIT3+F1pRXBIDNIqMbSKWxsArfHpNuHuH2k9u88nwqAQe5pC6mZlizGBqF l6CWQwe0COoQm2XwJpoeFbzpRaWOoY2M8wenNtcmfbWJzgT+EJ+2VGFei5rvWWAu2nMW MhhN07YRqBGkpa7GnOZr8M5mlvVEY1Ps1Ht58OchTGezT3oPhwKcBzqFWB3YXuoc4Cvq KXtpOeQNmq3XSgv1v5dfVdCWoNu4cPwjy1kBW2lF68c//idCXnJHLu3E7fq3Hjmb+WH2 XNZQ== X-Gm-Message-State: ABuFfoihmJ3MewjYHWvkS1hcoOM/8lOxswWoWoronTfp6XClu6HRJtuw j5s4fZEvxcz0NxMr7OqRlG/yKvGx/hinw4J/dBY= X-Google-Smtp-Source: ACcGV61RiPqmdhNFbctstoTC8xL5unrYKaykzut5xc2V7222FKx9mK3z1pGvd9akBXl1MGBVs/h73XCbv7wocgvfXuE= X-Received: by 2002:a25:4488:: with SMTP id r130-v6mr7055312yba.278.1538763004699; Fri, 05 Oct 2018 11:10:04 -0700 (PDT) MIME-Version: 1.0 References: <1538754421.3223.0@smtp.migadu.com> In-Reply-To: <1538754421.3223.0@smtp.migadu.com> From: blubee blubeeme Date: Sat, 6 Oct 2018 02:09:53 +0800 Message-ID: Subject: Re: linux-c7 and opengl apps? To: Greg V Cc: Johannes Lundberg , FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2018 18:10:06 -0000 On Fri, Oct 5, 2018 at 11:50 PM Greg V wrote: > > > On Wed, Oct 3, 2018 at 12:36 PM, Johannes Lundberg > wrote: > > Hi > > > > Have anyone successfully run opengl apps with linux-c7? > > > > Linux opengl apps works great with linux-c6 on gpu < kabylake but > > linux-c6-dri does not include support for kabylake gpus. > > Linux glxinfo in c7 show support for hardware rendering on kabylake > > but any > > attempt to run an opengl app results in application seg fault or other > > crash (I believe this is also the case with skylake gpus on linux-c7). > > On AMD Polaris: everything used to work in an ubuntu 16.04 chroot > (currently having "can't open display :0" with that, probably > forgetting something). > > Trying Unigine Heaven with c7, segfaults right now. glxinfo shows > everything correctly though. > > > Is there any way to run gdb on linux apps/core dumps? > > There was a BSDCan talk that mentioned some gdb solutions: > > https://www.youtube.com/watch?v=9N3NrPeCJpk > > https://www.bsdcan.org/2018/schedule/attachments/473_linuxulator-notes-bsdcan2018.txt > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > In the video, you guys run into issues w/ debugging core dumps. While this doesn't make any sense, you guys are free to write your own Linux core dump disassembler. Core dumps are created this way: https://github.com/torvalds/linux/blob/master/fs/binfmt_elf.c#L97 The elf format is documented online. Once that's done you have all the registers, heap, stack, data and you can play from there. Writing a disassembler should be childs play, shouldn't it? Best