I am not aware of the technology used in this git repo but just trying to follow steps that are given by creator on https://github.com/paulmaunders/delivery-slot-bot
I have a windows machine and installed VMware player then Kali on it. Downloaded the repo and installed NPM in kali. When i run the command "Yarn Start" it is giving me the below error. I downloaded chrome and installed too but no joy. Any advice how to fix this would be greatly appreciated.
I have used Kali a bit so have some knowledge of Linux but cant figure this one out.
Thanks in advance
kali#kali:~/Downloads/delivery-slot-bot-master/delivery-slot-bot$ yarn start
yarn run v1.22.4
$ node ./src/index.js
index.js
Runs one-off
Options:
--version Show version number [boolean]
--help Show help [boolean]
Error: Failed to launch chrome!
[0421/142758.038038:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
#0 0x564e68efe879 base::debug::CollectStackTrace()
#1 0x564e68e5bc63 base::debug::StackTrace::StackTrace()
#2 0x564e68e70013 logging::LogMessage::~LogMessage()
#3 0x564e6a60a95e service_manager::ZygoteHostImpl::Init()
#4 0x564e68a9fadc content::ContentMainRunnerImpl::Initialize()
#5 0x564e68aeb72c service_manager::Main()
#6 0x564e68a9e0b1 content::ContentMain()
#7 0x564e68aea99d headless::(anonymous namespace)::RunContentMain()
#8 0x564e68aea70b headless::HeadlessShellMain()
#9 0x564e6687b1b8 ChromeMain
#10 0x7f92b55efbbb __libc_start_main
#11 0x564e6687b02a _start
Received signal 6
#0 0x564e68efe879 base::debug::CollectStackTrace()
#1 0x564e68e5bc63 base::debug::StackTrace::StackTrace()
#2 0x564e68efe401 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7f92b7a76520 <unknown>
#4 0x7f92b5603081 gsignal
#5 0x7f92b55ee535 abort
#6 0x564e68efd265 base::debug::BreakDebugger()
#7 0x564e68e70461 logging::LogMessage::~LogMessage()
#8 0x564e6a60a95e service_manager::ZygoteHostImpl::Init()
#9 0x564e68a9fadc content::ContentMainRunnerImpl::Initialize()
#10 0x564e68aeb72c service_manager::Main()
#11 0x564e68a9e0b1 content::ContentMain()
#12 0x564e68aea99d headless::(anonymous namespace)::RunContentMain()
#13 0x564e68aea70b headless::HeadlessShellMain()
#14 0x564e6687b1b8 ChromeMain
#15 0x7f92b55efbbb __libc_start_main
#16 0x564e6687b02a _start
r8: 0000000000000000 r9: 00007ffde55c0d60 r10: 0000000000000008 r11: 0000000000000246
r12: 00007ffde55c2028 r13: 00007ffde55c1008 r14: 00007ffde55c1008 r15: 00007ffde55c1020
di: 0000000000000002 si: 00007ffde55c0d60 bp: 00007ffde55c0fb0 bx: 00007f92b5783840
dx: 0000000000000000 ax: 0000000000000000 cx: 00007f92b5603081 sp: 00007ffde55c0d60
ip: 00007f92b5603081 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/home/kali/Downloads/delivery-slot-bot-master/delivery-slot-bot/node_modules/puppeteer/lib/Launcher.js:348:14)
at Interface.helper.addEventListener (/home/kali/Downloads/delivery-slot-bot-master/delivery-slot-bot/node_modules/puppeteer/lib/Launcher.js:337:50)
at Interface.emit (events.js:203:15)
at Interface.close (readline.js:397:8)
at Socket.onend (readline.js:173:10)
at Socket.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentat
ion about this command.
The thing with kali is that everytime you're logged in as the root user and everything you execute will run as root as well. But chrome knows that it's not a good idea to run it as root so it says no to you.
As the error message says, you can add the --no-sandbox to the launch option and make it run as root. However, this is not a very good idea. Running non-system applications or processes, including the ones with graphics, is not a good idea in general.
It's better that you switch to a non-root account and do all your web devs there, or just switch to a normal distro like Ubuntu.
Related
i have a discord clone portfolio project at https://github.com/Inferno-Ripper/discord-clone
i have deployed the frontend to vercel https://inferno-ripper-discord-clone.vercel.app, it works fine on firefox but it doesn't work on chrome and edge the network requests are stuck on pending.
i have the backend hosted on railway, but when i try to deploy the frontend to railway it doesn't work i get this error
Build Logs on Railway
==============
Using Nixpacks
==============
Inline cache enabled
no image tag to read cache from
╔═════════ Nixpacks v1.0.0 ═════════╗
║ setup │ nodejs-16_x, npm-8_x ║
║───────────────────────────────────║
║ install │ npm ci ║
║───────────────────────────────────║
║ build │ npm run build ║
║───────────────────────────────────║
║ start │ npm run start ║
╚═══════════════════════════════════╝
#1 [internal] load build definition from Dockerfile
#1 sha256:8877270a0c7cc13a2a9d5d8d7622cdc0ed73b70ab957d081f5d2851376bd3d8b
#1 transferring dockerfile: 2.08kB done
#1 DONE 0.1s
#2 [internal] load .dockerignore
#2 sha256:2affaad88737ba21b452b724bb2eb7f99ebe9375f3ecc65cb617a265f26c24d8
#2 transferring context:
#2 transferring context: 2B done
#2 DONE 0.2s
#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1671044363
#3 sha256:d2df4677b7c4c8365aa628f14d4cbdd9867466b6b454c21060180de4b7936a2e
#3 DONE 0.2s
#4 [stage-0 1/10] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1671044363#sha256:4df36f942799b8b727c8648ca4fa05d9cd2526e41e7994665082c0f7ef03d95b
#4 sha256:a20b8f1ac783d9d00f7c673a9ef0cf3b8f0aaee89856a86f7aff78cda1934897
#4 DONE 0.0s
#5 [stage-0 2/10] WORKDIR /app/
#5 sha256:46f35bb14209f31cddb6d0e80d42b3ceb58d2f45672a3486e22a069140ac06a3
#5 CACHED
#6 [internal] load build context
#6 sha256:5648a1c35d09c4517e30329702fb9cb16d3deaa95854bbf8005030d88d65df40
#6 transferring context: 1.35MB 0.0s done
#6 DONE 0.1s
#7 [stage-0 3/10] COPY .nixpacks/nixpkgs-ffca9ffaaafb38c8979068cee98b2644bd3f14cb.nix .nixpacks/nixpkgs-ffca9ffaaafb38c8979068cee98b2644bd3f14cb.nix
#7 sha256:27a0f7b0a4acef0e435ab6d4d2af6e3163455490546099ce36a6ce8090fa6663
#7 CACHED
#8 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-ffca9ffaaafb38c8979068cee98b2644bd3f14cb.nix && nix-collect-garbage -d
#8 sha256:b14288120fda49c3952311baf2b490fed38e5c18b07a41507a8fa40b078b7061
#8 CACHED
#9 [stage-0 5/10] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
#9 sha256:12dcf6a42bf1344db5b7a02483f2b846eaf2f6bd1e5f24337f79a8189bc2ff93
#9 DONE 0.4s
#10 [stage-0 6/10] COPY . /app/.
#10 sha256:ce0a407cd50a1ccbe3be23e8717eb5b1978e54736f3716257765a0c50bc6ff1f
#10 DONE 0.1s
#11 [stage-0 7/10] RUN --mount=type=cache,id=s/b947d48a-6811-4bd7-be53-d870d96fde71-/root/npm,target=/root/.npm npm ci
#11 sha256:292fe72abf96a75827c016a9bb758e94e0a7fc5724f193e1c1830ac7b3ac5920
#11 0.730 npm WARN config
production Use `--omit=dev` instead.
#11 1.915 npm ERR! code ERESOLVE
#11 1.919 npm ERR! ERESOLVE could not resolve
#11 1.919 npm ERR!
it was a cors error, just needed to add these cookie options.
{
httpOnly: true,
secure: true,
sameSite: 'none',
}
I would like to make manpages open in the chromium (from the man -H command), but I get this error:
yoline#yolinePC:~$ man -H ls
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[2813:2813:0823/005741.984026:FATAL:zygote_host_impl_linux.cc(186)] Check failed: ReceiveFixedMessage(fds[0], kZygoteBootMessage, sizeof(kZygoteBootMessage), &boot_pid).
#0 0x55eb8a223509 <unknown>
#1 0x55eb8a171cc6 <unknown>
#2 0x55eb8a189cd4 <unknown>
#3 0x55eb8b421f80 <unknown>
#4 0x55eb89c73082 <unknown>
#5 0x55eb8b420c79 <unknown>
#6 0x55eb8b4234a5 <unknown>
#7 0x55eb89c7410a <unknown>
#8 0x55eb89ca1d71 <unknown>
#9 0x55eb89c719a5 <unknown>
#10 0x55eb8761006d ChromeMain
#11 0x7fd0cb19b09b __libc_start_main
#12 0x55eb8760feca _start
Received signal 6
#0 0x55eb8a223509 <unknown>
#1 0x55eb8a171cc6 <unknown>
#2 0x55eb8a221dc3 <unknown>
#3 0x55eb8a223495 <unknown>
#4 0x7fd0d2199730 <unknown>
#5 0x7fd0cb1ae7bb gsignal
#6 0x7fd0cb199535 abort
#7 0x55eb8a223435 <unknown>
#8 0x55eb8a189e98 <unknown>
#9 0x55eb8b421f80 <unknown>
#10 0x55eb89c73082 <unknown>
#11 0x55eb8b420c79 <unknown>
#12 0x55eb8b4234a5 <unknown>
#13 0x55eb89c7410a <unknown>
#14 0x55eb89ca1d71 <unknown>
#15 0x55eb89c719a5 <unknown>
#16 0x55eb8761006d ChromeMain
#17 0x7fd0cb19b09b __libc_start_main
#18 0x55eb8760feca _start
r8: 0000000000000000 r9: 00007ffc94133af0 r10: 0000000000000008 r11: 0000000000000246
r12: 00007ffc94134d40 r13: 00007ffc94134f00 r14: 00000000000000aa r15: 00007ffc94133d70
di: 0000000000000002 si: 00007ffc94133af0 bp: 00007ffc94133d40 bx: 0000000000000006
dx: 0000000000000000 ax: 0000000000000000 cx: 00007fd0cb1ae7bb sp: 00007ffc94133af0
ip: 00007fd0cb1ae7bb efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
man: couldn't execute any browser from chromium
My os is Debian and I use i3 as window manager. My English is not very good, but I'm working on it.
I solve this problem by using command export BROWSER="i3-msg exec chromium" instead of export BROWSER="chromium".
but I get another problem that the chromium did not find the HTML file in /tmp.
I can't solve this problem until I see this post on Reddit.
1、create a script "open-delay.sh" with the following contents:
i3-msg exec xdg-open $1
sleep 5
2、invoke man with man --html=/path/to/open-delay.sh page, or you can add a alias to .bashrc in your home directory with the following contents:
alias manhtml="man --html=/path/to/open-delay.sh"
Are you logged in as root? You shouldn't be logged in to a graphical user interface as root and you certainly shouldn't be running a web browser as root at all. Try logging into your system as a regular user.
The VsCode's debug mode isn't launching the app any more, eiter through the AVD or a real android device. Used to working perfectly on both until yesterday.
I am getting an error
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I ran flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [version 10.0.17134.523], locale fr-FR)
• Flutter version 1.0.0 at F:\flutter_src
• Framework revision 5391447fae (6 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at F:\Android_sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = F:\Android_sdk
• Java binary at: F:\Android_src\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio at F:\Android_src
• Flutter plugin version 31.3.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
I have to say that I have absolutely no idea of what went wrong.
I don't think it is code related, has I haven't made huge impacting change to my project. Other than that error inside the debug console, it isn't throwing me anything else.
Edit
Flutter run -v
[ +128 ms] executing: [F:\flutter_src\] git rev-parse --abbrev-ref --symbolic #{u}
[ +245 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [F:\flutter_src\] git rev-parse --abbrev-ref HEAD
[ +73 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +2 ms] stable
[ ] executing: [F:\flutter_src\] git ls-remote --get-url origin
[ +88 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [F:\flutter_src\] git log -n 1 --pretty=format:%H
[ +99 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] 5391447fae6209bb21a89e6a5a6583cac1af9b4b
[ ] executing: [F:\flutter_src\] git log -n 1 --pretty=format:%ar
[ +80 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 6 weeks ago
[ +1 ms] executing: [F:\flutter_src\] git describe --match v*.*.* --first-parent --long --tags
[ +253 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.0.0-0-g5391447fa
[ +308 ms] executing: F:\Android_sdk\platform-tools\adb devices -l
[+4275 ms] Exit code 0 from: F:\Android_sdk\platform-tools\adb devices -l
[ ] List of devices attached
[ +19 ms] No connected devices.
[ +20 ms] "flutter run" took 4 413ms.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:249:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:379:11)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:335:33)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#5 _rootRun (dart:async/zone.dart:1124:13)
#6 _CustomZone.run (dart:async/zone.dart:1021:19)
#7 _runZoned (dart:async/zone.dart:1516:10)
#8 runZoned (dart:async/zone.dart:1463:12)
#9 AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:326:20)
#11 CommandRunner.runCommand (package:args/command_runner.dart:196:27)
<asynchronous suspension>
#12 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:401:21)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#14 _rootRun (dart:async/zone.dart:1124:13)
#15 _CustomZone.run (dart:async/zone.dart:1021:19)
#16 _runZoned (dart:async/zone.dart:1516:10)
#17 runZoned (dart:async/zone.dart:1463:12)
#18 AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:361:19)
<asynchronous suspension>
#20 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:111:29)
#21 new Future.sync (dart:async/future.dart:224:31)
#22 CommandRunner.run (package:args/command_runner.dart:111:11)
#23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:241:18)
#24 run.<anonymous closure> (package:flutter_tools/runner.dart:60:20)
<asynchronous suspension>
#25 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#26 _rootRun (dart:async/zone.dart:1124:13)
#27 _CustomZone.run (dart:async/zone.dart:1021:19)
#28 _runZoned (dart:async/zone.dart:1516:10)
#29 runZoned (dart:async/zone.dart:1463:12)
#30 AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#31 runInContext (package:flutter_tools/src/context_runner.dart:43:24)
<asynchronous suspension>
#32 run (package:flutter_tools/runner.dart:51:10)
#33 main (package:flutter_tools/executable.dart:51:9)
<asynchronous suspension>
#34 main (file:///E:/b/build/slave/Windows_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#35 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:287:32)
#36 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
EDIT 2 : Thanks to Siavash for speaking about "flutter clean".
It solved the problem !
Still curious about the "why" of this problem tho.
Thank to Siavash : flutter clean, from inside the project folder, solved the issue (or simply by using the VSCode terminal).
here I have a answer. See steps below:-
1- Go to your flutter folder where you saved, go and run the 'flutter_console.bat' file. a console will be open.
2- Type "flutter doctor".:-
3- It will show all the problems in your flutter setup. In my case you can see:-
C:\Users\M A Hafeez>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.19042.685], locale en-US)
flutter_run
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
X No Java Development Kit (JDK) found; You must have the environment variable JAVA_HOME set and the java binary in your PATH. You can download the JDK from https://www.oracle.com/technetwork/java/javase/downloads/.
[!] Android Studio (not installed)
[√] VS Code (version 1.52.1)
[√] Connected device (1 available)
! Doctor found issues in 2 categories.
Basically my error was about Java, that I have no installed before facing this error.
Hope this will be helpful. :)
Enjoy Coding
I am trying to run Gauge/Taiko however I am getting an error just at the very beginning when I only issue openBrowser() command. My OS is Debian 9 Stretch and I use local Gauge/Taiko installation.
The error seems to suggest I need to update my kernel - do I really need that? I would hope Taiko includes appropriate build of chromium, especially that https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux_suid_sandbox.md states ate the very first line that "page is mostly out-of-date" and it looks like a set of instructions for installation from source rather than using provided packages.
I'd appreciate any help, I am also happy for a suggestion of Taiko's preferred distro ;]
$ npm --version
6.4.1
$ ./node_modules/.bin/taiko
Version: 0.3.0 (Chromium:71.0.3563.0)
Type .api for help and .exit to quit
> openBrowser()
✘ Error: Failed to launch chrome!
[12296:12296:1105/121525.023333:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
#0 0x55e22767dcac base::debug::StackTrace::StackTrace()
#1 0x55e2275f7670 logging::LogMessage::~LogMessage()
#2 0x55e228afb050 service_manager::ZygoteHostImpl::Init()
#3 0x55e2272c0d7e content::ContentMainRunnerImpl::Initialize()
#4 0x55e2272f43e8 service_manager::Main()
#5 0x55e2272bf5c1 content::ContentMain()
#6 0x55e2255ff1b3 ChromeMain
#7 0x7fc5c46222e1 __libc_start_main
#8 0x55e2255ff02a _start
Received signal 6
#0 0x55e22767dcac base::debug::StackTrace::StackTrace()
#1 0x55e22767d821 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7fc5ca7b10c0 <unknown>
#3 0x7fc5c4634fff gsignal
#4 0x7fc5c463642a abort
#5 0x55e22767c645 base::debug::BreakDebugger()
#6 0x55e2275f7ae8 logging::LogMessage::~LogMessage()
#7 0x55e228afb050 service_manager::ZygoteHostImpl::Init()
#8 0x55e2272c0d7e content::ContentMainRunnerImpl::Initialize()
#9 0x55e2272f43e8 service_manager::Main()
#10 0x55e2272bf5c1 content::ContentMain()
#11 0x55e2255ff1b3 ChromeMain
#12 0x7fc5c46222e1 __libc_start_main
#13 0x55e2255ff02a _start
r8: 0000000000000000 r9: 00007ffde9ca88e0 r10: 0000000000000008 r11: 0000000000000246
r12: 00007ffde9ca90f8 r13: 000000000000016d r14: 00007ffde9ca9100 r15: 00007ffde9ca9108
di: 0000000000000002 si: 00007ffde9ca88e0 bp: 00007ffde9ca8b20 bx: 0000000000000006
dx: 0000000000000000 ax: 0000000000000000 cx: 00007fc5c4634fff sp: 00007ffde9ca8958
ip: 00007fc5c4634fff efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
, run `.trace` for more info.
>
If you loading fully trusted site in the browser, alternatively you can also pass
'--no-sandbox', '--disable-setuid-sandbox' args to openBrowser like
await openBrowser({args:['--no-sandbox', '--disable-setuid-sandbox']})
Someone faced similar problem
https://github.com/iridium-browser/tracker/issues/208#issuecomment-395619508
Enabling unprivileged namespaces solved the issue.
Quoting solution:
# echo kernel.unprivileged_userns_clone=1 > /etc/sysctl.d/00-local-userns.conf
# sysctl --system
when I'm trying to commit or pull this error Bus error (core dumped) occurs!
when I debug it with gdb, (gdb git,run commit -a,where) the result is:
muculus#muculus-laptop:~/www/pure/core$ gdb git
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/git...(no debugging symbols found)...done.
(gdb) run commit -a
Starting program: /usr/bin/git commit -a
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGBUS, Bus error.
0x00000000004e9338 in ?? ()
(gdb) where
#0 0x00000000004e9338 in ?? ()
#1 0x00000000004ea64f in ?? ()
#2 0x00000000004b5143 in ?? ()
#3 0x00000000004ada6e in ?? ()
#4 0x000000000041d29b in ?? ()
#5 0x000000000041df17 in ?? ()
#6 0x0000000000405634 in ?? ()
#7 0x0000000000404a30 in ?? ()
#8 0x00007ffff73ee76d in __libc_start_main (main=0x404980, argc=3, ubp_av=0x7fffffffe008, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffdff8) at libc-start.c:226
#9 0x0000000000404e65 in ?? ()
#10 0x00007fffffffdff8 in ?? ()
#11 0x000000000000001c in ?? ()
#12 0x0000000000000003 in ?? ()
#13 0x00007fffffffe34b in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb)
how can I fix this problem?
Try running dmesg. In my case this was due to a hardware error: A bad sector on sda.