#linuxcnc-devel Logs

Mar 18 2018

#linuxcnc-devel Calendar

02:17 AM hazzy-dev1 is now known as hazzy-dev
10:55 AM jepler: next surprise: afl-fuzz did NOT immediately find any crashes in the rs274 standalone interpreter. I'm surprised, frankly
10:55 AM jepler: for instance, the interpreter just gives a nice clear error when confronted with
10:56 AM jepler: .. it says: Unknown word starting with s
11:01 AM seb_kuzm1nsky: that's wonderful and surprising
11:01 AM seb_kuzm1nsky is now known as seb_kuzminsky
11:05 AM jepler: hi seb_kuzminsky you are no longer #1
11:06 AM jepler: playing with toys like ubsan and afl is really fun
11:19 AM rene-dev: jepler does linuxcnc build with clang?
11:19 AM jepler: rene-dev: yup
11:19 AM rene-dev: cool
11:20 AM jepler: no discernable advantage from doing it, but it does build and pass the tests. It's regularly tested using whatever version of clang was on debian wheezy. http://buildbot.linuxcnc.org/buildbot/builders/1903.clang-wheezy-amd64
11:20 AM rene-dev: one advantage is a lot better error messages
11:21 AM rene-dev: I have seen it multiple times where gcc would not find use of uninizialized variables, but clang does
11:21 AM jepler: that's true
11:22 AM jepler: plenty of compiler diagnostics to look into if you can stand it http://buildbot.linuxcnc.org/buildbot/builders/1903.clang-wheezy-amd64/builds/2564/steps/compile/logs/warnings%20%2892%29
11:23 AM rene-dev: I see you are fuzzing the interpreter? nice!
11:43 AM jepler: wow still no crashes or hangs in the interpreter found by afl.
11:57 AM cradek: that's pretty amazing
11:57 AM cradek: has it figured out to use O words?
11:57 AM jepler: cradek: probably not
11:57 AM jepler: I should seed it with some
11:59 AM jepler: queue/id:000541,src:000301,op:flip1,pos:3,+cov:OCOSXQY0Z0
12:00 PM jepler: I don't think a program starting 'O COS ...' is probably a good one, but at least it tried
12:00 PM jepler: queue/id:000875,src:000714,op:arith8,pos:5,val:-14:OCOS[CY0Z0
12:00 PM jepler: O COS[... might be getting closer to something the interpreter will accept
12:01 PM rene-dev: maybe start a second run and limit it to numbers and characters it will actually accept
12:02 PM jepler: it does have some sort of way to specify a 'grammar' for input files, I haven't played with that yet. I think that's the way afl does the thing you're saying, rene-dev
12:03 PM jepler: er, dictionary
12:24 PM cradek: is it typing into the READ=> prompt, or is it writing files for rs274?
12:25 PM cradek: (fwiw ocos[0] is a fine o label)
12:33 PM jepler: cradek: it's sending files on stdin to rs274 -g /dev/stdin
12:33 PM cradek: I think o words can't work then?
12:34 PM jepler: oh maybe so
12:37 PM jepler: OK I've changed it so it takes a file
12:37 PM jepler: /home/jepler/src/linuxcnc/bin/rs274 -g /home/jepler/src/afl-2.52b/rs274-findings2//.cur_input
12:37 PM jepler: e.g.
12:48 PM jepler: - Occasionally, sentient machines rise against their creators. If this
12:48 PM jepler: happens to you, please consult http://lcamtuf.coredump.cx/prep/.
04:12 PM linuxcnc-build: build #4625 of 1301.rip-precise-rtai-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1301.rip-precise-rtai-i386/builds/4625 blamelist: Jeff Epler <jepler@unpythonic.net>, Jeff Epler <jepler@gmail.com>
04:21 PM linuxcnc-build: build #3240 of 1401.rip-wheezy-rtai-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1401.rip-wheezy-rtai-i386/builds/3240 blamelist: Jeff Epler <jepler@unpythonic.net>, Jeff Epler <jepler@gmail.com>
04:26 PM seb_kuzminsky: ruh roh
04:26 PM seb_kuzminsky: /home/buildslave/emc2-buildbot/precise-rtai-x86/precise-i386-realtime-rip/build/src/hal/hal_lib.c:3109:5: error: unknown type name ‘intptr_t’
04:26 PM linuxcnc-build: build #2564 of 1902.clang-wheezy-rtai-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1902.clang-wheezy-rtai-i386/builds/2564 blamelist: Jeff Epler <jepler@unpythonic.net>, Jeff Epler <jepler@gmail.com>
04:26 PM seb_kuzminsky: i should teach the buildbot to build PRs, so we don't get these kinds of surprises on rtai
05:00 PM linuxcnc-build: build #5433 of 0000.checkin is complete: Failure [4failed] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/0000.checkin/builds/5433 blamelist: Jeff Epler <jepler@unpythonic.net>, Jeff Epler <jepler@gmail.com>
05:47 PM jepler: thanks buildbot, I'll fix it when I get home
05:47 PM jepler: sorry everyone else
05:47 PM jepler: seb_kuzminsky: .. and/or I should teach travis-ci to do ANY rtai build
05:48 PM * jepler rummages around for a machine with rtai. uh oh.
05:55 PM andypugh: Chris_Morley: Are you awake?
05:56 PM andypugh: I think that GladeVCP is partly yours? https://forum.linuxcnc.org/gmoccapy/34188-hal-gladevcp-iconview-widget-coding-error#107523
05:57 PM jepler: hmm <linux/types.h> has uintptr_t as well as all the other happy {u,}int_XX types all the way back to 2.6. https://elixir.bootlin.com/linux/v2.6.32/source/include/linux/types.h
05:59 PM jepler: but only uintptr_t, not intptr_t, hm
08:25 PM jepler: let's try this...
08:37 PM jepler: seb_kuzminsky: thank you for buildbot
08:37 PM jepler: afl-fuzz has started finding hangs in rs274, no crashes
08:37 PM jepler: > r20 g85 l1988888888 f35z.1
08:38 PM jepler: is that the repeat count? heh
08:41 PM jepler: here's a more interesting hang
08:41 PM jepler: https://emergent.unpythonic.net/files/sandbox/id:000002,src:000178,op:havoc,rep:64
08:43 PM jepler: simpler reproducer: $ perl -e 'print "A" x 512' | ~/src/linuxcnc/bin/rs274 -g /dev/stdin
08:46 PM jepler: so mostly it's found files that have a long line and no EOL at end of file..
08:50 PM jepler: by grep, there are 3 different sites that have this problem; one of the three even noted the need to check for eof ;-)
09:03 PM jepler: bugs fixed, repeat count of canned cycles capped at 10,000, and let's get running again...
09:04 PM elbartek: hi everyone!
09:05 PM elbartek: I am currently looking for a 0.5-4hp spindle motor... used but in good condition... with collet for tool holding
09:05 PM elbartek: any experience with perske motors here?
09:05 PM jepler: hi elbartek. This channel is mostly for the development of the software, not for buying hardware. #linuxcnc and our forum at forum.linuxcnc.org may both be more helpful.
09:06 PM elbartek: thanks!!!!
09:06 PM jepler: thank you, and have a good evening
09:46 PM seb_kuzminsky: jepler: american fuzzy lop ftw