<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>41256</bug_id>
          
          <creation_ts>2021-11-01 12:55:02 +0300</creation_ts>
          <short_desc>fatal error: unexpected signal during runtime execution на i586</short_desc>
          <delta_ts>2023-12-05 17:12:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>golang</component>
          <version>unstable</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>iv</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>204288</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2021-11-01 12:55:02 +0300</bug_when>
    <thetext>Шаги воспроизведения:
# apt-get install golang
$ cat &gt; test.go &lt;&lt;EOF
package main

func main() {
    println(&quot;Hello, World!&quot;)
}
EOF
$ go run test.go

Получаю ошибки:

$ go run test.go 
fatal error: unexpected signal during runtime execution
[signal SIGFPE: floating-point exception code=0x6 addr=0x806bb0f pc=0x806bb0f]

goroutine 11 [running]:
runtime.throw({0x857c54b, 0x2a})
        /usr/lib/golang/src/runtime/panic.go:1198 +0x6a fp=0x8c3058c sp=0x8c30578 pc=0x807baca
runtime.sigpanic()
        /usr/lib/golang/src/runtime/signal_unix.go:719 +0x233 fp=0x8c305a4 sp=0x8c3058c pc=0x80912c3
runtime.deductSweepCredit(0x2000, 0x0)
        /usr/lib/golang/src/runtime/mgcsweep.go:726 +0x9f fp=0x8c305d0 sp=0x8c305a4 pc=0x806bb0f
runtime.(*mcentral).cacheSpan(0x88d3a5c)
        /usr/lib/golang/src/runtime/mcentral.go:82 +0x4b fp=0x8c3060c sp=0x8c305d0 pc=0x805dadb
runtime.(*mcache).refill(0xb7cf1790, 0x59)
        /usr/lib/golang/src/runtime/mcache.go:162 +0x91 fp=0x8c30638 sp=0x8c3060c pc=0x805d2f1
runtime.(*mcache).nextFree(0xb7cf1790, 0x59)
        /usr/lib/golang/src/runtime/malloc.go:880 +0x81 fp=0x8c30658 sp=0x8c30638 pc=0x8054181
runtime.mallocgc(0xe00, 0x84fd280, 0x1)
        /usr/lib/golang/src/runtime/malloc.go:1071 +0x3fc fp=0x8c306a8 sp=0x8c30658 pc=0x805471c
runtime.makeslice(0x84fd280, 0xe00, 0xe00)
        /usr/lib/golang/src/runtime/slice.go:98 +0x4f fp=0x8c306bc sp=0x8c306a8 pc=0x80920ff
bytes.makeSlice(0xe00)
        /usr/lib/golang/src/bytes/buffer.go:229 +0x64 fp=0x8c306d8 sp=0x8c306bc pc=0x8137394
bytes.(*Buffer).grow(0x8ee4d80, 0x200)
        /usr/lib/golang/src/bytes/buffer.go:142 +0xf2 fp=0x8c30700 sp=0x8c306d8 pc=0x8136e12
bytes.(*Buffer).ReadFrom(0x8ee4d80, {0x8632a58, 0x8f82ef8})
        /usr/lib/golang/src/bytes/buffer.go:202 +0x45 fp=0x8c30744 sp=0x8c30700 pc=0x81371b5
io.copyBuffer({0x863210c, 0x8ee4d80}, {0x8632a58, 0x8f82ef8}, {0x0, 0x0, 0x0})
        /usr/lib/golang/src/io/io.go:409 +0x12b fp=0x8c30798 sp=0x8c30744 pc=0x8101f6b
io.Copy(...)
        /usr/lib/golang/src/io/io.go:382
os/exec.(*Cmd).writerDescriptor.func1()
        /usr/lib/golang/src/os/exec/exec.go:311 +0x55 fp=0x8c307d4 sp=0x8c30798 pc=0x813bda5
os/exec.(*Cmd).Start.func1(0x8c9b550, 0x8fa3ab0)
        /usr/lib/golang/src/os/exec/exec.go:441 +0x1d fp=0x8c307e8 sp=0x8c307d4 pc=0x813c77d
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_386.s:1319 +0x1 fp=0x8c307ec sp=0x8c307e8 pc=0x80a9281
created by os/exec.(*Cmd).Start
        /usr/lib/golang/src/os/exec/exec.go:440 +0x797

golang-1.17.2-alt1.i586

Воспроизводится только на i586, на x86_64 такой проблемы нет.
В p10 аналогичная ошибка, но в p9 не воспроизводится.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238412</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-12-05 17:12:04 +0300</bug_when>
    <thetext>golang-1.21.4-alt1 - ошибка не воспроизводится.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>