Opened 3 days ago

Last modified 3 days ago

#73283 assigned defect

bash @5.3.3 segmentation faults

Reported by: ruz (Ruslan Zakirov) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.11.6
Keywords: sequoia arm64 Cc:
Port: bash

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Updated bash from @5.2.37_0 to @5.3.3_0

Had to disable completion, otherwise it doesn't starts:

#if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
#    . /opt/local/etc/profile.d/bash_completion.sh
#fi

Can not install iterm2 shell integration, segmentation fault:

$ curl -L https://iterm2.com/shell_integration/install_shell_integration_and_utilities.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5332  100  5332    0     0  19821      0 --:--:-- --:--:-- --:--:-- 19895
Segmentation fault: 11

Backtrace:

$ lldb `which bash`
(lldb) target create "/opt/local/bin/bash"
Current executable set to '/opt/local/bin/bash' (arm64).
(lldb) run /Users/ruz/tmp/ttt.sh
Process 57811 launched: '/opt/local/bin/bash' (arm64)
Process 57811 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000000000000
error: memory read failed for 0x0
Target 0: (bash) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000000000000
    frame #1: 0x000000010008199c bash`xdupmbstowcs + 376
    frame #2: 0x0000000100044790 bash`remove_pattern + 116
    frame #3: 0x00000001000429fc bash`parameter_brace_remove_pattern + 312
    frame #4: 0x000000010004024c bash`parameter_brace_expand + 5500
    frame #5: 0x000000010003e4a4 bash`param_expand + 1832
    frame #6: 0x00000001000379c4 bash`expand_word_internal + 1568
    frame #7: 0x0000000100035e08 bash`call_expand_word_internal + 24
    frame #8: 0x0000000100035aec bash`expand_string_assignment + 108
    frame #9: 0x000000010003d3cc bash`expand_string_if_necessary + 436
    frame #10: 0x0000000100035318 bash`do_assignment_internal + 180
    frame #11: 0x0000000100044e94 bash`do_assignment_statements + 228
    frame #12: 0x000000010003d128 bash`expand_word_list_internal + 2592
    frame #13: 0x0000000100017bac bash`execute_simple_command + 3464
    frame #14: 0x0000000100015cbc bash`execute_command_internal + 3388
    frame #15: 0x0000000100014f0c bash`execute_command + 96
    frame #16: 0x0000000100004410 bash`reader_loop + 788
    frame #17: 0x0000000100002dec bash`main + 4772
    frame #18: 0x0000000188574274 dyld`start + 2840

isp file:

