bullen
Posts: 390
Joined: Sun Apr 28, 2013 2:52 pm

Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 8:13 am

The RPi 2 I bought directly after release from pimoroni has started behaving weirdly.

It has black camera and screen latches instead of white.

Anyone had the same experience?

My other 4x RPi 2 (white latches) are 100% stable.
https://github.com/tinspin/rupy - A tiny Java async HTTP application server.

DirkS
Posts: 10414
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 8:34 am

Define 'weirdly'...

User avatar
RaTTuS
Posts: 10573
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 8:48 am

what does

It has black camera and screen latches instead of white.
mean

can you upload a video to you tube to explain better

are all the cables plugged in fully etc ...
when did iit stop working proper , what had you done
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 9:39 am

RaTTuS wrote:what does

It has black camera and screen latches instead of white.
mean
This is a B2 with black latches (from Wikipedia).
This is a B2 with white latches (from raspberrypi.org)

bullen
Posts: 390
Joined: Sun Apr 28, 2013 2:52 pm

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 9:40 am

So the white latches are just to point out it's one of the first RPi 2 out of the factory. And not the same factory as todays RPi 2, the metal on the HDMI port is different too (matte aluminium instead of dark shiny). Edit: Precisely AndyD.

I have changed nothing, it has been running flawlessly for 1 year 24/7 until two weeks ago when it had one core running 100% on a strangely simple stack trace place, I shrugged it off as my fault. But then yesterday and today it has crashed the process with segmentation fault on other seemingly common stack trace places.

I'm suspecting something broke with the RAM when I had power outages a month ago, 3 in a row.
Last edited by bullen on Tue Dec 22, 2015 10:02 am, edited 1 time in total.
https://github.com/tinspin/rupy - A tiny Java async HTTP application server.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 9:45 am

The differences in latch colour and HDMI port etc may be to do with the Country of manufacture.

bullen
Posts: 390
Joined: Sun Apr 28, 2013 2:52 pm

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 10:03 am

Exactly, so I'm trying to figure out if it's a one time freak occurrence or if others with early RPi2 from the white black latch factory are seeing failures too after 1 year of 24/7 operations.
Last edited by bullen on Tue Dec 22, 2015 10:55 am, edited 2 times in total.
https://github.com/tinspin/rupy - A tiny Java async HTTP application server.

Heater
Posts: 16492
Joined: Tue Jul 17, 2012 3:02 pm

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 10:32 am

I'm a white latch kind of guy. Never seen a problem with random failure cropping up.

Have you been keeping your OS updated? Things will have been changing, perhaps introducing a problem.

Have you tried swapping the power supply, just to eliminate that as a possible cause?

Does this problem only show up when running some particular program?

What actually are the stack traces ?
Memory in C++ is a leaky abstraction .

bullen
Posts: 390
Joined: Sun Apr 28, 2013 2:52 pm

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 10:54 am

I meant black, white latches are 100% stable for me too, typo above...

I have not changed anything.

Power supply is the same as the white latches:

Image

The issue stack traces are not in my code but in Java core classes, in different places every time.

I'm pretty sure the hardware on this RPi 2 is failing.
Last edited by bullen on Tue Dec 22, 2015 11:34 am, edited 1 time in total.
https://github.com/tinspin/rupy - A tiny Java async HTTP application server.

User avatar
RaTTuS
Posts: 10573
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 11:30 am

dunno - try a fresh raspbain
then try
sudo apt-get memtester
sudo memtester
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Heater
Posts: 16492
Joined: Tue Jul 17, 2012 3:02 pm

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 12:05 pm

bullen,
The issue stack traces are not in my code but in Java core classes...
Ah, now I see your problem. ..... Only joking.

That is a neat cluster you have there.

I'd certainly want to be testing with memtester and such as suggested. It'd start with a new SD card and new OS image just to eliminate those as possible sources of trouble.
Memory in C++ is a leaky abstraction .

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 12:15 pm

Might it be worth underclocking it a wee bit to see if stability returns?

User avatar
RaTTuS
Posts: 10573
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 12:26 pm

gregeric wrote:Might it be worth underclocking it a wee bit to see if stability returns?
no
first thing is
viewtopic.php?f=63&t=129721#p866727
anything else and you cannot be certain
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

bullen
Posts: 390
Joined: Sun Apr 28, 2013 2:52 pm

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 2:59 pm

Hm, so it's not memory:

Code: Select all

pagesize is 4096
pagesizemask is 0xfffff000
want 900MB (943718400 bytes)
got  900MB (943718400 bytes), trying mlock ...locked.
Loop 1/1:
  Stuck Address       : ok
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok
  Block Sequential    : ok
  Checkerboard        : ok
  Bit Spread          : ok
  Bit Flip            : ok
  Walking Ones        : ok
  Walking Zeroes      : ok
  8-bit Writes        : ok
  16-bit Writes       : ok

Done.
Maybe it's the SD card? But I think I'll just buy a new RPi 2 and a new SD card and cross match them if it fails again...

Well see...

It must be the CPU then... how does one verify that?
https://github.com/tinspin/rupy - A tiny Java async HTTP application server.

Heater
Posts: 16492
Joined: Tue Jul 17, 2012 3:02 pm

Re: Early RPi 2 randomly segmentation faults process

Tue Dec 22, 2015 3:46 pm

By all means get a new Pi and SD to get things working.

It would be nice to get to the root cause of the problem though.

I'm betting on, SD card, OS image, power supply...(oh and Java :) )

You could always send me that suspect Pi. For analysis you understand...
Memory in C++ is a leaky abstraction .

bullen
Posts: 390
Joined: Sun Apr 28, 2013 2:52 pm

Re: Early RPi 2 randomly segmentation faults process

Wed Dec 23, 2015 6:49 pm

Just to follow up now I'm suspecting it is the SD card after all.

When I had the power outages (not good for SD cards BTW) the following script was not run:

swapoff -a
sysctl -w vm.swappiness=0

Basically maybe the swap partition has taken a hit after being power cycled in use after the first failure?

And maybe that's where the problems sneak in... easy way to test is to turn off swap and then the system should work...

But better is to buy a new SD card and make sure!
https://github.com/tinspin/rupy - A tiny Java async HTTP application server.

Return to “General discussion”