unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Tim Gesthuizen <tim.gesthuizen@yahoo.de>
To: Marius Bakke <mbakke@fastmail.com>, 32458@debbugs.gnu.org
Subject: bug#32458: Acknowledgement (SDL SEGFAULTs on foreign distro)
Date: Wed, 22 Aug 2018 21:18:46 +0200	[thread overview]
Message-ID: <d9b6b71a-78e9-e74a-b392-b5b44d6e1a13@yahoo.de> (raw)
In-Reply-To: <87ftz8pxde.fsf@fastmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 2443 bytes --]

On 20.08.2018 22:59, Marius Bakke wrote:
> Hello again,
> 
> Just a quick feedback on the bisect script:
> 
> Tim Gesthuizen <tim.gesthuizen@yahoo.de> writes:
> 
>> #!/bin/sh
>>
>> cd $HOME/src/guix/build
>> (cd ..; ./bootstrap) || exit 125
>> (../configure --localstatedir=/var && make -j8) || exit 125
>> PATH=$(./pre-inst-env guix build teeworlds | grep  /gnu/store | tail -n 1) || exit 125
>> $PATH/bin/teeworlds || exit 1
> 
> I suggest not running "./bootstrap" and "./configure" in between runs.
> "make" will invoke ./configure (with current parameters) if necessary.
> 
> Then it can be reduced to a two-liner:
> 
> 
> 
> 
> Again, nice work; I look forward to fix this bug :-)
> 

I have changed the bisect script.
You find the new one attached. I have never worked with autoconf so I
just wanted to be sure that everything would configure correctly and not
cause problems.


> I think the reason
> you had to skip these commits were because of ABI issues in the git
> checkout (incompatible Guile objects).

Well, I also somewhat forgot that I fixed teeworlds not a long time ago
(see commit e402a66b07c12aadf5eed1472110684831f1f498)... so any
compilations of teeworlds before were doomed to fail.
This is not as bad as it sounds because remembering this gave me a
commit that I could definitely verify as good.
With this new starting point I started bisecting again from that commit
marked as the first good one to the current commit on master marked as
the first bad one.
This bisect passed without a single skip. It reports that the bug was
first introduced by 5318b103ff277efbac248a066d162589a9083baa (which is
the first commit after a larger merge).

I also noticed something odd: After I realized that using teeworlds for
verifying SDL could not have been a very wise decision I wrote a little
guile script using guile-sdl2 (sdl.scm).
I tried to bisect using this script for SDL verification and found out
that I could not find any commits where SDL2 worked for me.
Even in commits where teeworlds builds and runs without a problem SDL2
will always crash.
Also there are some revisions where teeworlds starts with bad resolution
(the window begins on my second monitor and ends somewhere on my first
monitor). But that is probably not of interest now.

I hope these informations help. If I forgot something in the rush of
writing this mail feel free to ask for it.

[-- Attachment #1.1.2: test.sh --]
[-- Type: application/x-shellscript, Size: 145 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.3: sdl.scm --]
[-- Type: text/x-scheme; name="sdl.scm", Size: 337 bytes --]

(use-modules (sdl2)
             (sdl2 render)
             (sdl2 surface)
             (sdl2 video))

(define (draw ren)
    (clear-renderer ren)
    (present-renderer ren)
    (sleep 2))

(sdl-init)

(call-with-window (make-window)
  (lambda (window)
    (call-with-renderer (make-renderer window) draw)))

(sdl-quit)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2018-08-22 19:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-16 17:25 bug#32458: SDL SEGFAULTs on foreign distro Tim Gesthuizen
     [not found] ` <handler.32458.B.153444037626013.ack@debbugs.gnu.org>
2018-08-20 16:12   ` bug#32458: Acknowledgement (SDL SEGFAULTs on foreign distro) Tim Gesthuizen
2018-08-20 20:35     ` Marius Bakke
2018-08-20 20:59     ` Marius Bakke
2018-08-22 19:18       ` Tim Gesthuizen [this message]
2018-10-07 16:22         ` Tim Gesthuizen
2018-10-07 20:06           ` Marius Bakke
2018-10-08 18:07             ` Tim Gesthuizen
2018-10-08 18:28               ` Marius Bakke
2018-10-10 15:35                 ` Tim Gesthuizen
2018-10-15 19:19                   ` Marius Bakke
2018-10-15 19:31                     ` Marius Bakke
2018-10-16 18:20                       ` Tim Gesthuizen
2018-10-17 15:13                         ` Marius Bakke
2018-10-22 17:23                           ` Tim Gesthuizen
2018-10-22 20:50                             ` Marius Bakke
2018-10-29 18:43                               ` Tim Gesthuizen
2018-11-14 19:49                                 ` Marius Bakke
     [not found] ` <87zhs0hbre.fsf@fastmail.com>
2019-01-18 20:14   ` Tim Gesthuizen
2019-01-23 17:32   ` Tim Gesthuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9b6b71a-78e9-e74a-b392-b5b44d6e1a13@yahoo.de \
    --to=tim.gesthuizen@yahoo.de \
    --cc=32458@debbugs.gnu.org \
    --cc=mbakke@fastmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).