{"app_name":"bash","timestamp":"2025-12-01 12:59:55.00 +0300","app_version":"","slice_uuid":"a1d3668b-feb3-3c25-89a0-9db34b5a1b37","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.0.1 (24A348)","roots_installed":0,"incident_id":"A6DF2694-173F-4D6A-ADFB-BF350FED5B94","name":"bash"}
{
  "uptime" : 1200000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,7",
  "coalitionID" : 830,
  "osVersion" : {
    "train" : "macOS 15.0.1",
    "build" : "24A348",
    "releaseType" : "User"
  },
  "captureTime" : "2025-12-01 12:59:54.7346 +0300",
  "codeSigningMonitor" : 1,
  "incident" : "A6DF2694-173F-4D6A-ADFB-BF350FED5B94",
  "pid" : 56813,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2025-12-01 12:59:54.4239 +0300",
  "procStartAbsTime" : 29849604644139,
  "procExitAbsTime" : 29849612078050,
  "procName" : "bash",
  "procPath" : "\/opt\/local\/bin\/bash",
  "parentProc" : "bash",
  "parentPid" : 1348,
  "coalitionName" : "com.googlecode.iterm2",
  "crashReporterKey" : "B85BAFF3-BBFA-D4D1-A079-267AC9756B17",
  "responsiblePid" : 1213,
  "codeSigningID" : "bash",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570556929,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "bootSessionUUID" : "57D2871B-4F06-44A5-ABE1-B16B0B6FA49C",
  "wakeTime" : 11999,
  "sleepWakeUUID" : "EB105BAA-D9AB-4108-B9AC-742C5A23D18E",
  "sip" : "enabled",
  "vmRegionInfo" : "0 is not in any region.  Bytes before following region: 4369104896\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      1046b4000-104784000    [  832K] r-x\/r-x SM=COW  \/opt\/local\/bin\/bash",
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000000"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":56813},
  "vmregioninfo" : "0 is not in any region.  Bytes before following region: 4369104896\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      1046b4000-104784000    [  832K] r-x\/r-x SM=COW  \/opt\/local\/bin\/bash",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":61726660,"threadState":{"x":[{"value":105553172105056},{"value":92},{"value":105553172105056},{"value":1},{"value":396316767342822641},{"value":94},{"value":93},{"value":91},{"value":12092785125074337812},{"value":3732578420},{"value":1023},{"value":1792},{"value":2043},{"value":2045},{"value":3734677617},{"value":3732578420},{"value":0},{"value":113},{"value":0},{"value":6097771368},{"value":0},{"value":105553172105056},{"value":1},{"value":105553174202464},{"value":0},{"value":0},{"value":92},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4369635740},"cpsr":{"value":536876032},"fp":{"value":6097771344},"sp":{"value":6097770976},"esr":{"value":2181038086,"description":"(Instruction Abort) Translation fault"},"pc":{"value":0},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":0,"imageIndex":4},{"imageOffset":280464,"symbol":"remove_pattern","symbolLocation":116,"imageIndex":0},{"imageOffset":272892,"symbol":"parameter_brace_remove_pattern","symbolLocation":312,"imageIndex":0},{"imageOffset":262732,"symbol":"parameter_brace_expand","symbolLocation":5500,"imageIndex":0},{"imageOffset":255140,"symbol":"param_expand","symbolLocation":1832,"imageIndex":0},{"imageOffset":227780,"symbol":"expand_word_internal","symbolLocation":1568,"imageIndex":0},{"imageOffset":220680,"symbol":"call_expand_word_internal","symbolLocation":24,"imageIndex":0},{"imageOffset":219884,"symbol":"expand_string_assignment","symbolLocation":108,"imageIndex":0},{"imageOffset":250828,"symbol":"expand_string_if_necessary","symbolLocation":436,"imageIndex":0},{"imageOffset":217880,"symbol":"do_assignment_internal","symbolLocation":180,"imageIndex":0},{"imageOffset":282260,"symbol":"do_assignment_statements","symbolLocation":228,"imageIndex":0},{"imageOffset":250152,"symbol":"expand_word_list_internal","symbolLocation":2592,"imageIndex":0},{"imageOffset":97196,"symbol":"execute_simple_command","symbolLocation":3464,"imageIndex":0},{"imageOffset":89276,"symbol":"execute_command_internal","symbolLocation":3388,"imageIndex":0},{"imageOffset":85772,"symbol":"execute_command","symbolLocation":96,"imageIndex":0},{"imageOffset":17424,"symbol":"reader_loop","symbolLocation":788,"imageIndex":0},{"imageOffset":11756,"symbol":"main","symbolLocation":4772,"imageIndex":0},{"imageOffset":25204,"symbol":"start","symbolLocation":2840,"imageIndex":5}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4369104896,
    "size" : 851968,
    "uuid" : "a1d3668b-feb3-3c25-89a0-9db34b5a1b37",
    "path" : "\/opt\/local\/bin\/bash",
    "name" : "bash"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4370612224,
    "size" : 245760,
    "uuid" : "196de7b4-5c0d-3d66-8a60-d4bd2962b5ca",
    "path" : "\/opt\/local\/lib\/libncurses.6.dylib",
    "name" : "libncurses.6.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4370399232,
    "size" : 81920,
    "uuid" : "575a7d12-8ec6-3495-8452-f2e160088556",
    "path" : "\/opt\/local\/lib\/libintl.8.dylib",
    "name" : "libintl.8.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4372119552,
    "size" : 1064960,
    "uuid" : "716eab0f-f44e-3268-979e-0ae142aa7709",
    "path" : "\/opt\/local\/lib\/libiconv.2.dylib",
    "name" : "libiconv.2.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6582362112,
    "size" : 534116,
    "uuid" : "40bedd20-da23-3b70-a9c2-a1c68a738762",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" : 6581551104,
  "size" : 4728750080,
  "uuid" : "a02dcfba-3bda-3ca6-8a42-12f00a4d75d3"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=800.0M resident=0K(0%) swapped_out_or_unallocated=800.0M(100%)\nWritable regions: Total=666.5M written=257K(0%) resident=257K(0%) swapped_out=0K(0%) unallocated=666.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           658.2M       14 \nMALLOC guard page                   96K        6 \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \n__AUTH                             749K      154 \n__AUTH_CONST                      12.4M      289 \n__DATA                            3201K      274 \n__DATA_CONST                      9937K      293 \n__DATA_DIRTY                       460K       92 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       583.0M        5 \n__OBJC_RW                         2353K        1 \n__TEXT                           217.0M      302 \n__TPRO_CONST                       272K        2 \nmapped file                         16K        1 \npage table in kernel               257K        1 \nshared memory                       32K        1 \n===========                     =======  ======= \nTOTAL                              1.5G     1439 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "13b0e8ff2399c0aa755ba077eadaafb87e65e38d",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6410af69ed1e1e7ab93ed169",
      "factorPackIds" : {

      },
      "deploymentId" : 240000011
    },
    {
      "rolloutId" : "67181b10c68c361a728c7cfa",
      "factorPackIds" : {

      },
      "deploymentId" : 240000005
    }
  ],
  "experiments" : [

  ]
}
}

Change History (1)

comment:1 Changed 3 days ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: bash removed
Owner: set to raimue
Status: newassigned
Summary: bash 5.3.3 segmentation faultsbash @5.3.3 segmentation faults
Note: See TracTickets for help on using tickets.